Function promisify

  • Convert callback-style to promise-style If this is applied to overloaded function it will only choose one of the function signatures to use

    Type Parameters

    • T extends unknown[]

    • P extends unknown[]

    • R extends unknown[]

    Parameters

    • f: ((...args) => unknown)
        • (...args): unknown
        • Parameters

          • Rest ...args: [...params: P[], callback: Callback<T>]

          Returns unknown

    Returns ((...params) => Promise<R>)

      • (...params): Promise<R>
      • Parameters

        • Rest ...params: P

        Returns Promise<R>

Generated using TypeDoc