You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Implement strict mode
* Add test for nest package
* Ensure strict mode works for express
* Ensure strict mode works for next
* Improve variable name
* Add changeset
* Only throw on unknown status
* Rename strict mode
* Undo breaking change to ApiRouteResponse
* Fix types after merge
* Address PR feedback
* Update changeset
* chore: add tests to dsl.spec.ts
* more tests and some simplification of types
* fix missing change for inference helpers
* docs
* fix tests after merge
---------
Co-authored-by: Youssef Gaber <1728215+Gabrola@users.noreply.github.com>
Implement strict mode at a contract level. Strict mode ensures that only known responses are allowed by the type system. This applies both on the server and client side. Enable this with `strictStatusCodes: true` when defining a contract.
9
+
10
+
If you would like to have the vanilla client throw an error when the response status is not known then you will need to use `throwOnUnknownStatus` when initializing the client.
0 commit comments