vlocode-project - v1.40.0-beta-4
    Preparing search index...

    Function thenCall

    • Helper method to support old NodeJS callback style on promises

      Type Parameters

      • P extends PromiseLike<T>
      • T = Awaited<P>

      Parameters

      • promise: P

        the promise object

      • Optionalcallback: (err: any, value: undefined | T) => any

        the callback to register

      Returns PromiseLike<T> | P

      Promise object on which the callback is integrated