fix: allows null in ImageSize width and height types

This commit is contained in:
James
2021-12-28 11:56:10 -05:00
parent ffe8e17ac0
commit ba79fd42db

View File

@@ -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, unknown> }) => string