We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65cefe8 commit bf7dd0aCopy full SHA for bf7dd0a
src/clipboarditem.ts
@@ -1,9 +1,9 @@
1
-
2
-const records = new WeakMap<ClipboardItem, Record<string, ClipboardItemData | PromiseLike<ClipboardItemData>>>()
+type ClipboardItems = Record<string, string | Blob | PromiseLike<string | Blob>>
+const records = new WeakMap<ClipboardItem, ClipboardItems>()
3
const presentationStyles = new WeakMap<ClipboardItem, PresentationStyle>()
4
export class ClipboardItem {
5
constructor(
6
- items: Record<string, ClipboardItemData | PromiseLike<ClipboardItemData>>,
+ items: ClipboardItems,
7
options: ClipboardItemOptions | undefined = {}
8
) {
9
if (Object.keys(items).length === 0) throw new TypeError('Empty dictionary argument')
0 commit comments