You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
how to declare top level object array ?
compile(interface Character { name: string; }, Character[]); #=> Error: Root type Character[] is not one of the declared types
compile(interface Character { name: string; } type Root = Character[];, Root); #=> Error: Invalid top-level declaration of kind TypeAliasDeclaration
The text was updated successfully, but these errors were encountered:
how to declare top level object array ?
compile(
interface Character { name: string; }
,Character[]
); #=>Error: Root type Character[] is not one of the declared types
compile(
interface Character { name: string; } type Root = Character[];
,Root
); #=>Error: Invalid top-level declaration of kind TypeAliasDeclaration
The text was updated successfully, but these errors were encountered: