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 @@ -13438,7 +13438,18 @@ namespace ts {
13438
13438
}
13439
13439
}
13440
13440
13441
- return getUnionType(map(signatures, getReturnTypeOfSignature), /*subtypeReduction*/ true);
13441
+ const instantiatedSignatures = [];
13442
+ for (const signature of signatures) {
13443
+ if (signature.typeParameters) {
13444
+ const typeArguments = fillMissingTypeArguments(/*typeArguments*/ undefined, signature.typeParameters, /*minTypeArgumentCount*/ 0);
13445
+ instantiatedSignatures.push(getSignatureInstantiation(signature, typeArguments));
13446
+ }
13447
+ else {
13448
+ instantiatedSignatures.push(signature);
13449
+ }
13450
+ }
13451
+
13452
+ return getUnionType(map(instantiatedSignatures, getReturnTypeOfSignature), /*subtypeReduction*/ true);
13442
13453
}
13443
13454
13444
13455
/**
You can’t perform that action at this time.
0 commit comments