ConstReadonlyasync: <V, E>(promise: Promise<Result<V, E>>) => AsyncResult<V, E>Creates an AsyncResult from a promise that resolves to a Result.
Useful for chaining asynchronous result operations without manually awaiting the underlying promise.
Readonlyerr: <E>(error: E) => Err<never, E>Creates a failed Result.
Readonlyok: <V>(value: V) => Ok<V, never>Creates a successful Result.
Readonlywrap: <V>(fn: () => SyncValue<V>) => Result<SyncValue<V>, unknown>Executes a synchronous function and wraps its return value in a Result.
ReadonlywrapAsync: <V>(fn: () => V | Promise<V>) => AsyncResult<V, unknown>Executes a synchronous or asynchronous function and wraps its return value in an AsyncResult.
A factory for creating and composing Results.