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