1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DOMStringMap , typescript_type = "DOMStringMap")]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `DomStringMap` class."]
10 #[doc = ""]
11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMStringMap)"]
12 #[doc = ""]
13 #[doc = "*This API requires the following crate features to be activated: `DomStringMap`*"]
14 pub type DomStringMap;
15 #[wasm_bindgen(method, structural, js_class = "DOMStringMap", indexing_getter)]
16 #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
17 #[doc = ""]
18 #[doc = ""]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `DomStringMap`*"]
21 pub fn get(this: &DomStringMap, name: &str) -> Option<String>;
22 #[wasm_bindgen(catch, method, structural, js_class = "DOMStringMap", indexing_setter)]
23 #[doc = "Indexing setter. As in the literal Javascript `this[key] = value`."]
24 #[doc = ""]
25 #[doc = ""]
26 #[doc = ""]
27 #[doc = "*This API requires the following crate features to be activated: `DomStringMap`*"]
28 pub fn set(this: &DomStringMap, name: &str, value: &str) -> Result<(), JsValue>;
29 #[wasm_bindgen(method, structural, js_class = "DOMStringMap", indexing_deleter)]
30 #[doc = "Indexing deleter. As in the literal Javascript `delete this[key]`."]
31 #[doc = ""]
32 #[doc = ""]
33 #[doc = ""]
34 #[doc = "*This API requires the following crate features to be activated: `DomStringMap`*"]
35 pub fn delete(this: &DomStringMap, name: &str);
36}
37