Merge pull request #120 from Gerharddc/patch-1

Export under default in d.ts
This commit is contained in:
Florian Rival 2017-12-20 20:51:17 +01:00 committed by GitHub
commit 4ed8798020
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 5 deletions

5
index.d.ts vendored
View File

@ -5,9 +5,12 @@ declare module "react-native-image-resizer" {
size?: number;
name?: string;
}
export function createResizedImage(
export default class ImageResizer {
static createResizedImage(
uri: string, width: number, height: number,
format: "PNG" | "JPEG" | "WEBP", quality: number,
rotation?: number, outputPath?: string
): Promise<Response>;
}
}