Skip to content

Commit 65cefe8

Browse files
authored
fix up ClipboardItemData type
1 parent 43ad819 commit 65cefe8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/clipboarditem.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
const records = new WeakMap<ClipboardItem, Record<string, ClipboardItemDataType | PromiseLike<ClipboardItemDataType>>>()
1+
2+
const records = new WeakMap<ClipboardItem, Record<string, ClipboardItemData | PromiseLike<ClipboardItemData>>>()
23
const presentationStyles = new WeakMap<ClipboardItem, PresentationStyle>()
34
export class ClipboardItem {
45
constructor(
5-
items: Record<string, ClipboardItemDataType | PromiseLike<ClipboardItemDataType>>,
6+
items: Record<string, ClipboardItemData | PromiseLike<ClipboardItemData>>,
67
options: ClipboardItemOptions | undefined = {}
78
) {
89
if (Object.keys(items).length === 0) throw new TypeError('Empty dictionary argument')

0 commit comments

Comments
 (0)