0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-20 22:12:38 -05:00

fix: inferRemoteSize not being exported in the type (#11500)

This commit is contained in:
Erika 2024-07-18 23:16:36 +02:00 committed by GitHub
parent 53ccd206f9
commit 4e142d38cb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 13 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Fixes inferRemoteSize type not working

View file

@ -70,7 +70,14 @@ declare module 'astro:assets' {
export type RemoteImageProps = import('./dist/type-utils.js').Simplify<
import('./dist/assets/types.js').RemoteImageProps<ImgAttributes>
>;
export const { getImage, getConfiguredImageService, imageConfig, Image, Picture }: AstroAssets;
export const {
getImage,
getConfiguredImageService,
imageConfig,
Image,
Picture,
inferRemoteSize,
}: AstroAssets;
}
type ImageMetadata = import('./dist/assets/types.js').ImageMetadata;