Repository navigation
Add type-level test harness (pnpm test:types) - #27
Closed
kac-axelor wants to merge 1 commit into
Closed
kac-axelor wants to merge 1 commit into
kac-axelor wants to merge 1 commit into
Conversation
This was referenced Jun 10, 2026
kac-axelor
force-pushed
the
type-level-tests
branch
2 times, most recently
from
June 11, 2026 00:44
71393f1 to
2fe421e
Compare
kac-axelor
force-pushed
the
type-level-tests
branch
from
June 11, 2026 00:50
2fe421e to
93b91c3
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a vitest typecheck suite (
pnpm test:types) that pins the client API's type contract — 38 cases covering where/select/orderBy/aggregate shapes, payload narrowing to selections, mutation inputs, and rejection of unknown keys at every nesting depth. No database needed: the client isdeclared and onlytscruns.Two cases fail by design — they specify intended behavior that lands in follow-up PRs:
contact: {}).Options<>guard fix: TS 6.0's inference change silently accepts unknown keys in nested positions.The suite is intentionally not wired into CI yet; it goes green over the course of the series and can be added to CI afterwards.
Series (merge order): #27 type tests (red by design) → #28 TypeScript 6.0 upgrade → #29
Options<>guard fix → #30 mappedBy fix. The suite in #27 goes fully green once all four are merged.