Skip to content

Commit e8f42c4

Browse files
ajafffmhegazy
authored andcommitted
Make tokenToString return string|undefined (#16106)
1 parent 2ffd5f6 commit e8f42c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/scanner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ namespace ts {
286286

287287
const tokenStrings = makeReverseMap(textToToken);
288288

289-
export function tokenToString(t: SyntaxKind): string {
289+
export function tokenToString(t: SyntaxKind): string | undefined {
290290
return tokenStrings[t];
291291
}
292292

0 commit comments

Comments
 (0)