Skip to content

Commit 0c4e8dc

Browse files
committed
Take dictionaries into account that are only returned
1 parent 586982f commit 0c4e8dc

23 files changed

+182
-136
lines changed

crates/web-sys/src/features/gen_ComputedEffectTiming.rs

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ extern "C" {
1414
#[doc = ""]
1515
#[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
1616
#[wasm_bindgen(method, getter = "delay")]
17-
pub fn get_delay(this: &ComputedEffectTiming) -> Option<f64>;
17+
pub fn get_delay(this: &ComputedEffectTiming) -> f64;
1818
#[doc = "Change the `delay` field of this object."]
1919
#[doc = ""]
2020
#[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
@@ -25,7 +25,7 @@ extern "C" {
2525
#[doc = ""]
2626
#[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`, `PlaybackDirection`*"]
2727
#[wasm_bindgen(method, getter = "direction")]
28-
pub fn get_direction(this: &ComputedEffectTiming) -> Option<PlaybackDirection>;
28+
pub fn get_direction(this: &ComputedEffectTiming) -> PlaybackDirection;
2929
#[cfg(feature = "PlaybackDirection")]
3030
#[doc = "Change the `direction` field of this object."]
3131
#[doc = ""]
@@ -46,7 +46,7 @@ extern "C" {
4646
#[doc = ""]
4747
#[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
4848
#[wasm_bindgen(method, getter = "easing")]
49-
pub fn get_easing(this: &ComputedEffectTiming) -> Option<String>;
49+
pub fn get_easing(this: &ComputedEffectTiming) -> String;
5050
#[doc = "Change the `easing` field of this object."]
5151
#[doc = ""]
5252
#[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
@@ -56,7 +56,7 @@ extern "C" {
5656
#[doc = ""]
5757
#[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
5858
#[wasm_bindgen(method, getter = "endDelay")]
59-
pub fn get_end_delay(this: &ComputedEffectTiming) -> Option<f64>;
59+
pub fn get_end_delay(this: &ComputedEffectTiming) -> f64;
6060
#[doc = "Change the `endDelay` field of this object."]
6161
#[doc = ""]
6262
#[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
@@ -67,7 +67,7 @@ extern "C" {
6767
#[doc = ""]
6868
#[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`, `FillMode`*"]
6969
#[wasm_bindgen(method, getter = "fill")]
70-
pub fn get_fill(this: &ComputedEffectTiming) -> Option<FillMode>;
70+
pub fn get_fill(this: &ComputedEffectTiming) -> FillMode;
7171
#[cfg(feature = "FillMode")]
7272
#[doc = "Change the `fill` field of this object."]
7373
#[doc = ""]
@@ -78,7 +78,7 @@ extern "C" {
7878
#[doc = ""]
7979
#[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
8080
#[wasm_bindgen(method, getter = "iterationStart")]
81-
pub fn get_iteration_start(this: &ComputedEffectTiming) -> Option<f64>;
81+
pub fn get_iteration_start(this: &ComputedEffectTiming) -> f64;
8282
#[doc = "Change the `iterationStart` field of this object."]
8383
#[doc = ""]
8484
#[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
@@ -88,7 +88,7 @@ extern "C" {
8888
#[doc = ""]
8989
#[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
9090
#[wasm_bindgen(method, getter = "iterations")]
91-
pub fn get_iterations(this: &ComputedEffectTiming) -> Option<f64>;
91+
pub fn get_iterations(this: &ComputedEffectTiming) -> f64;
9292
#[doc = "Change the `iterations` field of this object."]
9393
#[doc = ""]
9494
#[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
@@ -98,7 +98,7 @@ extern "C" {
9898
#[doc = ""]
9999
#[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
100100
#[wasm_bindgen(method, getter = "activeDuration")]
101-
pub fn get_active_duration(this: &ComputedEffectTiming) -> Option<f64>;
101+
pub fn get_active_duration(this: &ComputedEffectTiming) -> f64;
102102
#[doc = "Change the `activeDuration` field of this object."]
103103
#[doc = ""]
104104
#[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
@@ -118,7 +118,7 @@ extern "C" {
118118
#[doc = ""]
119119
#[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
120120
#[wasm_bindgen(method, getter = "endTime")]
121-
pub fn get_end_time(this: &ComputedEffectTiming) -> Option<f64>;
121+
pub fn get_end_time(this: &ComputedEffectTiming) -> f64;
122122
#[doc = "Change the `endTime` field of this object."]
123123
#[doc = ""]
124124
#[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
@@ -149,6 +149,7 @@ impl ComputedEffectTiming {
149149
#[doc = "Construct a new `ComputedEffectTiming`."]
150150
#[doc = ""]
151151
#[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"]
152+
#[deprecated]
152153
pub fn new() -> Self {
153154
#[allow(unused_mut)]
154155
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());

crates/web-sys/src/features/gen_DomQuadJson.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ extern "C" {
1515
#[doc = ""]
1616
#[doc = "*This API requires the following crate features to be activated: `DomPoint`, `DomQuadJson`*"]
1717
#[wasm_bindgen(method, getter = "p1")]
18-
pub fn get_p1(this: &DomQuadJson) -> Option<DomPoint>;
18+
pub fn get_p1(this: &DomQuadJson) -> DomPoint;
1919
#[cfg(feature = "DomPoint")]
2020
#[doc = "Change the `p1` field of this object."]
2121
#[doc = ""]
@@ -27,7 +27,7 @@ extern "C" {
2727
#[doc = ""]
2828
#[doc = "*This API requires the following crate features to be activated: `DomPoint`, `DomQuadJson`*"]
2929
#[wasm_bindgen(method, getter = "p2")]
30-
pub fn get_p2(this: &DomQuadJson) -> Option<DomPoint>;
30+
pub fn get_p2(this: &DomQuadJson) -> DomPoint;
3131
#[cfg(feature = "DomPoint")]
3232
#[doc = "Change the `p2` field of this object."]
3333
#[doc = ""]
@@ -39,7 +39,7 @@ extern "C" {
3939
#[doc = ""]
4040
#[doc = "*This API requires the following crate features to be activated: `DomPoint`, `DomQuadJson`*"]
4141
#[wasm_bindgen(method, getter = "p3")]
42-
pub fn get_p3(this: &DomQuadJson) -> Option<DomPoint>;
42+
pub fn get_p3(this: &DomQuadJson) -> DomPoint;
4343
#[cfg(feature = "DomPoint")]
4444
#[doc = "Change the `p3` field of this object."]
4545
#[doc = ""]
@@ -51,7 +51,7 @@ extern "C" {
5151
#[doc = ""]
5252
#[doc = "*This API requires the following crate features to be activated: `DomPoint`, `DomQuadJson`*"]
5353
#[wasm_bindgen(method, getter = "p4")]
54-
pub fn get_p4(this: &DomQuadJson) -> Option<DomPoint>;
54+
pub fn get_p4(this: &DomQuadJson) -> DomPoint;
5555
#[cfg(feature = "DomPoint")]
5656
#[doc = "Change the `p4` field of this object."]
5757
#[doc = ""]
@@ -63,6 +63,7 @@ impl DomQuadJson {
6363
#[doc = "Construct a new `DomQuadJson`."]
6464
#[doc = ""]
6565
#[doc = "*This API requires the following crate features to be activated: `DomQuadJson`*"]
66+
#[deprecated]
6667
pub fn new() -> Self {
6768
#[allow(unused_mut)]
6869
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());

crates/web-sys/src/features/gen_EffectTiming.rs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ extern "C" {
1414
#[doc = ""]
1515
#[doc = "*This API requires the following crate features to be activated: `EffectTiming`*"]
1616
#[wasm_bindgen(method, getter = "delay")]
17-
pub fn get_delay(this: &EffectTiming) -> Option<f64>;
17+
pub fn get_delay(this: &EffectTiming) -> f64;
1818
#[doc = "Change the `delay` field of this object."]
1919
#[doc = ""]
2020
#[doc = "*This API requires the following crate features to be activated: `EffectTiming`*"]
@@ -25,7 +25,7 @@ extern "C" {
2525
#[doc = ""]
2626
#[doc = "*This API requires the following crate features to be activated: `EffectTiming`, `PlaybackDirection`*"]
2727
#[wasm_bindgen(method, getter = "direction")]
28-
pub fn get_direction(this: &EffectTiming) -> Option<PlaybackDirection>;
28+
pub fn get_direction(this: &EffectTiming) -> PlaybackDirection;
2929
#[cfg(feature = "PlaybackDirection")]
3030
#[doc = "Change the `direction` field of this object."]
3131
#[doc = ""]
@@ -46,7 +46,7 @@ extern "C" {
4646
#[doc = ""]
4747
#[doc = "*This API requires the following crate features to be activated: `EffectTiming`*"]
4848
#[wasm_bindgen(method, getter = "easing")]
49-
pub fn get_easing(this: &EffectTiming) -> Option<String>;
49+
pub fn get_easing(this: &EffectTiming) -> String;
5050
#[doc = "Change the `easing` field of this object."]
5151
#[doc = ""]
5252
#[doc = "*This API requires the following crate features to be activated: `EffectTiming`*"]
@@ -56,7 +56,7 @@ extern "C" {
5656
#[doc = ""]
5757
#[doc = "*This API requires the following crate features to be activated: `EffectTiming`*"]
5858
#[wasm_bindgen(method, getter = "endDelay")]
59-
pub fn get_end_delay(this: &EffectTiming) -> Option<f64>;
59+
pub fn get_end_delay(this: &EffectTiming) -> f64;
6060
#[doc = "Change the `endDelay` field of this object."]
6161
#[doc = ""]
6262
#[doc = "*This API requires the following crate features to be activated: `EffectTiming`*"]
@@ -67,7 +67,7 @@ extern "C" {
6767
#[doc = ""]
6868
#[doc = "*This API requires the following crate features to be activated: `EffectTiming`, `FillMode`*"]
6969
#[wasm_bindgen(method, getter = "fill")]
70-
pub fn get_fill(this: &EffectTiming) -> Option<FillMode>;
70+
pub fn get_fill(this: &EffectTiming) -> FillMode;
7171
#[cfg(feature = "FillMode")]
7272
#[doc = "Change the `fill` field of this object."]
7373
#[doc = ""]
@@ -78,7 +78,7 @@ extern "C" {
7878
#[doc = ""]
7979
#[doc = "*This API requires the following crate features to be activated: `EffectTiming`*"]
8080
#[wasm_bindgen(method, getter = "iterationStart")]
81-
pub fn get_iteration_start(this: &EffectTiming) -> Option<f64>;
81+
pub fn get_iteration_start(this: &EffectTiming) -> f64;
8282
#[doc = "Change the `iterationStart` field of this object."]
8383
#[doc = ""]
8484
#[doc = "*This API requires the following crate features to be activated: `EffectTiming`*"]
@@ -88,7 +88,7 @@ extern "C" {
8888
#[doc = ""]
8989
#[doc = "*This API requires the following crate features to be activated: `EffectTiming`*"]
9090
#[wasm_bindgen(method, getter = "iterations")]
91-
pub fn get_iterations(this: &EffectTiming) -> Option<f64>;
91+
pub fn get_iterations(this: &EffectTiming) -> f64;
9292
#[doc = "Change the `iterations` field of this object."]
9393
#[doc = ""]
9494
#[doc = "*This API requires the following crate features to be activated: `EffectTiming`*"]
@@ -99,6 +99,7 @@ impl EffectTiming {
9999
#[doc = "Construct a new `EffectTiming`."]
100100
#[doc = ""]
101101
#[doc = "*This API requires the following crate features to be activated: `EffectTiming`*"]
102+
#[deprecated]
102103
pub fn new() -> Self {
103104
#[allow(unused_mut)]
104105
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());

crates/web-sys/src/features/gen_FontFaceSetIteratorResult.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ impl FontFaceSetIteratorResult {
3535
#[doc = "Construct a new `FontFaceSetIteratorResult`."]
3636
#[doc = ""]
3737
#[doc = "*This API requires the following crate features to be activated: `FontFaceSetIteratorResult`*"]
38+
#[deprecated]
3839
pub fn new(done: bool, value: &::wasm_bindgen::JsValue) -> Self {
3940
#[allow(unused_mut)]
4041
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());

crates/web-sys/src/features/gen_MediaKeySystemConfiguration.rs

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ extern "C" {
1414
#[doc = ""]
1515
#[doc = "*This API requires the following crate features to be activated: `MediaKeySystemConfiguration`*"]
1616
#[wasm_bindgen(method, getter = "audioCapabilities")]
17-
pub fn get_audio_capabilities(this: &MediaKeySystemConfiguration) -> Option<::js_sys::Array>;
17+
pub fn get_audio_capabilities(this: &MediaKeySystemConfiguration) -> ::js_sys::Array;
1818
#[doc = "Change the `audioCapabilities` field of this object."]
1919
#[doc = ""]
2020
#[doc = "*This API requires the following crate features to be activated: `MediaKeySystemConfiguration`*"]
@@ -28,9 +28,7 @@ extern "C" {
2828
#[doc = ""]
2929
#[doc = "*This API requires the following crate features to be activated: `MediaKeySystemConfiguration`, `MediaKeysRequirement`*"]
3030
#[wasm_bindgen(method, getter = "distinctiveIdentifier")]
31-
pub fn get_distinctive_identifier(
32-
this: &MediaKeySystemConfiguration,
33-
) -> Option<MediaKeysRequirement>;
31+
pub fn get_distinctive_identifier(this: &MediaKeySystemConfiguration) -> MediaKeysRequirement;
3432
#[cfg(feature = "MediaKeysRequirement")]
3533
#[doc = "Change the `distinctiveIdentifier` field of this object."]
3634
#[doc = ""]
@@ -44,7 +42,7 @@ extern "C" {
4442
#[doc = ""]
4543
#[doc = "*This API requires the following crate features to be activated: `MediaKeySystemConfiguration`*"]
4644
#[wasm_bindgen(method, getter = "initDataTypes")]
47-
pub fn get_init_data_types(this: &MediaKeySystemConfiguration) -> Option<::js_sys::Array>;
45+
pub fn get_init_data_types(this: &MediaKeySystemConfiguration) -> ::js_sys::Array;
4846
#[doc = "Change the `initDataTypes` field of this object."]
4947
#[doc = ""]
5048
#[doc = "*This API requires the following crate features to be activated: `MediaKeySystemConfiguration`*"]
@@ -54,7 +52,7 @@ extern "C" {
5452
#[doc = ""]
5553
#[doc = "*This API requires the following crate features to be activated: `MediaKeySystemConfiguration`*"]
5654
#[wasm_bindgen(method, getter = "label")]
57-
pub fn get_label(this: &MediaKeySystemConfiguration) -> Option<String>;
55+
pub fn get_label(this: &MediaKeySystemConfiguration) -> String;
5856
#[doc = "Change the `label` field of this object."]
5957
#[doc = ""]
6058
#[doc = "*This API requires the following crate features to be activated: `MediaKeySystemConfiguration`*"]
@@ -65,8 +63,7 @@ extern "C" {
6563
#[doc = ""]
6664
#[doc = "*This API requires the following crate features to be activated: `MediaKeySystemConfiguration`, `MediaKeysRequirement`*"]
6765
#[wasm_bindgen(method, getter = "persistentState")]
68-
pub fn get_persistent_state(this: &MediaKeySystemConfiguration)
69-
-> Option<MediaKeysRequirement>;
66+
pub fn get_persistent_state(this: &MediaKeySystemConfiguration) -> MediaKeysRequirement;
7067
#[cfg(feature = "MediaKeysRequirement")]
7168
#[doc = "Change the `persistentState` field of this object."]
7269
#[doc = ""]
@@ -77,7 +74,7 @@ extern "C" {
7774
#[doc = ""]
7875
#[doc = "*This API requires the following crate features to be activated: `MediaKeySystemConfiguration`*"]
7976
#[wasm_bindgen(method, getter = "sessionTypes")]
80-
pub fn get_session_types(this: &MediaKeySystemConfiguration) -> Option<::js_sys::Array>;
77+
pub fn get_session_types(this: &MediaKeySystemConfiguration) -> ::js_sys::Array;
8178
#[doc = "Change the `sessionTypes` field of this object."]
8279
#[doc = ""]
8380
#[doc = "*This API requires the following crate features to be activated: `MediaKeySystemConfiguration`*"]
@@ -87,7 +84,7 @@ extern "C" {
8784
#[doc = ""]
8885
#[doc = "*This API requires the following crate features to be activated: `MediaKeySystemConfiguration`*"]
8986
#[wasm_bindgen(method, getter = "videoCapabilities")]
90-
pub fn get_video_capabilities(this: &MediaKeySystemConfiguration) -> Option<::js_sys::Array>;
87+
pub fn get_video_capabilities(this: &MediaKeySystemConfiguration) -> ::js_sys::Array;
9188
#[doc = "Change the `videoCapabilities` field of this object."]
9289
#[doc = ""]
9390
#[doc = "*This API requires the following crate features to be activated: `MediaKeySystemConfiguration`*"]
@@ -101,6 +98,7 @@ impl MediaKeySystemConfiguration {
10198
#[doc = "Construct a new `MediaKeySystemConfiguration`."]
10299
#[doc = ""]
103100
#[doc = "*This API requires the following crate features to be activated: `MediaKeySystemConfiguration`*"]
101+
#[deprecated]
104102
pub fn new() -> Self {
105103
#[allow(unused_mut)]
106104
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());

0 commit comments

Comments
 (0)