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

Member predicate DynamicImportExpr::getImportOptions

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 getImportOptions()