full site update
This commit is contained in:
9
node_modules/astro/dist/assets/utils/queryParams.d.ts
generated
vendored
9
node_modules/astro/dist/assets/utils/queryParams.d.ts
generated
vendored
@@ -1,2 +1,11 @@
|
||||
import type { 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.
|
||||
* @return {Pick<ImageMetadata, 'width' | 'height' | 'format'> | undefined} An object with the original image parameters (width, height, format) or undefined if any parameter is missing.
|
||||
*/
|
||||
export declare function getOrigQueryParams(params: URLSearchParams): Pick<ImageMetadata, 'width' | 'height' | 'format'> | undefined;
|
||||
|
Reference in New Issue
Block a user