MCPcopy Index your code
hub / github.com/nodejs/node / getEffectiveTypeRoots

Function getEffectiveTypeRoots

test/fixtures/snapshot/typescript.js:42491–42505  ·  view source on GitHub ↗
(options, host)

Source from the content-addressed store, hash-verified

42489 }
42490 ts.getPackageJsonTypesVersionsPaths = getPackageJsonTypesVersionsPaths;
42491 function getEffectiveTypeRoots(options, host) {
42492 if (options.typeRoots) {
42493 return options.typeRoots;
42494 }
42495 var currentDirectory;
42496 if (options.configFilePath) {
42497 currentDirectory = ts.getDirectoryPath(options.configFilePath);
42498 }
42499 else if (host.getCurrentDirectory) {
42500 currentDirectory = host.getCurrentDirectory();
42501 }
42502 if (currentDirectory !== undefined) {
42503 return getDefaultTypeRoots(currentDirectory, host);
42504 }
42505 }
42506 ts.getEffectiveTypeRoots = getEffectiveTypeRoots;
42507 /**
42508 * Returns the path to every node_modules/@types directory from some ancestor directory.

Callers 2

Calls 1

getDefaultTypeRootsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…