Function PromiseReject

  • Creates a new rejected promise for the provided reason.

    Returns

    A new rejected Promise.

    Type Parameters

    • T = never

    Parameters

    • Optional reason: any

      The reason the promise was rejected.

    Returns Promise<T>

Generated using TypeDoc