Replies: 1 comment 5 replies
-
Just posted an MVP version on X: https://x.com/unnoqcom/status/1901433349723537690/photo/1 . The main idea is that you define the types of errors you'll throw separately. Thankfully, this approach seems to work perfectly for oRPC! |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm really interested to see how throwing errors can be made type safe.
in TypeScript type safe errors usually means you sacrifice
throw
and instead have some kind ofResult
type and handling with a library like neverthrow.Beta Was this translation helpful? Give feedback.
All reactions