electron-sys 0.4.0

Raw bindings to the Electron API for projects using wasm-bindgen.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::{class::ClientRequest, interface::ClientRequestOptions};
use wasm_bindgen::prelude::*;

#[wasm_bindgen(module = "electron")]
extern {
    #[wasm_bindgen]
    pub type Net;

    pub static net: Net;

    #[wasm_bindgen(method)]
    pub fn request(this: &Net, options: ClientRequestOptions) -> ClientRequest;
}