File tree Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -4827,20 +4827,8 @@ namespace ts {
4827
4827
4828
4828
function getInstantiatedConstructorsForTypeArguments(type: Type, typeArgumentNodes: TypeNode[], location: Node): Signature[] {
4829
4829
const signatures = getConstructorsForTypeArguments(type, typeArgumentNodes, location);
4830
- if (some(signatures)) {
4831
- const result: Signature[] = [];
4832
- const typeArguments = map(typeArgumentNodes, getTypeFromTypeNode);
4833
- for (const sig of signatures) {
4834
- if (some(sig.typeParameters)) {
4835
- result.push(getSignatureInstantiation(sig, typeArguments));
4836
- }
4837
- else {
4838
- result.push(sig);
4839
- }
4840
- }
4841
- return result;
4842
- }
4843
- return emptyArray;
4830
+ const typeArguments = map(typeArgumentNodes, getTypeFromTypeNode);
4831
+ return sameMap(signatures, sig => some(sig.typeParameters) ? getSignatureInstantiation(sig, typeArguments) : sig);
4844
4832
}
4845
4833
4846
4834
/**
You can’t perform that action at this time.
0 commit comments