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
{{ message }}
This repository was archived by the owner on Apr 15, 2026. It is now read-only.
Is there a way to get the term names as TS string union type? This would allow me to ensure that I don't assign syntax highlighting for nodes that aren't in the grammar any more or when checking the types while traversing the tree and so on.
So basically this, but in working:
// @ts-expect-error can not find type declarationimport*asTermsfrom"./syntax.grammar.terms"typeTermNames=keyoftypeofTerms
Is there a way to get the term names as TS string union type? This would allow me to ensure that I don't assign syntax highlighting for nodes that aren't in the grammar any more or when checking the types while traversing the tree and so on.
So basically this, but in working: