We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8941e5f + fa70a18 commit bb8862fCopy full SHA for bb8862f
1 file changed
src/compiler/utilities.ts
@@ -1352,16 +1352,16 @@ namespace ts {
1352
if (callExpression.kind !== SyntaxKind.CallExpression) {
1353
return false;
1354
}
1355
- const { expression, arguments } = callExpression as CallExpression;
+ const { expression, arguments: args } = callExpression as CallExpression;
1356
1357
if (expression.kind !== SyntaxKind.Identifier || (expression as Identifier).text !== "require") {
1358
1359
1360
1361
- if (arguments.length !== 1) {
+ if (args.length !== 1) {
1362
1363
1364
- const arg = arguments[0];
+ const arg = args[0];
1365
return !checkArgumentIsStringLiteral || arg.kind === SyntaxKind.StringLiteral || arg.kind === SyntaxKind.NoSubstitutionTemplateLiteral;
1366
1367
0 commit comments