@@ -5,7 +5,7 @@ Index: dom.generated.d.ts
5
5
===================================================================
6
6
--- dom.generated.d.ts
7
7
+++ dom.generated.d.ts
8
- @@ -2943 ,11 +2943 ,16 @@
8
+ @@ -2944 ,11 +2944 ,16 @@
9
9
};
10
10
11
11
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParamMap) */
@@ -25,7 +25,7 @@ Index: dom.generated.d.ts
25
25
}
26
26
27
27
declare var AudioParamMap: {
28
- @@ -3364 ,9 +3369 ,9 @@
28
+ @@ -3369 ,9 +3374 ,9 @@
29
29
blob(): Promise<Blob>;
30
30
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/formData) */
31
31
formData(): Promise<FormData>;
@@ -36,7 +36,7 @@ Index: dom.generated.d.ts
36
36
text(): Promise<string>;
37
37
}
38
38
39
- @@ -8828 ,11 +8833 ,11 @@
39
+ @@ -8872 ,11 +8877 ,11 @@
40
40
};
41
41
42
42
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventCounts) */
@@ -51,7 +51,7 @@ Index: dom.generated.d.ts
51
51
}
52
52
53
53
declare var EventCounts: {
54
- @@ -9374 ,11 +9379 ,16 @@
54
+ @@ -9420 ,11 +9425 ,16 @@
55
55
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/check) */
56
56
check(font: string, text?: string): boolean;
57
57
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/load) */
@@ -71,7 +71,47 @@ Index: dom.generated.d.ts
71
71
addEventListener<K extends keyof FontFaceSetEventMap>(
72
72
type: K,
73
73
listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any,
74
- @@ -17020,11 +17030,16 @@
74
+ @@ -15711,15 +15721,16 @@
75
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Highlight/priority) */
76
+ priority: number;
77
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Highlight/type) */
78
+ type: HighlightType;
79
+ - forEach(
80
+ + forEach<This = undefined>(
81
+ callbackfn: (
82
+ + this: This,
83
+ value: AbstractRange,
84
+ key: AbstractRange,
85
+ - parent: Highlight,
86
+ + parent: this,
87
+ ) => void,
88
+ - thisArg?: any,
89
+ + thisArg?: This,
90
+ ): void;
91
+ }
92
+
93
+ declare var Highlight: {
94
+ @@ -15728,15 +15739,16 @@
95
+ };
96
+
97
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HighlightRegistry) */
98
+ interface HighlightRegistry {
99
+ - forEach(
100
+ + forEach<This = undefined>(
101
+ callbackfn: (
102
+ + this: This,
103
+ value: Highlight,
104
+ key: string,
105
+ - parent: HighlightRegistry,
106
+ + parent: this,
107
+ ) => void,
108
+ - thisArg?: any,
109
+ + thisArg?: This,
110
+ ): void;
111
+ }
112
+
113
+ declare var HighlightRegistry: {
114
+ @@ -17139,11 +17151,16 @@
75
115
*
76
116
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIInputMap)
77
117
*/
@@ -91,7 +131,7 @@ Index: dom.generated.d.ts
91
131
}
92
132
93
133
declare var MIDIInputMap: {
94
- @@ -17087 ,11 +17102 ,16 @@
134
+ @@ -17206 ,11 +17223 ,16 @@
95
135
*
96
136
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIOutputMap)
97
137
*/
@@ -111,7 +151,7 @@ Index: dom.generated.d.ts
111
151
}
112
152
113
153
declare var MIDIOutputMap: {
114
- @@ -21372 ,11 +21392 ,11 @@
154
+ @@ -21527 ,11 +21549 ,11 @@
115
155
};
116
156
117
157
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCStatsReport) */
@@ -126,7 +166,7 @@ Index: dom.generated.d.ts
126
166
}
127
167
128
168
declare var RTCStatsReport: {
129
- @@ -34051 ,13 +34071,20 @@
169
+ @@ -34291 ,13 +34313,16 @@
130
170
handler: TimerHandler,
131
171
timeout?: number,
132
172
...arguments: any[]
@@ -135,11 +175,7 @@ Index: dom.generated.d.ts
135
175
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/structuredClone) */
136
176
- declare function structuredClone<T = any>(
137
177
+ declare function structuredClone<
138
- + const T extends BetterTypeScriptLibInternals.StructuredClone.NeverOrUnknown<
139
- + BetterTypeScriptLibInternals.StructuredClone.StructuredCloneOutput<
140
- + BetterTypeScriptLibInternals.StructuredClone.AvoidCyclicConstraint<T>
141
- + >
142
- + >,
178
+ + const T extends BetterTypeScriptLibInternals.StructuredClone.Constraint<T>,
143
179
+ >(
144
180
value: T,
145
181
options?: StructuredSerializeOptions,
@@ -149,7 +185,7 @@ Index: dom.generated.d.ts
149
185
declare var sessionStorage: Storage;
150
186
declare function addEventListener<K extends keyof WindowEventMap>(
151
187
type: K,
152
- @@ -34712 ,4 +34739,119 @@
188
+ @@ -34956 ,4 +34981,125 @@
153
189
| "blob"
154
190
| "document"
155
191
| "json"
@@ -265,8 +301,14 @@ Index: dom.generated.d.ts
265
301
+
266
302
+ type AvoidCyclicConstraint<T> = [T] extends [infer R] ? R : never;
267
303
+
268
- + // 上限が不正にきつくなっているのを無視する
269
304
+ type NeverOrUnknown<T> = [T] extends [never] ? never : unknown;
305
+ +
306
+ + export type Constraint<T> =
307
+ + BetterTypeScriptLibInternals.StructuredClone.NeverOrUnknown<
308
+ + BetterTypeScriptLibInternals.StructuredClone.StructuredCloneOutput<
309
+ + BetterTypeScriptLibInternals.StructuredClone.AvoidCyclicConstraint<T>
310
+ + >
311
+ + >;
270
312
+ }
271
313
+ }
272
314
0 commit comments