Skip to content

Commit 9a179b6

Browse files
committed
Migrate IntersectionObserverEntry
1 parent 5b0ab48 commit 9a179b6

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
removals {
2+
interface IntersectionObserverEntry {
3+
constructor // WebKit-only as of 2025-12
4+
}
5+
}

inputfiles/removedTypes.jsonc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@
3636
}
3737
}
3838
},
39-
"IntersectionObserverEntry": {
40-
"constructor": null // WebKit-only as of 2024-07
41-
},
4239
"OffscreenCanvasRenderingContext2D": {
4340
"implements": ["CanvasSettings"] // Blink only as of 2025-01
4441
},

src/build/patches.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,8 @@ function handleMixinAndInterfaces(
217217
return {
218218
name,
219219
...optionalNestedMember("events", event, { event }),
220-
properties: { property },
221-
methods: { method },
220+
...optionalNestedMember("properties", property, { property }),
221+
...optionalNestedMember("methods", method, { method }),
222222
...optionalMember("extends", "string", node.properties?.extends),
223223
...optionalMember("overrideThis", "string", node.properties?.overrideThis),
224224
...optionalMember("forward", "string", node.properties?.forward),
@@ -449,7 +449,7 @@ function convertForRemovals(obj: unknown): unknown {
449449
if (obj && typeof obj === "object") {
450450
const newObj: Record<string, unknown> = {};
451451
for (const [key, value] of Object.entries(obj)) {
452-
if (key !== "name") {
452+
if (!["name", "signature"].includes(key)) {
453453
const cleaned = convertForRemovals(value);
454454
// (intentionally covers null too)
455455
if (typeof cleaned === "object") {

0 commit comments

Comments
 (0)