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 {
4262642626 return undefined;
4262742627 }
4262842628
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[] {
4263042633 switch (node.kind) {
4263142634 case SyntaxKind.CallExpression:
4263242635 case SyntaxKind.Decorator:
@@ -42717,14 +42720,14 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
4271742720
4271842721 if (isCallLikeExpression(node.parent)) {
4271942722 return getTypeParameterConstraintForPositionAcrossSignatures(
42720- getSignaturesFromCallLike (node.parent),
42723+ getUninstantiatedSignatures (node.parent),
4272142724 typeArgumentPosition,
4272242725 );
4272342726 }
4272442727
4272542728 if (isDecorator(node.parent.parent)) {
4272642729 return getTypeParameterConstraintForPositionAcrossSignatures(
42727- getSignaturesFromCallLike (node.parent.parent),
42730+ getUninstantiatedSignatures (node.parent.parent),
4272842731 typeArgumentPosition,
4272942732 );
4273042733 }
You can’t perform that action at this time.
0 commit comments