/** * TypeScript Compiler Scanner * * Uses the TypeScript compiler API to detect type safety issues: * - `any` type usage * - @ts-ignore and @ts-expect-error comments * - Missing return types on exported functions * - Unsafe type assertions (as unknown as T) * - Type coverage metrics * * Monorepo-aware: discovers all workspace package directories via * `discoverWorkspaceDirs`, resolves each package's tsconfig.json, * expands solution-style configs (those with `references` that resolve * zero files), deduplicates findings by `file:line:code`, and caps at * 25 configs to avoid runaway memory usage. * * @module scanners/typescript */ import type { ScannerResult } from "./types.js"; /** * Type coverage statistics */ export interface TypeCoverageStats { totalSymbols: number; explicitlyTyped: number; anyTypes: number; unknownTypes: number; coveragePercent: number; } /** * Run TypeScript analysis and return findings. * * Monorepo-aware: discovers all workspace tsconfigs and aggregates findings, * deduplicating by `file:line:code` so each diagnostic is reported once. */ export declare function runTypeScriptAnalysis(projectPath: string): Promise; /** * Calculate type coverage for a project */ export declare function calculateTypeCoverage(projectPath: string): Promise; //# sourceMappingURL=typescript.d.ts.map