The functions that create a ResultAsyncFn, grouped under the type they return.
Every member is also exported on its own, so this is only a matter of preference. The grouped names are shorter, since the type they belong to says what they operate on.
import { ResultAsyncFn } from "evercatch";const safeFetch = ResultAsyncFn.from(fetch);const [error, response] = await safeFetch("https://api.example.com/data"); Copy
import { ResultAsyncFn } from "evercatch";const safeFetch = ResultAsyncFn.from(fetch);const [error, response] = await safeFetch("https://api.example.com/data");
The functions that create a ResultAsyncFn, grouped under the type they return.
Every member is also exported on its own, so this is only a matter of preference. The grouped names are shorter, since the type they belong to says what they operate on.
Example