Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ClipboardItemData type only includes values inside a promise #46549

Closed
cameron-martin opened this issue Oct 27, 2021 · 4 comments
Closed

ClipboardItemData type only includes values inside a promise #46549

cameron-martin opened this issue Oct 27, 2021 · 4 comments
Labels
Duplicate An existing issue was already created

Comments

@cameron-martin
Copy link

cameron-martin commented Oct 27, 2021

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

@cameron-martin cameron-martin changed the title ClipboardItemData type only includes values inside a promise. ClipboardItemData type only includes values inside a promise Oct 27, 2021
@cameron-martin
Copy link
Author

cameron-martin commented Oct 27, 2021

It looks like this is actually fixed in src/lib/dom.generated.d.ts by #46080. Does this get synced with the generated files automatically?

@MartinJohns
Copy link
Contributor

Duplicate of #46116.

@cameron-martin
Copy link
Author

So this will automatically become available when the next release happens?

@MartinJohns
Copy link
Contributor

Yes. It's already part of the nightly, as per the comment in the issue.

@andrewbranch andrewbranch added the Duplicate An existing issue was already created label Oct 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants