1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
use js_sys::{Number, Object};
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
pub type History;
#[wasm_bindgen(method)]
pub async fn search(this: &History, query: &Object) -> JsValue;
}
#[wasm_bindgen]
extern "C" {
pub type HistoryItem;
#[wasm_bindgen(method, getter)]
pub fn id(this: &HistoryItem) -> String;
#[wasm_bindgen(method, getter, js_name = lastVisitTime)]
pub fn last_visit_time(this: &HistoryItem) -> Option<Number>;
#[wasm_bindgen(method, getter)]
pub fn title(this: &HistoryItem) -> Option<String>;
#[wasm_bindgen(method, getter, js_name = typedCount)]
pub fn typed_count(this: &HistoryItem) -> Option<Number>;
#[wasm_bindgen(method, getter)]
pub fn url(this: &HistoryItem) -> Option<String>;
#[wasm_bindgen(method, getter, js_name = visitCount)]
pub fn visit_count(this: &HistoryItem) -> Option<Number>;
}