Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
27 lines
748 B
Plaintext
27 lines
748 B
Plaintext
import { Context } from './context';
|
|
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;
|
|
useCORS: boolean;
|
|
allowTaint: boolean;
|
|
proxy?: string;
|
|
}
|
|
export declare class Cache {
|
|
private readonly context;
|
|
private readonly _options;
|
|
private readonly _cache;
|
|
constructor(context: Context, _options: ResourceOptions);
|
|
addImage(src: string): Promise<void>;
|
|
match(src: string): Promise<any>;
|
|
private loadImage;
|
|
private has;
|
|
keys(): Promise<string[]>;
|
|
private proxy;
|
|
}
|