Skip to content

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

Merged
nlf merged 2 commits intomainfrom
nlf/discriminated-unions
May 20, 2025
Merged

feat: make responses discriminated unions for stronger type safety while not throwing for invalid status codes#1
nlf merged 2 commits intomainfrom
nlf/discriminated-unions

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