Skip to content

Function.unit

GitHub Actions edited this page Mar 5, 2025 · 11 revisions

resultar / unit

Function: unit()

unit<E>(): Result<undefined, E>

Defined in: result.ts:629

Creates a new Result instance representing a successful operation with an undefined value.

Type Parameters

E = never

Returns

Result<undefined, E>

A new Result instance with an undefined value.

Clone this wiki locally