@types/novnc__novnc 1.3.4 → 1.5.0

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: Mon, 29 Jul 2024 19:07:13 GMT
12
12
  * Dependencies: none
13
13
 
14
14
  # Credits
novnc__novnc/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  // eslint-disable-next-line @definitelytyped/no-declare-current-package
2
- declare module "@novnc/novnc/core/rfb" {
2
+ declare module "@novnc/novnc/lib/rfb" {
3
3
  /**
4
4
  * An `object` specifying the credentials to provide to the server when authenticating.
5
5
  */
@@ -290,11 +290,26 @@ 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
 
296
311
  // eslint-disable-next-line @definitelytyped/no-declare-current-package
297
- declare module "@novnc/novnc/core/util/browser" {
312
+ declare module "@novnc/novnc/lib/util/browser" {
298
313
  let isTouchDevice: boolean;
299
314
  let dragThreshold: number;
300
315
 
@@ -309,7 +324,7 @@ declare module "@novnc/novnc/core/util/browser" {
309
324
  }
310
325
 
311
326
  // eslint-disable-next-line @definitelytyped/no-declare-current-package
312
- declare module "@novnc/novnc/core/input/util" {
327
+ declare module "@novnc/novnc/lib/input/util" {
313
328
  interface KeyboardEventBase {
314
329
  char?: string;
315
330
  charCode?: number;
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.5.0",
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": "0b81569f169859f4dd6e5f6a9a591c82e3d21934e974860ef287d90b7412c309",
29
+ "typeScriptVersion": "4.8"
30
30
  }