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

Member predicate TSConfig::hasPrefixPathMapping

Holds if this has a path mapping from the pattern prefix to the newPath prefix. The trailing * is not included.

For example, "paths": { "@/*": "./src/*" } maps the @/ pattern to ./src/.

Does not include path mappings from extended tsconfig files.

predicate hasPrefixPathMapping(string pattern, string newPath)