Genel bakış
typeCore Result

ResultLike

Structural result shape accepted by `from`.

Signature

tsSignature
export type ResultLike<T, E> = Ok<T> | Err<E>;

Imports

tsImport
import { ResultLike } from "@/lib/flow/core/result";
import { ResultLike } from "@/lib/flow";

Type Parameters

T

Success value type.

E

Expected error value type.

Details

Use this when adapting unbranded result-like values into branded Flow results.

when

Branches between two behaviors using a predicate function.

function

Source

tsflow/core/result.ts:55-55
export type ResultLike<T, E> = Ok<T> | Err<E>;