Skip to content
3 changes: 3 additions & 0 deletions inputfiles/patches/intersection-observer.kdl
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
removals {
interface IntersectionObserverEntry {
constructor signatureIndex=0 // WebKit-only as of 2025-12
}
dictionary IntersectionObserverInit {
member delay // Blink only as of 2025-12
member trackVisibility // Blink only as of 2025-12
Expand Down
3 changes: 0 additions & 3 deletions inputfiles/removedTypes.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@
}
}
},
"IntersectionObserverEntry": {
"constructor": null // WebKit-only as of 2024-07
},
"OffscreenCanvasRenderingContext2D": {
"implements": ["CanvasSettings"] // Blink only as of 2025-01
},
Expand Down
6 changes: 3 additions & 3 deletions src/build/patches.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,8 @@ function handleMixinAndInterfaces(
return {
name,
...optionalNestedMember("events", event, { event }),
properties: { property },
methods: { method },
...optionalNestedMember("properties", property, { property }),
...optionalNestedMember("methods", method, { method }),
...optionalMember("extends", "string", node.properties?.extends),
...optionalMember("overrideThis", "string", node.properties?.overrideThis),
...optionalMember("forward", "string", node.properties?.forward),
Expand Down Expand Up @@ -357,7 +357,7 @@ function handleMethodAndConstructor(
const signatureIndex = child.properties?.signatureIndex;
const type = handleTyped(typeNodes, child.properties?.returns);

let signature: OverridableMethod["signature"] = [];
let signature: OverridableMethod["signature"] | undefined = undefined;
if (type || params.length > 0) {
// Determine the actual signature object
const signatureObj: DeepPartial<Signature> = {
Expand Down