Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Kingwl committed Jul 22, 2020
1 parent cd5dde5 commit 6e39ee7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/compiler/checker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27536,12 +27536,12 @@ namespace ts {

function checkDeprecatedSignature(signature: Signature, node: CallLikeExpression) {
if (signature.declaration && signature.declaration.flags & NodeFlags.Deprecated) {
const suggestionNode = getSignautreSuggestionNode(node);
const suggestionNode = getSignatureSuggestionNode(node);
errorOrSuggestion(/*isError*/ false, suggestionNode, Diagnostics._0_is_deprecated, signatureToString(signature));
}
}

function getSignautreSuggestionNode(node: CallLikeExpression): Node {
function getSignatureSuggestionNode(node: CallLikeExpression): Node {
switch (node.kind) {
case SyntaxKind.CallExpression:
case SyntaxKind.Decorator:
Expand All @@ -27553,7 +27553,7 @@ namespace ts {
case SyntaxKind.JsxSelfClosingElement:
return node.tagName;
default:
return node;
return Debug.assertNever(node);
}
}

Expand Down

0 comments on commit 6e39ee7

Please sign in to comment.