Type Parameters

  • T = unknown

Implements

  • Promise<T | void>

Constructors

Properties

Accessors

Methods

Constructors

Properties

catch: (<TResult>(onrejected?) => Promise<void | T | TResult>) = ...

Type declaration

    • <TResult>(onrejected?): Promise<void | T | TResult>
    • Attaches a callback for only the rejection of the Promise.

      Type Parameters

      • TResult = never

      Parameters

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

        The callback to execute when the Promise is rejected.

      Returns Promise<void | T | TResult>

      A Promise for the completion of the callback.

finally: ((onfinally?) => Promise<void | T>) = ...

Type declaration

    • (onfinally?): Promise<void | T>
    • Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The resolved value cannot be modified from the callback.

      Parameters

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

        The callback to execute when the Promise is settled (fulfilled or rejected).

      Returns Promise<void | T>

      A Promise for the completion of the callback.

then: (<TResult1, TResult2>(onfulfilled?, onrejected?) => Promise<TResult1 | TResult2>) = ...

Type declaration

    • <TResult1, TResult2>(onfulfilled?, onrejected?): Promise<TResult1 | TResult2>
    • Attaches callbacks for the resolution and/or rejection of the Promise.

      Type Parameters

      • TResult1 = void | T

      • TResult2 = never

      Parameters

      Returns Promise<TResult1 | TResult2>

      A Promise for the completion of which ever callback is executed.

Accessors

Methods

Generated using TypeDoc