• Converts a method with given signature and callback to a Promise returning method

    Parameters

    • ob: any

      an object to be bound to the function parameter

    • fnc: any

      a function object to be invoked

    • Rest...args: any

      args of the function. The function has one additional callback parameter

    Returns Promise<unknown>

    the Promise, will be fulfilled if the callback is invoked