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-05-08 20:12:16 +00:00
Code Issues Projects Releases Wiki Activity
wasm-bindgen/crates/webidl-tests/callbacks.webidl

15 lines
251 B
Plaintext
Raw Normal View History

Implement WebIDL callback interfaces This commit implements callback interfaces for WebIDL, the final WebIDL construct that we were unconditionally ignoring! Callback interfaces are implemented as dictionaries of callbacks. Single-operation callback interfaces are also expanded when flattening to accept a `Function` as well, in accordance with the WebIDL spec. New features have been added to `web-sys` for all the new callback interface types. Additionally the `EventTarget.webidl` was tweaked to not have `EventListener?` as this is required for all functional usage and there's no need to keep that sort of web browser compat here. Closes #258
2018-09-10 11:16:55 -07:00
callback interface CallbackInterface1 {
void foo();
};
callback interface CallbackInterface2 {
void foo();
void bar();
};
[Constructor()]
interface TakeCallbackInterface {
void a(CallbackInterface1 arg);
void b(CallbackInterface2 arg);
};
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.7 Page: 175ms Template: 4ms
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