From 6e39ee706e178873257ab90542f6a145e962b401 Mon Sep 17 00:00:00 2001 From: kingwl Date: Wed, 22 Jul 2020 19:14:39 +0800 Subject: [PATCH] fix typo --- src/compiler/checker.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 5d9f130671ed8..c437122b60979 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -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: @@ -27553,7 +27553,7 @@ namespace ts { case SyntaxKind.JsxSelfClosingElement: return node.tagName; default: - return node; + return Debug.assertNever(node); } }