-
Notifications
You must be signed in to change notification settings - Fork 0
Function.ok
GitHub Actions edited this page Mar 5, 2025
·
27 revisions
resultar / ok
ok<
T,E>(value):Result<T,E>
Defined in: result.ts:626
Creates a new Result instance representing a successful operation.
• T
• E = never
T
The value to be wrapped in the Result instance.
Result<T, E>
A new Result instance with the provided value.
ok<
T,E>(value):Result<void,E>
Defined in: result.ts:626
Creates a new Result instance representing a successful operation.
• T extends void = void
• E = never
void
The value to be wrapped in the Result instance.
Result<void, E>
A new Result instance with the provided value.