Make tokenToString return string|undefined (#16106)

This commit is contained in:
Klaus Meinhardt
2017-06-02 19:09:36 +02:00
committed by Mohamed Hegazy
parent 2ffd5f6e3c
commit e8f42c4a7b

View File

@@ -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];
}