From 52188af681ae39d9c3f3546384fd556162afda2e Mon Sep 17 00:00:00 2001 From: prototypa Date: Fri, 4 Oct 2024 02:51:33 -0400 Subject: [PATCH] Fix prettier format --- src/utils/images-optimization.ts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/utils/images-optimization.ts b/src/utils/images-optimization.ts index cbfca97311..3f563b2237 100644 --- a/src/utils/images-optimization.ts +++ b/src/utils/images-optimization.ts @@ -260,7 +260,18 @@ export const unpicOptimizer: ImagesOptimizer = async (image, breakpoints, width, /* ** */ export async function getImagesOptimized( image: ImageMetadata | string, - { src: _, width, height, sizes, aspectRatio, objectPosition, widths, layout = 'constrained', style = '', ...rest }: ImageProps, + { + src: _, + width, + height, + sizes, + aspectRatio, + objectPosition, + widths, + layout = 'constrained', + style = '', + ...rest + }: ImageProps, transform: ImagesOptimizer = () => Promise.resolve([]) ): Promise<{ src: string; attributes: HTMLAttributes<'img'> }> { if (typeof image !== 'string') {