Skip to content

Commit 276da88

Browse files
committed
feat(types): add clipboard binary methods
1 parent 87021dc commit 276da88

2 files changed

Lines changed: 3 additions & 8 deletions

File tree

baselines/dom.generated.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3470,7 +3470,9 @@ interface ChildNode {
34703470
}
34713471

34723472
interface Clipboard extends EventTarget {
3473+
read(): Promise<ClipboardItems>;
34733474
readText(): Promise<string>;
3475+
write(data: ClipboardItems): Promise<void>;
34743476
writeText(data: string): Promise<void>;
34753477
}
34763478

@@ -18444,6 +18446,7 @@ type COSEAlgorithmIdentifier = number;
1844418446
type CanvasImageSource = HTMLOrSVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap;
1844518447
type ClipboardItemData = Promise<ClipboardItemDataType>;
1844618448
type ClipboardItemDataType = string | Blob;
18449+
type ClipboardItems = ClipboardItem[];
1844718450
type ConstrainBoolean = boolean | ConstrainBooleanParameters;
1844818451
type ConstrainDOMString = string | string[] | ConstrainDOMStringParameters;
1844918452
type ConstrainDouble = number | ConstrainDoubleRange;

inputfiles/removedTypes.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -125,14 +125,6 @@
125125
},
126126
"interfaces": {
127127
"interface": {
128-
"Clipboard": {
129-
"methods": {
130-
"method": {
131-
"read": null,
132-
"write": null
133-
}
134-
}
135-
},
136128
"CSSRule": {
137129
"constants": {
138130
"constant": {

0 commit comments

Comments
 (0)