File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -13397,7 +13397,18 @@ namespace ts {
13397
13397
}
13398
13398
}
13399
13399
13400
- return getUnionType(map(signatures, getReturnTypeOfSignature), /*subtypeReduction*/ true);
13400
+ const instantiatedSignatures = [];
13401
+ for (const signature of signatures) {
13402
+ if (signature.typeParameters) {
13403
+ const typeArguments = fillMissingTypeArguments(/*typeArguments*/ undefined, signature.typeParameters, /*minTypeArgumentCount*/ 0);
13404
+ instantiatedSignatures.push(getSignatureInstantiation(signature, typeArguments));
13405
+ }
13406
+ else {
13407
+ instantiatedSignatures.push(signature);
13408
+ }
13409
+ }
13410
+
13411
+ return getUnionType(map(instantiatedSignatures, getReturnTypeOfSignature), /*subtypeReduction*/ true);
13401
13412
}
13402
13413
13403
13414
/**
You can’t perform that action at this time.
0 commit comments