mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-30 11:24:49 -05:00
Treat functions with @type tags on parameters as typed in JS files (#61177)
This commit is contained in:
committed by
GitHub
parent
83dc0bb2ed
commit
eef7c14ef1
@@ -15507,6 +15507,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
|
||||
isInJSFile(declaration) &&
|
||||
isValueSignatureDeclaration(declaration) &&
|
||||
!hasJSDocParameterTags(declaration) &&
|
||||
!some(declaration.parameters, p => !!getJSDocType(p)) &&
|
||||
!getJSDocType(declaration) &&
|
||||
!getContextualSignatureForFunctionLikeDeclaration(declaration);
|
||||
if (isUntypedSignatureInJSFile) {
|
||||
|
||||
Reference in New Issue
Block a user