mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00: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