Skip to content

Commit

Permalink
Fix prettier format
Browse files Browse the repository at this point in the history
  • Loading branch information
prototypa committed Oct 4, 2024
1 parent d903e6c commit 52188af
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/utils/images-optimization.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down

0 comments on commit 52188af

Please sign in to comment.