webp-hero
Version:
webp image format polyfill for browsers
11 lines (10 loc) • 326 B
TypeScript
import { Webp } from "../libwebp/dist/webp.js";
export declare type DetectWebpImage = (image: HTMLImageElement) => boolean;
export interface WebpMachineOptions {
webp?: Webp;
webpSupport?: Promise<boolean>;
detectWebpImage?: DetectWebpImage;
}
export interface PolyfillDocumentOptions {
document?: Document;
}