Skip to content

Add UserActivation interface to Navigator interface in lib.dom.d.ts #1417

@morganney

Description

@morganney

I'm using tsc 4.8.4 and there is no support for navigator.userActivation. This is now part of the HTML Living Standard and implemented by Chrome, Edge, and Opera browsers.

Spec: https://html.spec.whatwg.org/multipage/interaction.html#the-useractivation-interface
MDN: https://developer.mozilla.org/en-US/docs/Web/API/UserActivation

This is useful when writing JavaScript that interacts with Web API's that are gated behind user interaction, such as the Web Speech API.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions