Skip to content

Commit

Permalink
Fix GetPictureResult interface
Browse files Browse the repository at this point in the history
  • Loading branch information
ralacerda committed Jan 18, 2023
1 parent dc2496f commit 8a78c27
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 8a78c27

Please sign in to comment.