mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 04:43:37 -05:00
Make tokenToString return string|undefined (#16106)
This commit is contained in:
committed by
Mohamed Hegazy
parent
2ffd5f6e3c
commit
e8f42c4a7b
@@ -286,7 +286,7 @@ namespace ts {
|
||||
|
||||
const tokenStrings = makeReverseMap(textToToken);
|
||||
|
||||
export function tokenToString(t: SyntaxKind): string {
|
||||
export function tokenToString(t: SyntaxKind): string | undefined {
|
||||
return tokenStrings[t];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user