web-extensions-sys 0.3.1

This crate provides WebExtension API WASM bindings
Documentation
use js_sys::Object;
use wasm_bindgen::prelude::*;

#[wasm_bindgen]
extern "C" {
    pub type SidebarAction;

    #[wasm_bindgen(catch, method)]
    pub async fn open(this: &SidebarAction) -> Result<JsValue, JsValue>;

    #[wasm_bindgen(catch, method, js_name = setPanel)]
    pub async fn set_panel(this: &SidebarAction, details: &Object) -> Result<JsValue, JsValue>;
}