Skip to content

Missing Navigator.clipboard (clipboard asynchronous API) #26728

Closed
@modrzew

Description

@modrzew

TypeScript Version: 3.0.0-dev.20180711

Search Terms: navigator, clipboard

Code

console.log(window.navigator.clipboard)

Expected behavior: No error.

Actual behavior:

error TS2339: Property 'clipboard' does not exist on type 'Navigator'

Playground Link: http://www.typescriptlang.org/play/#src=window.navigator.clipboard%3B

Related Issues: none found

W3C: https://www.w3.org/TR/clipboard-apis/#async-clipboard-api
MDN: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard

Metadata

Metadata

Assignees

No one assigned

    Labels

    Working as IntendedThe behavior described is the intended behavior; this is not a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions