Repository navigation
Conversation
billyvg
force-pushed
the
billyvg/feat/api-contracts-generated
branch
from
November 3, 2026 20:44
17d1fc8 to
b5413db
Compare
billyvg
force-pushed
the
billyvg/feat/api-options-contract
branch
from
November 3, 2026 20:44
5358ae3 to
1ecea65
Compare
billyvg
force-pushed
the
billyvg/feat/api-options-contract
branch
from
November 3, 2026 21:05
1ecea65 to
f25d477
Compare
billyvg
force-pushed
the
billyvg/feat/api-contracts-generated
branch
from
November 3, 2026 21:05
b5413db to
36eef60
Compare
Contributor
Sentry Snapshot Testing
|
Add apiOptions.contract() and contractInfinite(), which take the response type of a route's GET from the generated ApiMapping instead of an explicit type argument. Routes without a GET contract are rejected at typecheck; they stay on apiOptions.as<T>(). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
billyvg
force-pushed
the
billyvg/feat/api-options-contract
branch
from
November 3, 2026 22:59
f25d477 to
d85b311
Compare
This branch was successfully deployed
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
apiOptions.contract()andapiOptions.contractInfinite(). They take the response type from the generatedApiMapping(stacked on #129590), so callers no longer pass it by hand:They only accept routes whose GET declares a response type on the backend. Any other route fails typecheck instead of quietly becoming
unknown, and stays onas<T>(). This PR changes no call sites.🤖 Generated with Claude Code