@bodil/opt
    Preparing search index...

    Type Alias ErrType<T>

    ErrType: T extends Result<any, infer E> ? E : never

    Extract the type of the error value from a Result type.

    Type Parameters

    • T
    type VoteResult = Result<"yes" | "no", Error>;
    type VoteErr = ErrType<VoteResult>; // Error