Skip to content

Commit 61ba332

Browse files
ematipicoastrobot-houston
authored andcommitted
[ci] format
1 parent 3ce4ad9 commit 61ba332

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

packages/astro/src/assets/utils/imageKind.ts

+5-3
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,13 @@ export function isRemoteImage(src: ImageMetadata | string): src is string {
2222

2323
/**
2424
* Resolves the source of an image transformation by handling asynchronous or synchronous inputs.
25-
*
26-
* @param {UnresolvedImageTransform['src']} src - The source of the image transformation.
25+
*
26+
* @param {UnresolvedImageTransform['src']} src - The source of the image transformation.
2727
* @return {Promise<string | ImageMetadata>} 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.
2828
*/
29-
export async function resolveSrc(src: UnresolvedImageTransform['src']): Promise<string | ImageMetadata> {
29+
export async function resolveSrc(
30+
src: UnresolvedImageTransform['src'],
31+
): Promise<string | ImageMetadata> {
3032
if (typeof src === 'object' && 'then' in src) {
3133
const resource = await src;
3234
return resource.default ?? resource;

packages/astro/src/assets/utils/queryParams.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { ImageInputFormat, ImageMetadata } from '../types.js';
33
/**
44
* Extracts the original image query parameters (width, height, format) from the given `URLSearchParams` object
55
* and returns them as an object. If any of the required parameters are missing or invalid, the function returns undefined.
6-
*
6+
*
77
* The `width` and `height` are parsed to integer values.
88
*
99
* @param {URLSearchParams} params - The `URLSearchParams` object containing the query parameters.

0 commit comments

Comments
 (0)