Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions baselines/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ interface IDBObjectStoreParameters {
}

interface IntersectionObserverEntryInit {
isIntersecting: boolean;
boundingClientRect?: DOMRectInit;

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These keys are incorrectly marked as optional; they're required in the spec.

It turns out that the generator script doesn't support required so I fixed this in #271

intersectionRect?: DOMRectInit;
rootBounds?: DOMRectInit;
Expand Down Expand Up @@ -7211,6 +7212,7 @@ interface IntersectionObserverEntry {
readonly rootBounds: ClientRect;
readonly target: Element;
readonly time: number;
readonly isIntersecting: boolean;
}

declare var IntersectionObserverEntry: {
Expand Down
13 changes: 13 additions & 0 deletions inputfiles/addedTypes.json
Original file line number Diff line number Diff line change
Expand Up @@ -1630,6 +1630,19 @@
"flavor": "Web",
"type": "\"beforebegin\" | \"afterbegin\" | \"beforeend\" | \"afterend\""
},
{
"kind": "property",
"interface": "IntersectionObserverEntryInit",
"name": "isIntersecting",
"type": "boolean"
},
{
"kind": "property",
"interface": "IntersectionObserverEntry",
"name": "isIntersecting",
"type": "boolean",
"readonly": true
},
{
"kind": "property",
"interface": "ValidityState",
Expand Down