The type of the input value or promise.
The type of the potential error.
A PendingResult resolving to Ok with the awaited value.
const x = pendingOk<number, string>(42);
const y = pendingOk<string, number>(Promise.resolve("hello"));
expect(await x).toStrictEqual(ok(42));
expect(await y).toStrictEqual(ok("hello"));
Creates a PendingResult<T, E> that resolves to Ok containing the awaited value.
Takes a value or promise and wraps its resolved result in an Ok, ensuring the value type is
Awaited
to handle anyPromiseLike
input.