This commit is contained in:
Mohamed Hegazy 2017-02-09 16:24:32 -08:00
parent a47c47611f
commit e76607e864
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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;
}