Newer
Older
minerva / Userland / Libraries / LibWeb / HTML / PromiseRejectionEvent.idl
@minerva minerva on 13 Jul 412 bytes Initial commit
#import <DOM/Event.idl>

// https://html.spec.whatwg.org/#promiserejectionevent
[Exposed=(Window,Worker)]
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;
};