UNPKG

@googleforcreators/media

Version:

Functionality for creating and working with media resources in the Web Stories editor.

19 lines 549 B
interface ImageArguments { src: string; srcset?: string; width?: string | number; height?: string | number; } /** * Preload image using a promise. * * @param attr Image attributes * @param attr.src Image source. * @param attr.srcset Image source set. * @param attr.width Image width. * @param attr.height Image height. * @return Image object. */ declare function preloadImage({ src, srcset, width, height, }: ImageArguments): Promise<HTMLImageElement>; export default preloadImage; //# sourceMappingURL=preloadImage.d.ts.map