UNPKG

@widergy/web-utils

Version:
16 lines (15 loc) 649 B
export interface ImageResizingConfig { imageType: string; maxWidth: number; maxHeight: number; } export declare const resizeImage: (file: File, imageResizingConfig?: ImageResizingConfig) => Promise<unknown>; export declare const fetchImage: (url: string) => Promise<void>; export declare const fetchImages: (urls: [string]) => Promise<void[]>; interface ImageUtils { resizeImage: (file: File, imageResizingConfig: ImageResizingConfig) => Promise<unknown>; fetchImage: (url: string) => Promise<unknown>; fetchImages: (urls: [string]) => Promise<unknown[]>; } declare const IMAGE_UTILS: ImageUtils; export default IMAGE_UTILS;