From 95120efbe817163663492181cbeb225849354493 Mon Sep 17 00:00:00 2001 From: Erika <3019731+Princesseuh@users.noreply.github.com> Date: Mon, 21 Aug 2023 12:35:49 +0200 Subject: [PATCH] fix(assets): Add missing type for imageConfig export (#8171) --- .changeset/many-ears-drum.md | 5 +++++ packages/astro/client-base.d.ts | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .changeset/many-ears-drum.md diff --git a/.changeset/many-ears-drum.md b/.changeset/many-ears-drum.md new file mode 100644 index 0000000000..f728408a08 --- /dev/null +++ b/.changeset/many-ears-drum.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Fix missing type for `imageConfig` export from `astro:assets` diff --git a/packages/astro/client-base.d.ts b/packages/astro/client-base.d.ts index 3b0ee49016..6bd60da8cd 100644 --- a/packages/astro/client-base.d.ts +++ b/packages/astro/client-base.d.ts @@ -53,6 +53,7 @@ declare module 'astro:assets' { | import('./dist/assets/types.js').UnresolvedImageTransform ) => Promise; getConfiguredImageService: typeof import('./dist/assets/index.js').getConfiguredImageService; + imageConfig: import('./dist/@types/astro').AstroConfig['image']; Image: typeof import('./components/Image.astro').default; }; @@ -69,7 +70,7 @@ declare module 'astro:assets' { export type RemoteImageProps = Simplify< import('./dist/assets/types.js').RemoteImageProps >; - export const { getImage, getConfiguredImageService, Image }: AstroAssets; + export const { getImage, getConfiguredImageService, imageConfig, Image }: AstroAssets; } declare module 'astro:transitions' {