From 271e01dbcca86f8d68b7ed64788a9b12c36187c9 Mon Sep 17 00:00:00 2001 From: Princesseuh Date: Tue, 5 Sep 2023 12:37:11 +0200 Subject: [PATCH 1/2] fix: missing imageConfig type in astro:assets --- packages/astro/client.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/astro/client.d.ts b/packages/astro/client.d.ts index 9d064c0b1967..5d1cf745b0ab 100644 --- a/packages/astro/client.d.ts +++ b/packages/astro/client.d.ts @@ -52,6 +52,7 @@ declare module 'astro:assets' { | import('./dist/assets/types.js').ImageTransform | import('./dist/assets/types.js').UnresolvedImageTransform ) => Promise; + imageConfig: import('./dist/@types/astro').AstroConfig['image']; getConfiguredImageService: typeof import('./dist/assets/index.js').getConfiguredImageService; 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; } type InputFormat = import('./dist/assets/types.js').ImageInputFormat; From 276ccbd21446d2f67a9f1b3290602dc37b4927ba Mon Sep 17 00:00:00 2001 From: Princesseuh Date: Tue, 5 Sep 2023 12:37:32 +0200 Subject: [PATCH 2/2] chore: changeset --- .changeset/hip-cats-jump.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/hip-cats-jump.md diff --git a/.changeset/hip-cats-jump.md b/.changeset/hip-cats-jump.md new file mode 100644 index 000000000000..f728408a082a --- /dev/null +++ b/.changeset/hip-cats-jump.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Fix missing type for `imageConfig` export from `astro:assets`