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

Function isJsFamilyFile

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

Source from the content-addressed store, hash-verified

5040
5041/** A `.js`/`.ts`-family file, the modules whose default an `export default` statement or the first exported declaration names. */
5042export function isJsFamilyFile(filePath: string): boolean {
5043 return JS_FAMILY_FILE.test(filePath);
5044}
5045
5046/**
5047 * 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