-
Notifications
You must be signed in to change notification settings - Fork 0
Variable.ok
GitHub Actions edited this page May 22, 2025
·
1 revision
resultar / ok
constok: {<T,E>(value):Result<T,E>; <T,E>(value):Result<void,E>; } =Result.ok
Defined in: result.ts:626
<
T,E>(value):Result<T,E>
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.
<
T,E>(value):Result<void,E>
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.