Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

top level array #38

Open
nanamicat opened this issue Apr 11, 2024 · 1 comment
Open

top level array #38

nanamicat opened this issue Apr 11, 2024 · 1 comment

Comments

@nanamicat
Copy link

nanamicat commented Apr 11, 2024

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

@AlbertMarashi
Copy link

IntrinsicLabsAI/grammar-builder#5

Also +1

I'd like to be able to also use type X = Bar | Baz on the root level

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants