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
Currently we handle errors, validation/assertion failures, and successes in a variety of different ways. Sometimes we return {result: "Success"}, log + throw error up the stack, and/or {success: false, error: "this failed for some reason"}. I think we could become more consistent about things while using a Result type.
Currently we handle errors, validation/assertion failures, and successes in a variety of different ways. Sometimes we return
{result: "Success"}
,log + throw error up the stack
, and/or{success: false, error: "this failed for some reason"}
. I think we could become more consistent about things while using a Result type.Interesting articles/projects:
https://imhoff.blog/posts/using-results-in-typescript
https://github.com/vultix/ts-results
The text was updated successfully, but these errors were encountered: