瀏覽代碼

Merge pull request #22 from brentvatne/patch-1

Correct type annotations
Gaëtan Renaudeau 8 年之前
父節點
當前提交
c7bb4cef0b
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      index.js

+ 2
- 2
index.js 查看文件

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