MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / isJsFamilyFile

Function isJsFamilyFile

src/resolution/import-resolver.ts:4820–4822  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

4818
4819/** A `.js`/`.ts`-family file, the modules whose default an `export default` statement or the first exported declaration names. */
4820export function isJsFamilyFile(filePath: string): boolean {
4821 return JS_FAMILY_FILE.test(filePath);
4822}
4823
4824/**
4825 * Whether the name of an `imports` reference into a module's own file node is

Callers 1

changedDefaultExportsMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected