Closed1
TypeScriptのKeyword

Keyword、Modifier、Keyword Type、予約語、修飾子、キーワード
ちょうど切らしていたので
{
"keyword": ["as", "asserts", "assert", "await", "break", "case", "catch", "class", "constructor", "continue", "debugger", "delete", "do", "else", "enum", "extends", "false", "finally", "for", "from", "function", "get", "global", "if", "implements", "import", "infer", "instanceof", "interface", "is", "keyof", "let", "module", "namespace", "new", "null", "of", "package", "require", "return", "satisfies", "set", "super", "switch", "this", "throw", "true", "try", "type", "typeof", "unique", "using", "var", "while", "with", "yield"],
"modifier": ["abstract", "accessor", "async", "const", "declare", "default", "export", "in", "private", "protected", "public", "readonly", "out", "override", "static"],
"keyword_type": ["any", "bigint", "boolean", "intrinsic", "never", "number", "object", "string", "symbol", "undefined", "unknown", "void"]
}
確認方法
https://github.com/Microsoft/TypeScript/blob/main/src/compiler/types.ts
または
https://raw.githubusercontent.com/Microsoft/TypeScript/refs/heads/main/src/compiler/types.ts
を開く
600行目あたりまでスクロールするとKeywordSyntaxKind, ModifierSyntaxKind, KeywordTypeSyntaxKindが出てくるので確認
v5.7.3では580行目から694行目まで
VS Codeにコピペした後、KeywordSyntaxKindからModifierSyntaxKindとKeywordTypeSyntaxKindをOmitして、マルチカーソルや小文字に変換でいい感じにしてJSONにする
このスクラップは2025/01/18にクローズされました