1 #![allow(unused_imports)]
2 use super::*;
3 use wasm_bindgen::prelude::*;
4 #[wasm_bindgen]
5 extern "C" {
6     # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CustomElementRegistry , typescript_type = "CustomElementRegistry")]
7     #[derive(Debug, Clone, PartialEq, Eq)]
8     #[doc = "The `CustomElementRegistry` class."]
9     #[doc = ""]
10     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry)"]
11     #[doc = ""]
12     #[doc = "*This API requires the following crate features to be activated: `CustomElementRegistry`*"]
13     pub type CustomElementRegistry;
14     # [wasm_bindgen (catch , method , structural , js_class = "CustomElementRegistry" , js_name = define)]
15     #[doc = "The `define()` method."]
16     #[doc = ""]
17     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/define)"]
18     #[doc = ""]
19     #[doc = "*This API requires the following crate features to be activated: `CustomElementRegistry`*"]
define( this: &CustomElementRegistry, name: &str, function_constructor: &::js_sys::Function, ) -> Result<(), JsValue>20     pub fn define(
21         this: &CustomElementRegistry,
22         name: &str,
23         function_constructor: &::js_sys::Function,
24     ) -> Result<(), JsValue>;
25     #[cfg(feature = "ElementDefinitionOptions")]
26     # [wasm_bindgen (catch , method , structural , js_class = "CustomElementRegistry" , js_name = define)]
27     #[doc = "The `define()` method."]
28     #[doc = ""]
29     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/define)"]
30     #[doc = ""]
31     #[doc = "*This API requires the following crate features to be activated: `CustomElementRegistry`, `ElementDefinitionOptions`*"]
define_with_options( this: &CustomElementRegistry, name: &str, function_constructor: &::js_sys::Function, options: &ElementDefinitionOptions, ) -> Result<(), JsValue>32     pub fn define_with_options(
33         this: &CustomElementRegistry,
34         name: &str,
35         function_constructor: &::js_sys::Function,
36         options: &ElementDefinitionOptions,
37     ) -> Result<(), JsValue>;
38     # [wasm_bindgen (method , structural , js_class = "CustomElementRegistry" , js_name = get)]
39     #[doc = "The `get()` method."]
40     #[doc = ""]
41     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/get)"]
42     #[doc = ""]
43     #[doc = "*This API requires the following crate features to be activated: `CustomElementRegistry`*"]
get(this: &CustomElementRegistry, name: &str) -> ::wasm_bindgen::JsValue44     pub fn get(this: &CustomElementRegistry, name: &str) -> ::wasm_bindgen::JsValue;
45     #[cfg(feature = "Node")]
46     # [wasm_bindgen (method , structural , js_class = "CustomElementRegistry" , js_name = upgrade)]
47     #[doc = "The `upgrade()` method."]
48     #[doc = ""]
49     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/upgrade)"]
50     #[doc = ""]
51     #[doc = "*This API requires the following crate features to be activated: `CustomElementRegistry`, `Node`*"]
upgrade(this: &CustomElementRegistry, root: &Node)52     pub fn upgrade(this: &CustomElementRegistry, root: &Node);
53     # [wasm_bindgen (catch , method , structural , js_class = "CustomElementRegistry" , js_name = whenDefined)]
54     #[doc = "The `whenDefined()` method."]
55     #[doc = ""]
56     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/whenDefined)"]
57     #[doc = ""]
58     #[doc = "*This API requires the following crate features to be activated: `CustomElementRegistry`*"]
when_defined( this: &CustomElementRegistry, name: &str, ) -> Result<::js_sys::Promise, JsValue>59     pub fn when_defined(
60         this: &CustomElementRegistry,
61         name: &str,
62     ) -> Result<::js_sys::Promise, JsValue>;
63 }
64