svimg
Version:
Svelte image component with image preprocessing and lazy loading
20 lines (19 loc) • 661 B
TypeScript
import type { GetComponentAttributesOutput } from './get-component-attributes';
import Queue from '../core/queue';
import type { SrcGenerator } from '../core/path-to-url';
interface GenerateComponentAttributesOptions {
src: string;
queue?: Queue;
inputDir: string;
outputDir: string;
webp?: boolean;
avif?: boolean;
widths?: number[];
quality?: number;
skipGeneration?: boolean;
skipPlaceholder?: boolean;
srcGenerator?: SrcGenerator;
embedPlaceholder?: boolean;
}
export default function generateComponentAttributes(options: GenerateComponentAttributesOptions): Promise<GetComponentAttributesOutput>;
export {};