Skip to content

Commit 45b4b23

Browse files
guhungryTrancever
authored andcommitted
fix: Wrong type for ImageCropData.resizeMode (typescript typings) (#17)
1 parent 8a9747c commit 45b4b23

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

typings/index.d.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,7 @@ export type ImageCropData = {
2828
* (Optional) the resizing mode to use when scaling the image. If the
2929
* `displaySize` param is not specified, this has no effect.
3030
*/
31-
resizeMode?: $Maybe<{
32-
contain: string,
33-
cover: string,
34-
stretch: string,
35-
}>,
31+
resizeMode?: $Maybe<"contain" | "cover" | "stretch">,
3632
};
3733

3834
declare class ImageEditor {

0 commit comments

Comments
 (0)