summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Erika <3019731+Princesseuh@users.noreply.github.com> 2023-09-05 15:11:05 +0200
committerGravatar GitHub <noreply@github.com> 2023-09-05 15:11:05 +0200
commit5126c6a40f88bff66ee5d3c3a21eea8c4a44ce7a (patch)
treeb9371e99d590216a03dc8f94d3d49900a1c9f708
parent8352ee0a9a6d27a0823d0ff4b3df2526eb2b5ca5 (diff)
downloadastro-5126c6a40f88bff66ee5d3c3a21eea8c4a44ce7a.tar.gz
astro-5126c6a40f88bff66ee5d3c3a21eea8c4a44ce7a.tar.zst
astro-5126c6a40f88bff66ee5d3c3a21eea8c4a44ce7a.zip
fix: missing imageConfig type in astro:assets (#8414)
Diffstat (limited to '')
-rw-r--r--.changeset/hip-cats-jump.md5
-rw-r--r--packages/astro/client.d.ts3
2 files changed, 7 insertions, 1 deletions
diff --git a/.changeset/hip-cats-jump.md b/.changeset/hip-cats-jump.md
new file mode 100644
index 000000000..f728408a0
--- /dev/null
+++ b/.changeset/hip-cats-jump.md
@@ -0,0 +1,5 @@
+---
+'astro': patch
+---
+
+Fix missing type for `imageConfig` export from `astro:assets`
diff --git a/packages/astro/client.d.ts b/packages/astro/client.d.ts
index 9d064c0b1..5d1cf745b 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<import('./dist/assets/types.js').GetImageResult>;
+ 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<ImgAttributes>
>;
- export const { getImage, getConfiguredImageService, Image }: AstroAssets;
+ export const { getImage, getConfiguredImageService, imageConfig, Image }: AstroAssets;
}
type InputFormat = import('./dist/assets/types.js').ImageInputFormat;