@allynet/ishod
    Preparing search index...

    Type Alias ResultValue<TResult>

    ResultValue: TResult extends Ok<infer D> ? D : never

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

    Type Parameters

    • TResult extends Result<any, any>
    const thing: Result<number, string> = ok(1);
    type ResultType = ResultValue<typeof thing>; // number