PromiseRejectionEvent

interface

interface PromiseRejectionEvent extends Event

variable

var PromiseRejectionEvent: { … }

The constructor object for PromiseRejectionEvent, used to construct the event dispatched on the global scope as unhandledrejection and rejectionhandled when a promise is rejected without a handler.

Constructors

constructor

new PromiseRejectionEvent(type: string, eventInitDict?: PromiseRejectionEventInit): PromiseRejectionEvent

Properties

promise

readonly promise: Promise<any>

reason

readonly reason: any

prototype

readonly prototype: PromiseRejectionEvent