@adviser/cement - v0.0.0
    Preparing search index...

    Type Alias ResultOnce<R>

    ResultOnce: R extends Promise<infer T> ? Promise<T> : R

    Type helper that unwraps Promise types to their resolved value type.

    Type Parameters

    • R

      The type to unwrap

    type A = ResultOnce<Promise<number>>; // Promise<number>
    type B = ResultOnce<string>; // string