Skip to content

Commit bfe7f02

Browse files
committed
Fix lint errors
1 parent 38e174b commit bfe7f02

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/compiler/checker.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15826,7 +15826,7 @@ namespace ts {
1582615826
}
1582715827
const iife = getImmediatelyInvokedFunctionExpression(func);
1582815828
if (iife && iife.arguments) {
15829-
const args = getEffectiveCallArguments(iife)!;
15829+
const args = getEffectiveCallArguments(iife);
1583015830
const indexOfParameter = func.parameters.indexOf(parameter);
1583115831
if (parameter.dotDotDotToken) {
1583215832
return getSpreadArgumentType(args, indexOfParameter, args.length, anyType, /*context*/ undefined);
@@ -15955,7 +15955,7 @@ namespace ts {
1595515955

1595615956
// In a typed function call, an argument or substitution expression is contextually typed by the type of the corresponding parameter.
1595715957
function getContextualTypeForArgument(callTarget: CallLikeExpression, arg: Expression): Type | undefined {
15958-
const args = getEffectiveCallArguments(callTarget)!; // TODO: GH#18217
15958+
const args = getEffectiveCallArguments(callTarget);
1595915959
const argIndex = args.indexOf(arg); // -1 for e.g. the expression of a CallExpression, or the tag of a TaggedTemplateExpression
1596015960
return argIndex === -1 ? undefined : getContextualTypeForArgumentAtIndex(callTarget, argIndex);
1596115961
}
@@ -18461,7 +18461,7 @@ namespace ts {
1846118461
}
1846218462
}
1846318463
else if (node.kind === SyntaxKind.Decorator) {
18464-
argCount = getDecoratorArgumentCount(<Decorator>node, signature);
18464+
argCount = getDecoratorArgumentCount(node, signature);
1846518465
}
1846618466
else {
1846718467
if (!node.arguments) {
@@ -18783,7 +18783,7 @@ namespace ts {
1878318783
return args;
1878418784
}
1878518785
if (node.kind === SyntaxKind.Decorator) {
18786-
return getEffectiveDecoratorArguments(<Decorator>node);
18786+
return getEffectiveDecoratorArguments(node);
1878718787
}
1878818788
if (isJsxOpeningLikeElement(node)) {
1878918789
return node.attributes.properties.length > 0 ? [node.attributes] : emptyArray;

0 commit comments

Comments
 (0)