Readonly
See ok.
Creates a successful result with the given value.
The type of the value.
Optional
The value to wrap in a successful result. Passed through as is.
A ResultOk containing the value.
const [error, value] = ok("Success"); // [null, "Success"] Copy
const [error, value] = ok("Success"); // [null, "Success"]
const [error, value] = ok(); // [null, undefined] Copy
const [error, value] = ok(); // [null, undefined]
See ok.