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

Method ambientDeclarationFilePredicate

src/index.ts:2985–2987  ·  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

2983 * there, in particular why a `types.ts` the codebase imports is NOT flagged.
2984 */
2985 ambientDeclarationFilePredicate(filePaths: Iterable<string>): (filePath: string) => boolean {
2986 return this.queries.ambientDeclarationPredicateFor(filePaths);
2987 }
2988
2989 /** How many indexed files are flagged tool-generated. Reported by `status`. */
2990 getGeneratedFileCount(): number {

Callers 2

handleExploreMethod · 0.80

Calls 1

Tested by

no test coverage detected