fix: missing imageConfig type in astro:assets (#8414)
This commit is contained in:
parent
8352ee0a9a
commit
5126c6a40f
2 changed files with 7 additions and 1 deletions
5
.changeset/hip-cats-jump.md
Normal file
5
.changeset/hip-cats-jump.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Fix missing type for `imageConfig` export from `astro:assets`
|
3
packages/astro/client.d.ts
vendored
3
packages/astro/client.d.ts
vendored
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue