File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -23451,7 +23451,7 @@ namespace ts {
23451
23451
if (contextualType) {
23452
23452
const contextualSignature = getSingleCallSignature(getNonNullableType(contextualType));
23453
23453
if (contextualSignature && !contextualSignature.typeParameters) {
23454
- const context = <InferenceContext> getInferenceContext(node);
23454
+ const context = getInferenceContext(node)! ;
23455
23455
// We have an expression that is an argument of a generic function for which we are performing
23456
23456
// type argument inference. The expression is of a function type with a single generic call
23457
23457
// signature and a contextual function type with a single non-generic call signature. Now check
@@ -23491,7 +23491,7 @@ namespace ts {
23491
23491
if (checkMode & CheckMode.Inferential) {
23492
23492
// We have skipped a generic function during inferential typing. Obtain the inference context and
23493
23493
// indicate this has occurred such that we know a second pass of inference is be needed.
23494
- const context = <InferenceContext> getInferenceContext(node);
23494
+ const context = getInferenceContext(node)! ;
23495
23495
context.flags |= InferenceFlags.SkippedGenericFunction;
23496
23496
}
23497
23497
}
You can’t perform that action at this time.
0 commit comments