1 #![allow(unused_imports)] 2 use super::*; 3 use wasm_bindgen::prelude::*; 4 #[wasm_bindgen] 5 extern "C" { 6 # [wasm_bindgen (extends = AnimationTimeline , extends = :: js_sys :: Object , js_name = DocumentTimeline , typescript_type = "DocumentTimeline")] 7 #[derive(Debug, Clone, PartialEq, Eq)] 8 #[doc = "The `DocumentTimeline` class."] 9 #[doc = ""] 10 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentTimeline)"] 11 #[doc = ""] 12 #[doc = "*This API requires the following crate features to be activated: `DocumentTimeline`*"] 13 pub type DocumentTimeline; 14 #[wasm_bindgen(catch, constructor, js_class = "DocumentTimeline")] 15 #[doc = "The `new DocumentTimeline(..)` constructor, creating a new instance of `DocumentTimeline`."] 16 #[doc = ""] 17 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentTimeline/DocumentTimeline)"] 18 #[doc = ""] 19 #[doc = "*This API requires the following crate features to be activated: `DocumentTimeline`*"] new() -> Result<DocumentTimeline, JsValue>20 pub fn new() -> Result<DocumentTimeline, JsValue>; 21 #[cfg(feature = "DocumentTimelineOptions")] 22 #[wasm_bindgen(catch, constructor, js_class = "DocumentTimeline")] 23 #[doc = "The `new DocumentTimeline(..)` constructor, creating a new instance of `DocumentTimeline`."] 24 #[doc = ""] 25 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentTimeline/DocumentTimeline)"] 26 #[doc = ""] 27 #[doc = "*This API requires the following crate features to be activated: `DocumentTimeline`, `DocumentTimelineOptions`*"] new_with_options(options: &DocumentTimelineOptions) -> Result<DocumentTimeline, JsValue>28 pub fn new_with_options(options: &DocumentTimelineOptions) 29 -> Result<DocumentTimeline, JsValue>; 30 } 31