Browse Source

Merge pull request #22 from brentvatne/patch-1

Correct type annotations
Gaëtan Renaudeau 8 years ago
parent
commit
c7bb4cef0b
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      index.js

+ 2
- 2
index.js View File

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