Skip to main content
function toResult<T, E>(fn): Promise<Result<T, E>>;
Defined in: client/utils.ts:5

Type Parameters

T

T

E

E = Error

Parameters

fn

Promise<T> | (() => Promise<T>)

Returns

Promise<Result<T, E>>