Browse Source

Correct type annotations

base64 is not an option, neither is filename
Brent Vatne 8 years ago
parent
commit
e94b88f888
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      index.js

+ 1
- 2
index.js View File

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