File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -42626,7 +42626,10 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
42626
42626
return undefined;
42627
42627
}
42628
42628
42629
- function getSignaturesFromCallLike(node: CallLikeExpression): readonly Signature[] {
42629
+ /**
42630
+ * Gets generic signatures from the function's/constructor's type.
42631
+ */
42632
+ function getUninstantiatedSignatures(node: CallLikeExpression): readonly Signature[] {
42630
42633
switch (node.kind) {
42631
42634
case SyntaxKind.CallExpression:
42632
42635
case SyntaxKind.Decorator:
@@ -42717,14 +42720,14 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
42717
42720
42718
42721
if (isCallLikeExpression(node.parent)) {
42719
42722
return getTypeParameterConstraintForPositionAcrossSignatures(
42720
- getSignaturesFromCallLike (node.parent),
42723
+ getUninstantiatedSignatures (node.parent),
42721
42724
typeArgumentPosition,
42722
42725
);
42723
42726
}
42724
42727
42725
42728
if (isDecorator(node.parent.parent)) {
42726
42729
return getTypeParameterConstraintForPositionAcrossSignatures(
42727
- getSignaturesFromCallLike (node.parent.parent),
42730
+ getUninstantiatedSignatures (node.parent.parent),
42728
42731
typeArgumentPosition,
42729
42732
);
42730
42733
}
You can’t perform that action at this time.
0 commit comments