Skip to content

DOM lib is missing Intersection Observer API on window global #16255

@OliverJAsh

Description

@OliverJAsh

TypeScript Version: 2.3.4

Code

The browser Intersection Observer API defines these on the window:

window.IntersectionObserver
window.IntersectionObserverEntry

Expected behavior:
These should be defined in the DOM lib typings.

Actual behavior:
They are not defined, so I get type errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptHelp WantedYou can do this

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions