blackglory

blackglory/return-style

🌲 Convert the result of any function or promise to the user's desired style.

TypeScript
0
0
MIT License

`return-style` is a TypeScript library that provides functions to convert the results of synchronous or asynchronous operations into various user-desired styles, such as tuples, Result/Option types, or simple boolean checks. It's designed for developers who want to handle errors and results in a more functional or Rust-like manner, particularly useful in testing scenarios and when working with both synchronous and asynchronous code.

Total donated
Undistributed
Share with your subscribers: