question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question on SyntaxKind enum

See original GitHub issue

The 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:closed
  • Created 3 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
333fredcommented, Aug 22, 2020

Yes. UnmanagedKeyword is not used for constraints.

0reactions
Youssef1313commented, Aug 22, 2020

Thanks a lot!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found