ngx-picture
Version:
An Angular library to properly size, lazy load images, and use next generation formats
9 lines (8 loc) • 331 B
TypeScript
import { ImageFormat } from './picture/picture.component';
export interface NgxPictureConfig<T = number> {
breakpoints: {
[key: string]: T;
};
imageFormats?: any[];
srcInterpolator: (url: string | undefined, imageFormat: ImageFormat, breakpoint: string, breakpointValue: T) => string | undefined;
}