Files
zeekayandGitHub 6dc0c36420 Turn on strict and stop hiding type errors in the build (#13)
* Turn on strict and stop hiding type errors in the build

tsc --noEmit --strict is clean after the lib and pages slices, so tsconfig
strict is now true and next.config.ts no longer sets ignoreBuildErrors: the
build (`pnpm build` in hanzo.yml) fails on any type error from here on.

The last 11 errors: telemetry's useEnter is generic over the element and returns
a tuple, the Hold context value is typed, FilmHead's inn is the data-in string,
the blockchain page and the DesignPage opener handle a missing value.
*.tsbuildinfo is ignored.

Testing: tsc --noEmit (strict) 0 errors; npm test 56 pass.
Risk: low; a later change that adds a type error now fails CI instead of shipping.
How to revert: git revert this commit.

Claude-Session: https://claude.ai/code/session_015XYKLix9PSyn6Jw2HWKprk

* Type the plans snapshot in plans.test.ts as a map of plans

The test drops Ultimate and Unlimited from the snapshot to prove the slider stops
at Ultra. It destructured them from the imported JSON, so its types followed
whatever prices the prebuild fetched: a live catalog without those two plans
failed `next build` type-checking in CI. Reading the snapshot as Record<string,
Plan> says what the test means, whatever the catalog holds.

Testing: tsc --noEmit clean with the committed snapshot and with Ultimate and
Unlimited removed from it; npm test passes.
Risk: none; test-only.
How to revert: git revert this commit.

Claude-Session: https://claude.ai/code/session_015XYKLix9PSyn6Jw2HWKprk
2026-11-14 02:02:44 -08:00
..