1 #![allow(unused_imports)]
2 use super::*;
3 use wasm_bindgen::prelude::*;
4 #[wasm_bindgen]
5 extern "C" {
6     # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = ExtendableEvent , typescript_type = "ExtendableEvent")]
7     #[derive(Debug, Clone, PartialEq, Eq)]
8     #[doc = "The `ExtendableEvent` class."]
9     #[doc = ""]
10     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ExtendableEvent)"]
11     #[doc = ""]
12     #[doc = "*This API requires the following crate features to be activated: `ExtendableEvent`*"]
13     pub type ExtendableEvent;
14     #[wasm_bindgen(catch, constructor, js_class = "ExtendableEvent")]
15     #[doc = "The `new ExtendableEvent(..)` constructor, creating a new instance of `ExtendableEvent`."]
16     #[doc = ""]
17     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ExtendableEvent/ExtendableEvent)"]
18     #[doc = ""]
19     #[doc = "*This API requires the following crate features to be activated: `ExtendableEvent`*"]
new(type_: &str) -> Result<ExtendableEvent, JsValue>20     pub fn new(type_: &str) -> Result<ExtendableEvent, JsValue>;
21     #[cfg(feature = "ExtendableEventInit")]
22     #[wasm_bindgen(catch, constructor, js_class = "ExtendableEvent")]
23     #[doc = "The `new ExtendableEvent(..)` constructor, creating a new instance of `ExtendableEvent`."]
24     #[doc = ""]
25     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ExtendableEvent/ExtendableEvent)"]
26     #[doc = ""]
27     #[doc = "*This API requires the following crate features to be activated: `ExtendableEvent`, `ExtendableEventInit`*"]
new_with_event_init_dict( type_: &str, event_init_dict: &ExtendableEventInit, ) -> Result<ExtendableEvent, JsValue>28     pub fn new_with_event_init_dict(
29         type_: &str,
30         event_init_dict: &ExtendableEventInit,
31     ) -> Result<ExtendableEvent, JsValue>;
32     # [wasm_bindgen (catch , method , structural , js_class = "ExtendableEvent" , js_name = waitUntil)]
33     #[doc = "The `waitUntil()` method."]
34     #[doc = ""]
35     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ExtendableEvent/waitUntil)"]
36     #[doc = ""]
37     #[doc = "*This API requires the following crate features to be activated: `ExtendableEvent`*"]
wait_until(this: &ExtendableEvent, p: &::js_sys::Promise) -> Result<(), JsValue>38     pub fn wait_until(this: &ExtendableEvent, p: &::js_sys::Promise) -> Result<(), JsValue>;
39 }
40