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