summaryrefslogtreecommitdiffstats
path: root/vendor/web-sys/src/features/gen_Worklet.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/web-sys/src/features/gen_Worklet.rs')
-rw-r--r--vendor/web-sys/src/features/gen_Worklet.rs33
1 files changed, 33 insertions, 0 deletions
diff --git a/vendor/web-sys/src/features/gen_Worklet.rs b/vendor/web-sys/src/features/gen_Worklet.rs
new file mode 100644
index 000000000..fec6b6dcc
--- /dev/null
+++ b/vendor/web-sys/src/features/gen_Worklet.rs
@@ -0,0 +1,33 @@
+#![allow(unused_imports)]
+use super::*;
+use wasm_bindgen::prelude::*;
+#[wasm_bindgen]
+extern "C" {
+ # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Worklet , typescript_type = "Worklet")]
+ #[derive(Debug, Clone, PartialEq, Eq)]
+ #[doc = "The `Worklet` class."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Worklet)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Worklet`*"]
+ pub type Worklet;
+ # [wasm_bindgen (catch , method , structural , js_class = "Worklet" , js_name = addModule)]
+ #[doc = "The `addModule()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Worklet/addModule)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Worklet`*"]
+ pub fn add_module(this: &Worklet, module_url: &str) -> Result<::js_sys::Promise, JsValue>;
+ #[cfg(feature = "WorkletOptions")]
+ # [wasm_bindgen (catch , method , structural , js_class = "Worklet" , js_name = addModule)]
+ #[doc = "The `addModule()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Worklet/addModule)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Worklet`, `WorkletOptions`*"]
+ pub fn add_module_with_options(
+ this: &Worklet,
+ module_url: &str,
+ options: &WorkletOptions,
+ ) -> Result<::js_sys::Promise, JsValue>;
+}