You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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"].
The text was updated successfully, but these errors were encountered:
cameron-martin
changed the title
ClipboardItemData type only includes values inside a promise.
ClipboardItemData type only includes values inside a promise
Oct 27, 2021
lib Update Request
According to MDN, the argument to
ClipboardItem
,ClipboardItemData
, can be eitherBlob
,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
Documentation Link
https://developer.mozilla.org/en-US/docs/Web/API/ClipboardItem/ClipboardItem
The text was updated successfully, but these errors were encountered: