From 61ba33283bb27f9acaae2150f9b522a80d111b64 Mon Sep 17 00:00:00 2001 From: Emanuele Stoppa Date: Mon, 10 Mar 2025 08:40:34 +0000 Subject: [ci] format --- packages/astro/src/assets/utils/imageKind.ts | 8 +++++--- packages/astro/src/assets/utils/queryParams.ts | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/astro/src/assets/utils/imageKind.ts b/packages/astro/src/assets/utils/imageKind.ts index 34a85e4d3..f34f45749 100644 --- a/packages/astro/src/assets/utils/imageKind.ts +++ b/packages/astro/src/assets/utils/imageKind.ts @@ -22,11 +22,13 @@ export function isRemoteImage(src: ImageMetadata | string): src is string { /** * Resolves the source of an image transformation by handling asynchronous or synchronous inputs. - * - * @param {UnresolvedImageTransform['src']} src - The source of the image transformation. + * + * @param {UnresolvedImageTransform['src']} src - The source of the image transformation. * @return {Promise} A promise that resolves to the image source. It returns either the default export of the resolved source or the resolved source itself if the default export doesn't exist. */ -export async function resolveSrc(src: UnresolvedImageTransform['src']): Promise { +export async function resolveSrc( + src: UnresolvedImageTransform['src'], +): Promise { if (typeof src === 'object' && 'then' in src) { const resource = await src; return resource.default ?? resource; diff --git a/packages/astro/src/assets/utils/queryParams.ts b/packages/astro/src/assets/utils/queryParams.ts index 1a5c21bc3..f2c0251e4 100644 --- a/packages/astro/src/assets/utils/queryParams.ts +++ b/packages/astro/src/assets/utils/queryParams.ts @@ -3,7 +3,7 @@ import type { ImageInputFormat, ImageMetadata } from '../types.js'; /** * Extracts the original image query parameters (width, height, format) from the given `URLSearchParams` object * and returns them as an object. If any of the required parameters are missing or invalid, the function returns undefined. - * + * * The `width` and `height` are parsed to integer values. * * @param {URLSearchParams} params - The `URLSearchParams` object containing the query parameters. -- cgit v1.2.3