Type Utils
    Preparing search index...

    Type Alias Async<T>

    Async: T extends Promise<any>
        ? T
        : T extends Func<infer Params, infer RT>
            ? RT extends Promise<infer WrappedType>
                ? AsyncFunc<Params, WrappedType>
                : AsyncFunc<Params, RT>
            : Promise<T>

    wraps an value in a Promise or the return value of a function

    Type Parameters

    • T