Skip to content

Commit 6c4e747

Browse files
committed
Add undefined to return of getNameOfDeclaration
1 parent 8db58bb commit 6c4e747

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/utilities.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4700,7 +4700,7 @@ namespace ts {
47004700
return identifier.length >= 3 && identifier.charCodeAt(0) === CharacterCodes._ && identifier.charCodeAt(1) === CharacterCodes._ && identifier.charCodeAt(2) === CharacterCodes._ ? identifier.substr(1) : identifier;
47014701
}
47024702

4703-
export function getNameOfDeclaration(declaration: Declaration): DeclarationName {
4703+
export function getNameOfDeclaration(declaration: Declaration): DeclarationName | undefined {
47044704
if (!declaration) {
47054705
return undefined;
47064706
}

0 commit comments

Comments
 (0)