Fix GetPictureResult interface (#5894)

This commit is contained in:
Renato Lacerda 2023-01-30 17:29:03 -03:00 committed by Matthew Phillips
parent 7de72f3417
commit dc37849f1d
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
'@astrojs/image': patch
---
`getPicture()` return object with the correct image type

View file

@ -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 }[];
} }