react-native-image-resizer/index.d.ts

14 lines
398 B
TypeScript

declare module "react-native-image-resizer" {
export interface Response {
path: string;
uri: string;
size?: number;
name?: string;
}
export function createResizedImage(
uri: string, width: number, height: number,
format: "PNG" | "JPEG" | "WEBP", quality: number,
rotation?: number, outputPath?: string
): Promise<Response>;
}