-
Notifications
You must be signed in to change notification settings - Fork 0
Variable.okAsync
GitHub Actions edited this page May 22, 2025
·
1 revision
resultar / okAsync
constokAsync: {<T,E>(value):ResultAsync<T,E>; <T,E>(value):ResultAsync<void,E>; } =ResultAsync.okAsync
Defined in: result-async.ts:472
<
T,E>(value):ResultAsync<T,E>
Returns a ResultAsync instance that is immediately resolved with a Result.ok(value).
T
E = never
T
The value to be wrapped in a Result.ok.
ResultAsync<T, E>
A ResultAsync instance with the given value and error type E.
<
T,E>(value):ResultAsync<void,E>
Returns a ResultAsync instance that is immediately resolved with a Result.ok(value).
T extends void = void
E = never
void
The value to be wrapped in a Result.ok.
ResultAsync<void, E>
A ResultAsync instance with the given value and error type E.