Skip to content

Commit

Permalink
fix: inferRemoteSize not being exported in the type (#11500)
Browse files Browse the repository at this point in the history
  • Loading branch information
Princesseuh authored Jul 18, 2024
1 parent 53ccd20 commit 4e142d3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/cold-ravens-dream.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': patch
---

Fixes inferRemoteSize type not working
9 changes: 8 additions & 1 deletion packages/astro/client.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4e142d3

Please sign in to comment.