devtypes
    Preparing search index...

    Type Alias Promisify<F>

    Promisify: F extends (...args: infer A) => infer R
        ? (...args: A) => Promise<R>
        : never

    Promisify a function type

    Type Parameters

    • F
    type Fn = (a: string, b: number) => boolean;
    type PromisifiedFn = Promisify<Fn>; // (a: string, b: number) => Promise<boolean>