web_extensions_sys/
commands.rs

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