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 bf7dd0a commit c6bbad7Copy full SHA for c6bbad7
src/clipboarditem.ts
@@ -2,10 +2,7 @@ type ClipboardItems = Record<string, string | Blob | PromiseLike<string | Blob>>
2
const records = new WeakMap<ClipboardItem, ClipboardItems>()
3
const presentationStyles = new WeakMap<ClipboardItem, PresentationStyle>()
4
export class ClipboardItem {
5
- constructor(
6
- items: ClipboardItems,
7
- options: ClipboardItemOptions | undefined = {}
8
- ) {
+ constructor(items: ClipboardItems, options: ClipboardItemOptions | undefined = {}) {
9
if (Object.keys(items).length === 0) throw new TypeError('Empty dictionary argument')
10
records.set(this, items)
11
presentationStyles.set(this, options.presentationStyle || 'unspecified')
0 commit comments