Skip to content

Proper way of using type union with declared types #693

Answered by msujew
ymc9 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @ymc9,

right now the whole declared types stuff is in a relatively early feature stage. There are tons of issues in both the validation and generation of those types. We plan to finalize this feature in Q4, but as of now, I wouldn't recommend using it. Instead, you should just let Langium infer your types, that works fine in almost all cases.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ymc9
Comment options

@montymxb
Comment options

Answer selected by ymc9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants