function Err
thefrontside/effectionConstruct a failed Result with cause and error referring to the
same Error. The cause alias is non-enumerable to preserve the v4 object shape.
Example
import { Err } from 'effection';
let result = Err(new Error("oh no"));
// { ok: false, error: Error("oh no") }
Type Parameters
T
Parameters
cause: unknown
Return Type
Result<T>