svimg
Version:
Svelte image component with image preprocessing and lazy loading
15 lines (14 loc) • 400 B
TypeScript
export interface SrcGeneratorInfo {
inputDir: string;
outputDir: string;
src: string;
}
export type SrcGenerator = (path: string, info?: SrcGeneratorInfo) => string;
interface PathToUrlOptions {
inputDir: string;
src: string;
outputDir: string;
srcGenerator?: SrcGenerator;
}
export default function pathToUrl(path: string, options?: PathToUrlOptions): string;
export {};