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

Function isDeclarationFile

src/resolution/ambient-modules.ts:62–64  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

60
61/** Whether `file` is a TypeScript declaration file, the kind that declares a module whole. */
62export function isDeclarationFile(file: string): boolean {
63 return DECLARATION_FILE.test(file);
64}
65
66/** Words that start an `export default` declaration rather than name its value. */
67const DEFAULT_DECLARATION_WORDS = new Set(['class', 'function', 'interface', 'abstract', 'async', 'enum']);

Callers 3

isStatedDefaultExportFunction · 0.90
isRepositoryModuleFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected