Update flow typing according to latest changes in the library interface

This commit is contained in:
Florian Rival 2017-08-17 21:48:58 +02:00
parent 433b6bb9c4
commit fa6acf8447
1 changed files with 7 additions and 1 deletions

View File

@ -1,4 +1,10 @@
// @flow
declare type ResizedImageInfo = {
path: string,
uri: string,
size?: number,
name?: string
};
declare export function createResizedImage(
uri: string,
@ -8,5 +14,5 @@ declare export function createResizedImage(
quality: number,
rotation?: number,
outputPath?: string
): Promise<string>;
): Promise<ResizedImageInfo>;