Logo
Explore Help
Sign In
fluencelabs/wasm-bindgen
1
0
Fork 0
You've already forked wasm-bindgen
mirror of https://github.com/fluencelabs/wasm-bindgen synced 2025-06-11 12:01:21 +00:00
Code Issues Projects Releases Wiki Activity
Files
15cc4fbb0b3d5a8c8c64b3dc9f7bc851f5e2949f
wasm-bindgen/crates/webidl-tests/no_interface.webidl

10 lines
174 B
Plaintext
Raw Normal View History

Support [NoInterfaceObject] in `web-sys` This commit enables `[NoInterfaceObject]` annotated interfaces in `web-sys`. The `NoInterfaceObject` attribute means that there's not actually a JS class for the object, but all of its properties and such can still be accessed structually and invoked. This should help provide more bindings for some more common types on the web! Note that this builds on recent features to ensure that `dyn_into` and friends always fail for `NoInterfaceObject` objects because they don't actually have a class. Closes #893 Closes #1257 Closes #1315
2019-04-12 11:08:05 -07:00
[NoInterfaceObject]
interface NoInterfaceObject {
readonly attribute double number;
void foo();
};
interface GetNoInterfaceObject {
static NoInterfaceObject get();
};
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.0 Page: 345ms Template: 11ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API