Skip to content

Commit

Permalink
fix(assets): Add missing type for imageConfig export (#8171)
Browse files Browse the repository at this point in the history
  • Loading branch information
Princesseuh committed Aug 21, 2023
1 parent 34c39a0 commit 95120ef
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/many-ears-drum.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': patch
---

Fix missing type for `imageConfig` export from `astro:assets`
3 changes: 2 additions & 1 deletion packages/astro/client-base.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ declare module 'astro:assets' {
| import('./dist/assets/types.js').UnresolvedImageTransform
) => Promise<import('./dist/assets/types.js').GetImageResult>;
getConfiguredImageService: typeof import('./dist/assets/index.js').getConfiguredImageService;
imageConfig: import('./dist/@types/astro').AstroConfig['image'];
Image: typeof import('./components/Image.astro').default;
};

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

declare module 'astro:transitions' {
Expand Down

0 comments on commit 95120ef

Please sign in to comment.