From e76607e8649d86d6fba3342345f6fb020501bc96 Mon Sep 17 00:00:00 2001 From: Mohamed Hegazy Date: Thu, 9 Feb 2017 16:24:32 -0800 Subject: [PATCH] Fix typo --- src/compiler/checker.ts | 2 +- src/compiler/utilities.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 88f4b1bfe6b..62b761cae5b 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -5226,7 +5226,7 @@ namespace ts { let hasThisParameter: boolean; const iife = getImmediatelyInvokedFunctionExpression(declaration); const isJSConstructSignature = isJSDocConstructSignature(declaration); - const isUntypedSignatureInJSFile = !iife && !isJSConstructSignature && isInJavaScriptFile(declaration) && !hasJSDocParamterTags(declaration); + const isUntypedSignatureInJSFile = !iife && !isJSConstructSignature && isInJavaScriptFile(declaration) && !hasJSDocParameterTags(declaration); // If this is a JSDoc construct signature, then skip the first parameter in the // parameter list. The first parameter represents the return type of the construct diff --git a/src/compiler/utilities.ts b/src/compiler/utilities.ts index 9935c2fb849..7d6d93c3c4e 100644 --- a/src/compiler/utilities.ts +++ b/src/compiler/utilities.ts @@ -1518,7 +1518,7 @@ namespace ts { return map(getJSDocs(node), doc => doc.comment); } - export function hasJSDocParamterTags(node: FunctionLikeDeclaration | SignatureDeclaration) { + export function hasJSDocParameterTags(node: FunctionLikeDeclaration | SignatureDeclaration) { const parameterTags = getJSDocTags(node, SyntaxKind.JSDocParameterTag); return parameterTags && parameterTags.length > 0; }