From 50af8e0d04f0e4888e84e848dd6aca8b7e964095 Mon Sep 17 00:00:00 2001 From: Woraphot Chokratanasombat Date: Wed, 13 Mar 2019 11:13:00 +0700 Subject: [PATCH] fix(typings): Wrong type for ImageCropData.resizeMode --- typings/index.d.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/typings/index.d.ts b/typings/index.d.ts index 9659073..43d35f3 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -28,11 +28,7 @@ export type ImageCropData = { * (Optional) the resizing mode to use when scaling the image. If the * `displaySize` param is not specified, this has no effect. */ - resizeMode?: $Maybe<{ - contain: string, - cover: string, - stretch: string, - }>, + resizeMode?: $Maybe<"contain" | "cover" | "stretch">, }; declare class ImageEditor {