web_sys/features/
gen_DocumentTimeline.rs

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