From ba79fd42dbf20ba712a0632da9193fcc516c0257 Mon Sep 17 00:00:00 2001 From: James Date: Tue, 28 Dec 2021 11:56:10 -0500 Subject: [PATCH] fix: allows null in ImageSize width and height types --- src/uploads/types.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/uploads/types.ts b/src/uploads/types.ts index 1eee67e616..e9d1bb9694 100644 --- a/src/uploads/types.ts +++ b/src/uploads/types.ts @@ -23,8 +23,8 @@ export type FileData = { export type ImageSize = { name: string, - width: number, - height: number, + width: number | null, + height: number | null, crop?: string, // comes from sharp package }; export type GetAdminThumbnail = (args: { doc: Record }) => string