@types/novnc__novnc 1.3.4 → 1.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
novnc__novnc/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for @novnc/novnc (https://github.com/novn
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/novnc__novnc.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
11
+ * Last updated: Fri, 19 Apr 2024 15:36:28 GMT
12
12
  * Dependencies: none
13
13
 
14
14
  # Credits
novnc__novnc/index.d.ts CHANGED
@@ -290,6 +290,21 @@ declare module "@novnc/novnc/core/rfb" {
290
290
  * @param text A `string` specifying the clipboard data to send.
291
291
  */
292
292
  clipboardPasteFrom(text: string): void;
293
+
294
+ /**
295
+ * Return the current content of the screen encoded as a base64 data URL.
296
+ * @param type A `string` indicating the requested MIME type of the image
297
+ * @param encoderOptions A `number` between 0 and 1 indicating the image quality.
298
+ */
299
+ toDataURL(type?: string, encoderOptions?: number): string;
300
+
301
+ /**
302
+ * Used to return the current content of the screen encoded as a `Blob`.
303
+ * @param callback A callback function which will receive the resulting `Blob` as the single argument
304
+ * @param type A `string` indicating the requested MIME type of the image
305
+ * @param quality A `number` between 0 and 1 indicating the image quality.
306
+ */
307
+ toBlob(callback: (blob: Blob) => void, type?: string, quality?: number): void;
293
308
  }
294
309
  }
295
310
 
novnc__novnc/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/novnc__novnc",
3
- "version": "1.3.4",
3
+ "version": "1.3.5",
4
4
  "description": "TypeScript definitions for @novnc/novnc",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/novnc__novnc",
6
6
  "license": "MIT",
@@ -25,6 +25,6 @@
25
25
  },
26
26
  "scripts": {},
27
27
  "dependencies": {},
28
- "typesPublisherContentHash": "678558812ca9ff4a82a58e94966f7536fc2245c5b1c1fac83173eae9a048f7cc",
29
- "typeScriptVersion": "4.5"
28
+ "typesPublisherContentHash": "f87b5033ac07eb3ecc20735903e03e031915919296827b140cba7c3a6a7d9004",
29
+ "typeScriptVersion": "4.7"
30
30
  }