Correct type annotations
@@ -9,10 +9,10 @@ export function takeSnapshot(
options ?: {
width ?: number;
height ?: number;
+ filename ?: string;
format ?: "png" | "jpg" | "jpeg" | "webm";
quality ?: number;
- base64 ?: bool;
- filename ?: string;
+ result ?: "file" | "base64" | "data-uri";
}
): Promise<string> {
if (typeof view !== "number") {