take-shot
Version:
Screenshots with JavaScript
17 lines (16 loc) • 435 B
TypeScript
export declare class CacheStorage {
private static _link?;
private static _origin;
static getOrigin(url: string): string;
static isSameOrigin(src: string): boolean;
static setContext(window: Window): void;
}
export interface ResourceOptions {
imageTimeout: number;
allowTaint: boolean;
}
export declare class Cache {
private readonly _cache;
addImage(src: string): Promise<void>;
private has;
}