@@ -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,7 @@ 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
+ @@ -17139 ,11 +17149 ,16 @@
75
75
*
76
76
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIInputMap)
77
77
*/
@@ -91,7 +91,7 @@ Index: dom.generated.d.ts
91
91
}
92
92
93
93
declare var MIDIInputMap: {
94
- @@ -17087 ,11 +17102 ,16 @@
94
+ @@ -17206 ,11 +17221 ,16 @@
95
95
*
96
96
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIOutputMap)
97
97
*/
@@ -111,7 +111,7 @@ Index: dom.generated.d.ts
111
111
}
112
112
113
113
declare var MIDIOutputMap: {
114
- @@ -21372 ,11 +21392 ,11 @@
114
+ @@ -21527 ,11 +21547 ,11 @@
115
115
};
116
116
117
117
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCStatsReport) */
@@ -126,7 +126,7 @@ Index: dom.generated.d.ts
126
126
}
127
127
128
128
declare var RTCStatsReport: {
129
- @@ -34051 ,13 +34071,20 @@
129
+ @@ -34291 ,13 +34311,16 @@
130
130
handler: TimerHandler,
131
131
timeout?: number,
132
132
...arguments: any[]
@@ -135,11 +135,7 @@ Index: dom.generated.d.ts
135
135
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/structuredClone) */
136
136
- declare function structuredClone<T = any>(
137
137
+ declare function structuredClone<
138
- + const T extends BetterTypeScriptLibInternals.StructuredClone.NeverOrUnknown<
139
- + BetterTypeScriptLibInternals.StructuredClone.StructuredCloneOutput<
140
- + BetterTypeScriptLibInternals.StructuredClone.AvoidCyclicConstraint<T>
141
- + >
142
- + >,
138
+ + const T extends BetterTypeScriptLibInternals.StructuredClone.Constraint<T>,
143
139
+ >(
144
140
value: T,
145
141
options?: StructuredSerializeOptions,
@@ -149,7 +145,7 @@ Index: dom.generated.d.ts
149
145
declare var sessionStorage: Storage;
150
146
declare function addEventListener<K extends keyof WindowEventMap>(
151
147
type: K,
152
- @@ -34712 ,4 +34739,119 @@
148
+ @@ -34956 ,4 +34979,125 @@
153
149
| "blob"
154
150
| "document"
155
151
| "json"
@@ -265,8 +261,14 @@ Index: dom.generated.d.ts
265
261
+
266
262
+ type AvoidCyclicConstraint<T> = [T] extends [infer R] ? R : never;
267
263
+
268
- + // 上限が不正にきつくなっているのを無視する
269
264
+ type NeverOrUnknown<T> = [T] extends [never] ? never : unknown;
265
+ +
266
+ + export type Constraint<T> =
267
+ + BetterTypeScriptLibInternals.StructuredClone.NeverOrUnknown<
268
+ + BetterTypeScriptLibInternals.StructuredClone.StructuredCloneOutput<
269
+ + BetterTypeScriptLibInternals.StructuredClone.AvoidCyclicConstraint<T>
270
+ + >
271
+ + >;
270
272
+ }
271
273
+ }
272
274
0 commit comments