wrend/types/
attribute_map.rs

1use js_sys::Map;
2use wasm_bindgen::prelude::wasm_bindgen;
3
4#[wasm_bindgen(typescript_custom_section)]
5const ATTRIBUTE_MAP: &'static str = r#"
6type AttributeMap = Map<string, Attribute>;
7"#;
8
9#[wasm_bindgen]
10extern "C" {
11    #[wasm_bindgen(extends = Map, is_type_of = JsValue::is_object, typescript_type = "AttributeMap")]
12    #[derive(Clone, Debug, PartialEq, Eq)]
13    pub type AttributeMap;
14}