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