We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
arguments
args
1 parent 9c9b659 commit fa70a18Copy full SHA for fa70a18
1 file changed
src/compiler/utilities.ts
@@ -1411,16 +1411,16 @@ namespace ts {
1411
if (callExpression.kind !== SyntaxKind.CallExpression) {
1412
return false;
1413
}
1414
- const { expression, arguments } = callExpression as CallExpression;
+ const { expression, arguments: args } = callExpression as CallExpression;
1415
1416
if (expression.kind !== SyntaxKind.Identifier || (expression as Identifier).text !== "require") {
1417
1418
1419
1420
- if (arguments.length !== 1) {
+ if (args.length !== 1) {
1421
1422
1423
- const arg = arguments[0];
+ const arg = args[0];
1424
return !checkArgumentIsStringLiteral || arg.kind === SyntaxKind.StringLiteral || arg.kind === SyntaxKind.NoSubstitutionTemplateLiteral;
1425
1426
0 commit comments