Skip to content
Permalink
Browse files
change type (#51231)
  • Loading branch information
a-tarasyuk committed Oct 19, 2022
1 parent 245a02c commit 8ac465239f52de1da3ada8cdc4c3f107f4d62e45
Showing 1 changed file with 1 addition and 1 deletion.
@@ -28,7 +28,7 @@ namespace ts.GoToDefinition {

if (node.kind === SyntaxKind.ReturnKeyword) {
const functionDeclaration = findAncestor(node.parent, n =>
isClassStaticBlockDeclaration(n) ? "quit" : isFunctionLikeDeclaration(n)) as FunctionLikeDeclaration;
isClassStaticBlockDeclaration(n) ? "quit" : isFunctionLikeDeclaration(n)) as FunctionLikeDeclaration | undefined;
return functionDeclaration ? [createDefinitionFromSignatureDeclaration(typeChecker, functionDeclaration)] : undefined;
}

0 comments on commit 8ac4652

Please sign in to comment.