1 2 3 4 5 6 7 8 9 10 11 12 13
//! Bindings to the `commands` API. use crate::EventTarget; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { pub type Commands; #[wasm_bindgen(method, getter, js_name = onCommand)] pub fn on_command(this: &Commands) -> EventTarget; }