@allynet/ishod
    Preparing search index...

    Type Alias ResultError<TResult>

    ResultError: TResult extends Err<infer E> ? E : never

    This type is used to get the error of a result.

    Type Parameters

    • TResult extends Result<any, any>
    const thing: Result<number, string> = err("error");
    type ResultError = ResultError<typeof thing>; // string