ladybird/Userland/Libraries/LibWeb/HTML/PromiseRejectionEvent.idl

14 lines
376 B
Text

#import <DOM/Event.idl>
[Exposed=(Window,Worker), NoInstanceWrapper]
interface PromiseRejectionEvent : Event {
constructor(DOMString type, PromiseRejectionEventInit eventInitDict);
readonly attribute Promise<any> promise;
readonly attribute any reason;
};
dictionary PromiseRejectionEventInit : EventInit {
required Promise<any> promise;
any reason;
};