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

Function isJsFamilyFile

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

Source from the content-addressed store, hash-verified

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