diff --git a/index.d.ts b/index.d.ts index d17ad36..66269fc 100644 --- a/index.d.ts +++ b/index.d.ts @@ -5,9 +5,12 @@ declare module "react-native-image-resizer" { size?: number; name?: string; } - export function createResizedImage( - uri: string, width: number, height: number, - format: "PNG" | "JPEG" | "WEBP", quality: number, - rotation?: number, outputPath?: string - ): Promise; + + export default class ImageResizer { + static createResizedImage( + uri: string, width: number, height: number, + format: "PNG" | "JPEG" | "WEBP", quality: number, + rotation?: number, outputPath?: string + ): Promise; + } }