Skip to content

Commit bf7dd0a

Browse files
committed
hoist clipboarditems type
1 parent 65cefe8 commit bf7dd0a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/clipboarditem.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
2-
const records = new WeakMap<ClipboardItem, Record<string, ClipboardItemData | PromiseLike<ClipboardItemData>>>()
1+
type ClipboardItems = Record<string, string | Blob | PromiseLike<string | Blob>>
2+
const records = new WeakMap<ClipboardItem, ClipboardItems>()
33
const presentationStyles = new WeakMap<ClipboardItem, PresentationStyle>()
44
export class ClipboardItem {
55
constructor(
6-
items: Record<string, ClipboardItemData | PromiseLike<ClipboardItemData>>,
6+
items: ClipboardItems,
77
options: ClipboardItemOptions | undefined = {}
88
) {
99
if (Object.keys(items).length === 0) throw new TypeError('Empty dictionary argument')

0 commit comments

Comments
 (0)