Explorar el Código

Merge pull request #22 from brentvatne/patch-1

Correct type annotations
Gaëtan Renaudeau hace 8 años
padre
commit
c7bb4cef0b
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2
    2
      index.js

+ 2
- 2
index.js Ver fichero

@@ -9,10 +9,10 @@ export function takeSnapshot(
9 9
   options ?: {
10 10
     width ?: number;
11 11
     height ?: number;
12
+    filename ?: string;
12 13
     format ?: "png" | "jpg" | "jpeg" | "webm";
13 14
     quality ?: number;
14
-    base64 ?: bool;
15
-    filename ?: string;
15
+    result ?: "file" | "base64" | "data-uri";
16 16
   }
17 17
 ): Promise<string> {
18 18
   if (typeof view !== "number") {