Add undefined to return of getNameOfDeclaration

This commit is contained in:
Nathan Shively-Sanders 2017-05-19 14:13:33 -07:00
parent 8db58bbd69
commit 6c4e747295

View File

@ -4700,7 +4700,7 @@ namespace ts {
return identifier.length >= 3 && identifier.charCodeAt(0) === CharacterCodes._ && identifier.charCodeAt(1) === CharacterCodes._ && identifier.charCodeAt(2) === CharacterCodes._ ? identifier.substr(1) : identifier;
}
export function getNameOfDeclaration(declaration: Declaration): DeclarationName {
export function getNameOfDeclaration(declaration: Declaration): DeclarationName | undefined {
if (!declaration) {
return undefined;
}