A promise wrapper that supports the old NodeJS callback style with thenCall method. Used by thenablePromise decorator to make any Async function that returns a promise support the old NodeJS callback style and return the promise that supports thenCall method.

Type Parameters

  • T

Hierarchy

  • ThenablePromise

Implements

  • Promise<T>

Constructors

Properties

Methods

Constructors

Properties

[toStringTag]: "ThenablePromise" = 'ThenablePromise'
promise: Promise<T>

Methods

  • Type Parameters

    • TResult = never

    Parameters

    • Optional onrejected: null | ((reason) => TResult | PromiseLike<TResult>)

    Returns Promise<T | TResult>

  • Parameters

    • Optional onfinally: null | (() => void)

    Returns Promise<T>

  • Type Parameters

    • TResult1 = T

    • TResult2 = never

    Parameters

    • Optional onfulfilled: null | ((value) => TResult1 | PromiseLike<TResult1>)
    • Optional onrejected: null | ((reason) => TResult2 | PromiseLike<TResult2>)

    Returns ThenablePromise<TResult1 | TResult2>