Question on SyntaxKind enum
See original GitHub issueThe SyntaxKind enum currently doesn’t have NotNullKeyword
. However, it has UnmanagedKeyword
. Both keywords are used in the context of generic constraints. Was this intentional?
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (10 by maintainers)
Top Results From Across the Web
Question: SyntaxKind number to a string #2604
Having SyntaxKind as a const enum means there isn't a lookup I can use. I need this for TypeStrong/atom-typescript#233 Is there something ...
Read more >How to reliably detect TypeScript SyntaxKind in TSLint?
I would say a good try is to switch to the "is-methods" of typescript like: if (!ts.isImportDeclaration(statement)) { return; }.
Read more >TIP: SyntaxKind enum - TypeScript Deep Dive
SyntaxKind is defined as a const enum , here is a sample: export const enum SyntaxKind {. Unknown,. EndOfFileToken,. SingleLineCommentTrivia,.
Read more >Buckle Typings - Part 2: Walking the AST
I decided to encode the TypeScript enum type as a module with a variant ... type rawEnum external enum : rawEnum = "SyntaxKind"...
Read more >API design question: how to wrap a family of types? - help
The idea is that each language defines it's own set of kinds, so, for example, Rust would have const IF_KEYWORD = SyntaxKind(10) and...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yes. UnmanagedKeyword is not used for constraints.
Thanks a lot!