Skip to content

Function.unitAsync

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

resultar / unitAsync

Function: unitAsync()

unitAsync<E>(): ResultAsync<undefined, E>

Defined in: result-async.ts:472

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

Type Parameters

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