Fix GetPictureResult
interface (#5894)
This commit is contained in:
parent
7de72f3417
commit
dc37849f1d
2 changed files with 6 additions and 1 deletions
5
.changeset/chilly-ads-roll.md
Normal file
5
.changeset/chilly-ads-roll.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'@astrojs/image': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
`getPicture()` return object with the correct image type
|
|
@ -17,7 +17,7 @@ export interface GetPictureParams {
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface GetPictureResult {
|
export interface GetPictureResult {
|
||||||
image: astroHTML.JSX.HTMLAttributes;
|
image: astroHTML.JSX.ImgHTMLAttributes;
|
||||||
sources: { type: string; srcset: string }[];
|
sources: { type: string; srcset: string }[];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue