Skip to content

Commit

Permalink
Fix GetPictureResult interface (#5894)
Browse files Browse the repository at this point in the history
  • Loading branch information
ralacerda committed Jan 30, 2023
1 parent a2cbc75 commit ca91976
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/chilly-ads-roll.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@astrojs/image': patch
---

`getPicture()` return object with the correct image type
2 changes: 1 addition & 1 deletion packages/integrations/image/src/lib/get-picture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export interface GetPictureParams {
}

export interface GetPictureResult {
image: astroHTML.JSX.HTMLAttributes;
image: astroHTML.JSX.ImgHTMLAttributes;
sources: { type: string; srcset: string }[];
}

Expand Down

0 comments on commit ca91976

Please sign in to comment.