wasm_streams/writable/
sys.rs1use wasm_bindgen::prelude::*;
5pub use web_sys::WritableStream;
6pub use web_sys::WritableStreamDefaultWriter;
7
8use crate::writable::into_underlying_sink::IntoUnderlyingSink;
9
10#[wasm_bindgen]
11extern "C" {
12 #[wasm_bindgen(js_name = WritableStream, typescript_type = "WritableStream")]
14 #[derive(Clone, Debug)]
15 pub(crate) type WritableStreamExt;
16
17 #[wasm_bindgen(constructor, js_class = WritableStream)]
18 pub(crate) fn new_with_into_underlying_sink(sink: IntoUnderlyingSink) -> WritableStreamExt;
19}