-
Notifications
You must be signed in to change notification settings - Fork 0
Function.okAsync
GitHub Actions edited this page Mar 5, 2025
·
27 revisions
resultar / okAsync
okAsync<
T,E>(value):ResultAsync<T,E>
Defined in: result-async.ts:468
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.
okAsync<
T,E>(value):ResultAsync<void,E>
Defined in: result-async.ts:468
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.