Skip to content

Variable.errAsync

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

resultar / errAsync

Variable: errAsync()

const errAsync: {<T, E>(err): ResultAsync<T, E>; <T, E>(err): ResultAsync<T, void>; } = ResultAsync.errAsync

Defined in: result-async.ts:473

Call Signature

<T, E>(err): ResultAsync<T, E>

Returns a ResultAsync instance that is immediately resolved with a Result.err(error).

Type Parameters

T

T = never

E

E = unknown

Parameters

err

E

Returns

ResultAsync<T, E>

A ResultAsync instance with the given error and value type T.

Call Signature

<T, E>(err): ResultAsync<T, void>

Returns a ResultAsync instance that is immediately resolved with a Result.err(error).

Type Parameters

T

T = never

E

E extends void = void

Parameters

err

void

Returns

ResultAsync<T, void>

A ResultAsync instance with the given error and value type T.

Clone this wiki locally