ndthanhdev

ndthanhdev/ok-value-error-reason

An elegant way to handle exception

TypeScript
2
0
MIT License

This TypeScript library provides an elegant way to handle exceptions from both synchronous and asynchronous functions by wrapping function calls and returning an `Over` object that represents either a successful result (`OKValue`) or an error reason (`ErrorReason`). It's designed for TypeScript developers who want to handle errors more gracefully and type-safely, especially when working with functions that might throw exceptions or return promises. The library simplifies error handling by allowing developers to check the `.ok` property to narrow down the type and handle success or error cases accordingly.

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies of ndthanhdev/ok-value-error-reason

Account's avatar
TypeScript definitions for jest
Account's avatar
A preprocessor for Jest to snapshot test TypeScript declaration (.d.ts) files
Account's avatar
Delightful JavaScript Testing.
Account's avatar
A Jest transformer with source map support that lets you use Jest to test projects written in TypeScript
Account's avatar
TypeScript is a language for application scale JavaScript development

Support the repos that depend on ndthanhdev/ok-value-error-reason

Top contributors

ndthanhdev's profile
ndthanhdev
12 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet