take-shot
Version:
Screenshots with JavaScript
8 lines (7 loc) • 402 B
TypeScript
export declare function isDataUrl(url: string): boolean;
export declare function makeDataUrl(content: string, mimeType: string): string;
export declare function fetchAsDataURL<T>(url: string, process: (data: {
result: string;
res: any;
}) => T): Promise<T>;
export declare function resourceToDataURL(resourceUrl: string, contentType: string | undefined, placeholder?: string): Promise<string>;