MCPcopy Create free account
hub / github.com/nodejs/node / isInDirectoryPath

Function isInDirectoryPath

test/fixtures/snapshot/typescript.js:121282–121287  ·  view source on GitHub ↗
(dir, file)

Source from the content-addressed store, hash-verified

121280 return resolution.resolvedTypeReferenceDirective;
121281 }
121282 function isInDirectoryPath(dir, file) {
121283 if (dir === undefined || file.length <= dir.length) {
121284 return false;
121285 }
121286 return ts.startsWith(file, dir) && file[dir.length] === ts.directorySeparator;
121287 }
121288 function clear() {
121289 ts.clearMap(directoryWatchesOfFailedLookups, ts.closeFileWatcherOf);
121290 customFailedLookupPaths.clear();

Calls

no outgoing calls

Tested by

no test coverage detected