Files
openclaw/scripts/check-deadcode-exports.d.mts
Peter Steinberger cd53ac012d fix(ci): harden hydrated dead-export scans (#120365)
* fix(ci): harden hydrated dead-export scans

* fix(ci): satisfy lint and test-type gates for hydrated scan hardening
2026-08-07 17:20:05 -07:00

23 lines
748 B
TypeScript

/** Parses compact Knip export sections into one path-and-symbol entry per finding. */
export function parseKnipCompactUnusedExports(output: string): string[];
/** Parses compact Knip export sections and reports whether Knip emitted one. */
export function parseKnipCompactUnusedExportsResult(output: string): {
entries: string[];
sawExportSection: boolean;
};
/** Rejects every unused export reported by Knip. */
export function checkUnusedExports(output: string): {
ok: boolean;
entries: string[];
message: string;
};
/** Classifies Knip export output, rejecting findings after resolution failures. */
export function checkExportScan(
scanName: string,
output: string,
): {
ok: boolean;
entries: string[];
message: string;
};