Skip to content

Commit 6e39ee7

Browse files
committed
fix typo
1 parent cd5dde5 commit 6e39ee7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/compiler/checker.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -27536,12 +27536,12 @@ namespace ts {
2753627536

2753727537
function checkDeprecatedSignature(signature: Signature, node: CallLikeExpression) {
2753827538
if (signature.declaration && signature.declaration.flags & NodeFlags.Deprecated) {
27539-
const suggestionNode = getSignautreSuggestionNode(node);
27539+
const suggestionNode = getSignatureSuggestionNode(node);
2754027540
errorOrSuggestion(/*isError*/ false, suggestionNode, Diagnostics._0_is_deprecated, signatureToString(signature));
2754127541
}
2754227542
}
2754327543

27544-
function getSignautreSuggestionNode(node: CallLikeExpression): Node {
27544+
function getSignatureSuggestionNode(node: CallLikeExpression): Node {
2754527545
switch (node.kind) {
2754627546
case SyntaxKind.CallExpression:
2754727547
case SyntaxKind.Decorator:
@@ -27553,7 +27553,7 @@ namespace ts {
2755327553
case SyntaxKind.JsxSelfClosingElement:
2755427554
return node.tagName;
2755527555
default:
27556-
return node;
27556+
return Debug.assertNever(node);
2755727557
}
2755827558
}
2755927559

0 commit comments

Comments
 (0)