mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Treat contextually typed functions in JS files as typed (#56907)
This commit is contained in:
@@ -15504,7 +15504,8 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
|
||||
isInJSFile(declaration) &&
|
||||
isValueSignatureDeclaration(declaration) &&
|
||||
!hasJSDocParameterTags(declaration) &&
|
||||
!getJSDocType(declaration);
|
||||
!getJSDocType(declaration) &&
|
||||
!getContextualSignatureForFunctionLikeDeclaration(declaration);
|
||||
if (isUntypedSignatureInJSFile) {
|
||||
flags |= SignatureFlags.IsUntypedSignatureInJSFile;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user