mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-16 18:20:51 +00:00
Add manual docs for single manual function.
This commit is contained in:
parent
c85f1b74e8
commit
4fa9865cc9
@ -20,6 +20,13 @@ extern crate wasm_bindgen;
|
||||
#[allow(unused_imports)]
|
||||
use js_sys::Object;
|
||||
|
||||
/// Getter for the `Window` object
|
||||
///
|
||||
/// [MDN Documentation]
|
||||
///
|
||||
/// *This API requires the following crate features to be activated: `Window`*
|
||||
///
|
||||
/// [MDN Documentation]: https://developer.mozilla.org/en-US/docs/Web/API/Window
|
||||
#[cfg(feature = "Window")]
|
||||
pub fn window() -> Option<Window> {
|
||||
use wasm_bindgen::JsCast;
|
||||
|
Loading…
x
Reference in New Issue
Block a user