Type Alias: AsyncResult<T, E>
AsyncResult<
T,E> = {data:T;ok:true; } | {error:E;ok:false; }
Defined in: use-async.ts:14
The outcome of a call to UseAsyncReturn.run, reported as a value so
run never rejects.
Type Parameters
T
T
The type of data the async function resolves with.
E
E = unknown
The type of error the async function rejects with.