Fix GetPictureResult interface (#5894)

This commit is contained in:
Renato Lacerda 2023-01-30 17:29:03 -03:00 committed by GitHub
parent a2cbc75ac4
commit ca91976edb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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 {
image: astroHTML.JSX.HTMLAttributes;
image: astroHTML.JSX.ImgHTMLAttributes;
sources: { type: string; srcset: string }[];
}