Deferred from PR #558 review.
Original reviewer comment: #558 (comment)
Context: The three public parse entry-point functions (parseFileAuto, parseFilesAuto, parseFileIncremental) in src/domain/parser.ts return Promise<any>. The native and WASM paths return structurally different shapes, but the WASM path could be narrowed to Promise<ExtractorOutput> while keeping any only for the native path. This improves type safety for consumers of the WASM code path.
Affected lines: ~493 and ~660 in src/domain/parser.ts.
Deferred from PR #558 review.
Original reviewer comment: #558 (comment)
Context: The three public parse entry-point functions (
parseFileAuto,parseFilesAuto,parseFileIncremental) insrc/domain/parser.tsreturnPromise<any>. The native and WASM paths return structurally different shapes, but the WASM path could be narrowed toPromise<ExtractorOutput>while keepinganyonly for the native path. This improves type safety for consumers of the WASM code path.Affected lines: ~493 and ~660 in
src/domain/parser.ts.