mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Treat functions with @type tags on parameters as typed in JS files (#61177)
This commit is contained in:
@@ -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