Skip to content

feat: make responses discriminated unions for stronger type safety while not throwing for invalid status codes #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 20, 2025

Conversation

nlf
Copy link
Contributor

@nlf nlf commented May 20, 2025

I also added several utility types to infer specific things about specific routes and route patterns, but I think this gives us a much more pleasant working experience. Less like a special purpose client and more like a fetch wrapper that provides strong typing.

@nlf nlf merged commit 3cee2b6 into main May 20, 2025
2 checks passed
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