-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
Argument of type { [x: string]: Blob; } is not assignable to parameter of type Record<string, ClipboardItemData> #46116
Comments
This matches definition of Related discussion is w3c/clipboard-apis#102 |
I manipulated the lib file so ClipboardItem constructor accepted any types for items and also the Clipbard.write method accept any parameter the results is as follow: linux machine
-edge beta version windows machine all of them fails similar to firefox and chrome on linux |
Can you show exactly what change you are proposing to make to what definition? I’m finding this kind of hard to follow without going and looking up a bunch of stuff. |
I think changes are already in place: error in 4.4.3 and works in Nightly Record<string, ClipboardItemData> but in Nightly it's Record<string, ClipboardItemDataType | PromiseLike<ClipboardItemDataType>> |
It was fixed in microsoft/TypeScript-DOM-lib-generator#1102 And there is further PR to leave only I believe this issue can be closed (but I'm not reporter). |
Thanks @IllusionMH! |
lib Update Request
Configuration Check
My compilation target is
ES2017
and my lib isES2018
.Missing / Incorrect Definition
Sample Code
Documentation Link
https://developer.mozilla.org/en-US/docs/Web/API/Navigator/clipboard
The text was updated successfully, but these errors were encountered: