@@ -5,7 +5,7 @@ Index: dom.generated.d.ts
55===================================================================
66--- dom.generated.d.ts
77+++ dom.generated.d.ts
8- @@ -2943 ,11 +2943 ,16 @@
8+ @@ -2944 ,11 +2944 ,16 @@
99 };
1010
1111 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParamMap) */
@@ -25,7 +25,7 @@ Index: dom.generated.d.ts
2525 }
2626
2727 declare var AudioParamMap: {
28- @@ -3364 ,9 +3369 ,9 @@
28+ @@ -3369 ,9 +3374 ,9 @@
2929 blob(): Promise<Blob>;
3030 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/formData) */
3131 formData(): Promise<FormData>;
@@ -36,7 +36,7 @@ Index: dom.generated.d.ts
3636 text(): Promise<string>;
3737 }
3838
39- @@ -8828 ,11 +8833 ,11 @@
39+ @@ -8872 ,11 +8877 ,11 @@
4040 };
4141
4242 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventCounts) */
@@ -51,7 +51,7 @@ Index: dom.generated.d.ts
5151 }
5252
5353 declare var EventCounts: {
54- @@ -9374 ,11 +9379 ,16 @@
54+ @@ -9420 ,11 +9425 ,16 @@
5555 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/check) */
5656 check(font: string, text?: string): boolean;
5757 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/load) */
@@ -71,7 +71,7 @@ Index: dom.generated.d.ts
7171 addEventListener<K extends keyof FontFaceSetEventMap>(
7272 type: K,
7373 listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any,
74- @@ -17020 ,11 +17030 ,16 @@
74+ @@ -17139 ,11 +17149 ,16 @@
7575 *
7676 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIInputMap)
7777 */
@@ -91,7 +91,7 @@ Index: dom.generated.d.ts
9191 }
9292
9393 declare var MIDIInputMap: {
94- @@ -17087 ,11 +17102 ,16 @@
94+ @@ -17206 ,11 +17221 ,16 @@
9595 *
9696 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIOutputMap)
9797 */
@@ -111,7 +111,7 @@ Index: dom.generated.d.ts
111111 }
112112
113113 declare var MIDIOutputMap: {
114- @@ -21372 ,11 +21392 ,11 @@
114+ @@ -21527 ,11 +21547 ,11 @@
115115 };
116116
117117 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCStatsReport) */
@@ -126,7 +126,7 @@ Index: dom.generated.d.ts
126126 }
127127
128128 declare var RTCStatsReport: {
129- @@ -34051 ,13 +34071,20 @@
129+ @@ -34291 ,13 +34311,16 @@
130130 handler: TimerHandler,
131131 timeout?: number,
132132 ...arguments: any[]
@@ -135,11 +135,7 @@ Index: dom.generated.d.ts
135135 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/structuredClone) */
136136- declare function structuredClone<T = any>(
137137+ 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>,
143139+ >(
144140 value: T,
145141 options?: StructuredSerializeOptions,
@@ -149,7 +145,7 @@ Index: dom.generated.d.ts
149145 declare var sessionStorage: Storage;
150146 declare function addEventListener<K extends keyof WindowEventMap>(
151147 type: K,
152- @@ -34712 ,4 +34739,119 @@
148+ @@ -34956 ,4 +34979,125 @@
153149 | "blob"
154150 | "document"
155151 | "json"
@@ -265,8 +261,14 @@ Index: dom.generated.d.ts
265261+
266262+ type AvoidCyclicConstraint<T> = [T] extends [infer R] ? R : never;
267263+
268- + // 上限が不正にきつくなっているのを無視する
269264+ 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+ + >;
270272+ }
271273+ }
272274
0 commit comments