Represents the outcome of an operation that can either succeed or fail.
Use this union type to model operations that return either a value or an error.
The type is narrowed with Ok.isOk and Err.isErr before reading the
payload in each branch.
Type Parameters
T
The value type produced by a successful operation.
Represents the outcome of an operation that can either succeed or fail.
Use this union type to model operations that return either a value or an error. The type is narrowed with Ok.isOk and Err.isErr before reading the payload in each branch.