Skip to content

fix(audit): correct type-narrowing in the emit-coverage spec#705

Merged
rmyndharis merged 1 commit into
mainfrom
fix/audit-coverage-spec-typecheck
Jul 12, 2026
Merged

fix(audit): correct type-narrowing in the emit-coverage spec#705
rmyndharis merged 1 commit into
mainfrom
fix/audit-coverage-spec-typecheck

Conversation

@rmyndharis

Copy link
Copy Markdown
Owner

Main is red: the audit-coverage spec (from the emit-coverage gate) passed a possibly-undefined key into isEmitted, which the full-program typecheck (tsconfig.json, includes specs) rejects but the build typecheck (tsconfig.build.json, excludes specs) missed. isEmitted now accepts undefined and short-circuits. Verified with tsc --noEmit -p tsconfig.json (the exact CI command) + the 25 spec tests.

The stale-entry filter passed a possibly-undefined key into isEmitted. The
full-program typecheck (tsconfig.json, which includes specs) flags that,
but the build typecheck (tsconfig.build.json, which excludes specs) did not
-- so CI went red once the coverage gate merged. isEmitted now accepts
undefined and short-circuits, closing the narrowing gap.
@rmyndharis
rmyndharis merged commit 4f34977 into main Jul 12, 2026
6 checks passed
@rmyndharis
rmyndharis deleted the fix/audit-coverage-spec-typecheck branch July 12, 2026 04:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant