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

Method ambientDeclarationFilePredicate

src/index.ts:1631–1633  ·  view source on GitHub ↗

* A `(path) => boolean` ambient-declaration test over a BOUNDED candidate * list: true for a file that declares nothing but types, originates no call * edge, and that nothing in the index depends on — an ambient `.d.ts` of * global shims, vendored typings, module augmentation (CG-28). Struc

(filePaths: Iterable<string>)

Source from the content-addressed store, hash-verified

1629 * there, in particular why a `types.ts` the codebase imports is NOT flagged.
1630 */
1631 ambientDeclarationFilePredicate(filePaths: Iterable<string>): (filePath: string) => boolean {
1632 return this.queries.ambientDeclarationPredicateFor(filePaths);
1633 }
1634
1635 /** How many indexed files are flagged tool-generated. Reported by `status`. */
1636 getGeneratedFileCount(): number {

Callers 2

handleExploreMethod · 0.80

Calls 1

Tested by

no test coverage detected