web_extensions_sys/downloads.rs
1use js_sys::Object;
2use wasm_bindgen::prelude::*;
3
4// TODO other methods
5#[wasm_bindgen]
6extern "C" {
7 pub type Downloads;
8
9 #[wasm_bindgen(catch, method)]
10 pub async fn download(this: &Downloads, info: &Object) -> Result<JsValue, JsValue>;
11
12 #[wasm_bindgen(catch, method)]
13 pub async fn search(this: &Downloads, query: &JsValue) -> Result<JsValue, JsValue>;
14}