Przeglądaj źródła

Merge pull request #22 from brentvatne/patch-1

Correct type annotations
Gaëtan Renaudeau 7 lat temu
rodzic
commit
c7bb4cef0b
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2
    2
      index.js

+ 2
- 2
index.js Wyświetl plik

@@ -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") {