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

Function isIndexFileName

test/fixtures/snapshot/typescript.js:153483–153485  ·  view source on GitHub ↗
(fileName)

Source from the content-addressed store, hash-verified

153481 return false;
153482 }
153483 function isIndexFileName(fileName) {
153484 return ts.getBaseFileName(fileName, [".js", ".jsx", ".d.ts", ".ts", ".tsx"], /*ignoreCase*/ true) === "index";
153485 }
153486 function compareNodeCoreModuleSpecifiers(a, b, importingFile, program) {
153487 if (ts.startsWith(a, "node:") && !ts.startsWith(b, "node:"))
153488 return ts.shouldUseUriStyleNodeCoreModules(importingFile, program) ? -1 /* Comparison.LessThan */ : 1 /* Comparison.GreaterThan */;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected