From 13feb30f3ff9b913670a5fe7c8a9c1907d2c1740 Mon Sep 17 00:00:00 2001 From: Mark Powers Date: Fri, 4 Jul 2025 12:03:11 -0500 Subject: Initial commit --- api/JoplinClipboard.d.ts | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 api/JoplinClipboard.d.ts (limited to 'api/JoplinClipboard.d.ts') diff --git a/api/JoplinClipboard.d.ts b/api/JoplinClipboard.d.ts new file mode 100644 index 0000000..26fdf42 --- /dev/null +++ b/api/JoplinClipboard.d.ts @@ -0,0 +1,29 @@ +export default class JoplinClipboard { + private electronClipboard_; + private electronNativeImage_; + constructor(electronClipboard: any, electronNativeImage: any); + readText(): Promise; + writeText(text: string): Promise; + /** desktop */ + readHtml(): Promise; + /** desktop */ + writeHtml(html: string): Promise; + /** + * Returns the image in [data URL](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs) format. + * + * desktop + */ + readImage(): Promise; + /** + * Takes an image in [data URL](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs) format. + * + * desktop + */ + writeImage(dataUrl: string): Promise; + /** + * Returns the list available formats (mime types). + * + * For example [ 'text/plain', 'text/html' ] + */ + availableFormats(): Promise; +} -- cgit v1.2.3