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