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

Member predicate TSConfig::hasExactPathMapping

Holds if this has an exact path mapping (i.e. no wildcards) from pattern to newPath.

For example, "paths": { "@": "./src/index.ts" } maps the @ path to ./src/index.ts.

Does not include path mappings from extended tsconfig files.

predicate hasExactPathMapping(string pattern, string newPath)