CodeQL library for JavaScript/TypeScript
codeql/javascript-all 0.8.14 (changelog, source)
Search

Member predicate DynamicImportExpr::getImportAttributes

DEPRECATED: use getImportOptions instead. Gets the second “argument” to the import expression, that is, the Y in import(X, Y).

For example, gets the { with: { type: "json" }} expression in the following:

import('foo', { with: { type: "json" }})
Expr getImportAttributes()