mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-11-28 05:52:21 +03:00
f5ab32a8bc
This does involve us losing the type argument present in the WebIDL, but for now that should be fine as we're exposing low-level bindings and it's not otherwise clear whether having a typed wrapper is a great option. Usage of `JsCast` can convert the incoming value to a different object fairly easily. The purpose of the `web-sys` crate is to expose functionality of the web, not necessarily take an opinionated stance on how it should be exposed. In that sense it should be able to work with the `Promise` as you would a typed promise in terms of no functionality is left out. That being said we'll likely want to be sure to reconsider this before 1.0-stabilizing the `web-sys` crate! |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |