fix(assets): Add missing type for imageConfig export (#8171)
This commit is contained in:
parent
34c39a0c96
commit
95120efbe8
2 changed files with 7 additions and 1 deletions
5
.changeset/many-ears-drum.md
Normal file
5
.changeset/many-ears-drum.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'astro': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Fix missing type for `imageConfig` export from `astro:assets`
|
3
packages/astro/client-base.d.ts
vendored
3
packages/astro/client-base.d.ts
vendored
|
@ -53,6 +53,7 @@ declare module 'astro:assets' {
|
||||||
| import('./dist/assets/types.js').UnresolvedImageTransform
|
| import('./dist/assets/types.js').UnresolvedImageTransform
|
||||||
) => Promise<import('./dist/assets/types.js').GetImageResult>;
|
) => Promise<import('./dist/assets/types.js').GetImageResult>;
|
||||||
getConfiguredImageService: typeof import('./dist/assets/index.js').getConfiguredImageService;
|
getConfiguredImageService: typeof import('./dist/assets/index.js').getConfiguredImageService;
|
||||||
|
imageConfig: import('./dist/@types/astro').AstroConfig['image'];
|
||||||
Image: typeof import('./components/Image.astro').default;
|
Image: typeof import('./components/Image.astro').default;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -69,7 +70,7 @@ declare module 'astro:assets' {
|
||||||
export type RemoteImageProps = Simplify<
|
export type RemoteImageProps = Simplify<
|
||||||
import('./dist/assets/types.js').RemoteImageProps<ImgAttributes>
|
import('./dist/assets/types.js').RemoteImageProps<ImgAttributes>
|
||||||
>;
|
>;
|
||||||
export const { getImage, getConfiguredImageService, Image }: AstroAssets;
|
export const { getImage, getConfiguredImageService, imageConfig, Image }: AstroAssets;
|
||||||
}
|
}
|
||||||
|
|
||||||
declare module 'astro:transitions' {
|
declare module 'astro:transitions' {
|
||||||
|
|
Loading…
Reference in a new issue