The functions that create a ResultFn, 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 { ResultFn } from "evercatch";const safeParse = ResultFn.from(JSON.parse);const [error, data] = safeParse('{"foo": "bar"}'); Copy
import { ResultFn } from "evercatch";const safeParse = ResultFn.from(JSON.parse);const [error, data] = safeParse('{"foo": "bar"}');
The functions that create a ResultFn, 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