Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Variable.unit

GitHub Actions edited this page May 22, 2025 · 1 revision

resultar / unit

Variable: unit()

const unit: <E>() => Result<undefined, E> = Result.unit

Defined in: result.ts:629

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

Type Parameters

E

E = never

Returns

Result<undefined, E>

A new Result instance with an undefined value.

Clone this wiki locally