Use case
tests/ (299 files, ~3 578 tests) is excluded from tsconfig.json, and typecheck:dev — the config that would check tests/, examples/ and benchmarks/ — runs in no CI workflow and is currently red (~314 pre-existing errors). Bun executes tests without type-checking them, so type rot in the test suite accumulates invisibly, and the suite's types drift from the APIs they exercise.
Proposed approach
- Burn down the ~314
typecheck:dev errors (mostly mechanical: stale option shapes, missing generics on probes, as never remnants).
- Add
bun run typecheck:dev as a CI job (own workflow or a job in test.yml) once green.
- Keep the build tsconfig untouched — this gates the dev config only.
Acceptance criteria
Related
Use case
tests/(299 files, ~3 578 tests) is excluded fromtsconfig.json, andtypecheck:dev— the config that would checktests/,examples/andbenchmarks/— runs in no CI workflow and is currently red (~314 pre-existing errors). Bun executes tests without type-checking them, so type rot in the test suite accumulates invisibly, and the suite's types drift from the APIs they exercise.Proposed approach
typecheck:deverrors (mostly mechanical: stale option shapes, missing generics on probes,as neverremnants).bun run typecheck:devas a CI job (own workflow or a job intest.yml) once green.Acceptance criteria
bun run typecheck:devexits 0 on developRelated
examples/in CI (examples gate issue, filed alongside)