@mornya/react-image-libs
Version:
The project of React.js Image library.
13 lines (12 loc) • 366 B
TypeScript
export type ImageSize = {
url: string;
width: number;
height: number;
isComplete: boolean;
};
export type ImageSizeOption = {
timeout?: number;
isIgnoreError?: boolean;
};
export declare function getImageSize(url: string, option?: ImageSizeOption): Promise<ImageSize>;
export declare function getImageFileToData(file: File): Promise<string>;