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