web-extensions-sys 0.4.2

This crate provides WebExtension API WASM bindings
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::EventTarget;
use wasm_bindgen::prelude::*;

// TODO
#[wasm_bindgen]
extern "C" {
    pub type BrowserAction;

    #[wasm_bindgen(method, getter, js_name = onClicked)]
    pub fn on_clicked(this: &BrowserAction) -> EventTarget;
}