Skip to main content
Version: v1

Result TypeAlias

Discriminated union instance that wraps either a result of type TOk or an error of type TError.

Signature

export declare type Result<TOk, TError> = Result.Ok<TOk> | Result.Error<TError>;

Type Parameters

Parameter Description
TOk
TError