Skip to content
This repository was archived by the owner on Feb 18, 2025. It is now read-only.

Commit 7e39dee

Browse files
authored
Backport shared.d.ts fixes from monorepo
1 parent cc371a7 commit 7e39dee

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

libreoffice-core/desktop/wasm/shared.d.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,18 @@ type Rectangle = {
3434

3535
export type RectanglePx = Rectangle & {};
3636
export type RectangleTwips = Rectangle & {};
37-
export type SetClipbaordItem = {
37+
export type SetClipboardItem = {
3838
mimeType: string;
3939
buffer: string | ArrayBuffer;
4040
};
4141

42-
export type GetClipbaordItem =
42+
export type GetClipboardItem =
4343
| {
44-
mimeType: 'text/plain' | 'text/html';
44+
mimeType: 'text/plain' | 'text/html' | 'text/rtf';
4545
text: string;
4646
}
4747
| {
48-
mimeType: string;
48+
mimeType: 'image/png';
4949
data: Uint8Array;
5050
};
5151

@@ -92,8 +92,8 @@ export type DocumentWithViewMethods = {
9292
modifiers: number
9393
): void;
9494
setTextSelection(type: number, x: number, y: Number): void;
95-
setClipboard(items: SetClipbaordItem[]): boolean;
96-
getClipboard(mimeTypes: string[]): GetClipbaordItem[];
95+
setClipboard(items: SetClipboardItem[]): boolean;
96+
getClipboard(mimeTypes: string[]): GetClipboardItem[];
9797
paste(mimeType: string, data: string | ArrayBuffer): void;
9898
setGraphicSelection(type: number, x: number, y: number): void;
9999
resetSelection(): void;

0 commit comments

Comments
 (0)