Skip to content

ClipboardItemData type only includes values inside a promise #46549

@cameron-martin

Description

@cameron-martin

lib Update Request

According to MDN, the argument to ClipboardItem, ClipboardItemData, can be either Blob, string, Promise<Blob> orPromise<string>, but the library types only include the last two.

Configuration Check

My compilation target is ES2018 and my lib is ["esnext", "dom"].

Missing / Incorrect Definition

ClipboardItemData

Sample Code

let objects: Record<string, Blob> = {};
new ClipboardItem(objects)

Documentation Link

https://developer.mozilla.org/en-US/docs/Web/API/ClipboardItem/ClipboardItem

Metadata

Metadata

Assignees

No one assigned

    Labels

    DuplicateAn existing issue was already created

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions