1 | #![allow (unused_imports)] |
2 | #![allow (clippy::all)] |
3 | use super::*; |
4 | use wasm_bindgen::prelude::*; |
5 | #[wasm_bindgen ] |
6 | unsafeextern "C" { |
7 | # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Permissions , typescript_type = "Permissions" )] |
8 | #[derive (Debug, Clone, PartialEq, Eq)] |
9 | #[doc = "The `Permissions` class." ] |
10 | #[doc = "" ] |
11 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Permissions)" ] |
12 | #[doc = "" ] |
13 | #[doc = "*This API requires the following crate features to be activated: `Permissions`*" ] |
14 | pub type Permissions; |
15 | # [wasm_bindgen (catch , method , structural , js_class = "Permissions" , js_name = query)] |
16 | #[doc = "The `query()` method." ] |
17 | #[doc = "" ] |
18 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Permissions/query)" ] |
19 | #[doc = "" ] |
20 | #[doc = "*This API requires the following crate features to be activated: `Permissions`*" ] |
21 | pub unsafefn query( |
22 | this: &Permissions, |
23 | permission: &::js_sys::Object, |
24 | ) -> Result<::js_sys::Promise, JsValue>; |
25 | # [wasm_bindgen (catch , method , structural , js_class = "Permissions" , js_name = revoke)] |
26 | #[doc = "The `revoke()` method." ] |
27 | #[doc = "" ] |
28 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Permissions/revoke)" ] |
29 | #[doc = "" ] |
30 | #[doc = "*This API requires the following crate features to be activated: `Permissions`*" ] |
31 | pub unsafefn revoke( |
32 | this: &Permissions, |
33 | permission: &::js_sys::Object, |
34 | ) -> Result<::js_sys::Promise, JsValue>; |
35 | } |
36 | |