Skip to content

Variable.unitAsync

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

resultar / unitAsync

Variable: unitAsync()

const unitAsync: <E>() => ResultAsync<undefined, E> = ResultAsync.unitAsync

Defined in: result-async.ts:476

Returns a ResultAsync that is immediately resolved with a Result.ok(undefined) value.

Type Parameters

E

E = never

Returns

ResultAsync<undefined, E>

A ResultAsync instance with undefined as the value type and E as the error type.

Clone this wiki locally