Skip to content

Commit c7bb4ce

Browse files
authored
Merge pull request #22 from brentvatne/patch-1
Correct type annotations
2 parents c623b57 + f915d70 commit c7bb4ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ export function takeSnapshot(
99
options ?: {
1010
width ?: number;
1111
height ?: number;
12+
filename ?: string;
1213
format ?: "png" | "jpg" | "jpeg" | "webm";
1314
quality ?: number;
14-
base64 ?: bool;
15-
filename ?: string;
15+
result ?: "file" | "base64" | "data-uri";
1616
}
1717
): Promise<string> {
1818
if (typeof view !== "number") {

0 commit comments

Comments
 (0)