Skip to content

Commit

Permalink
fix: #5979 (#6142)
Browse files Browse the repository at this point in the history
* fix: #5979

* Update lazy-plums-sit.md

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
  • Loading branch information
JerryWu1234 and natemoo-re authored Feb 6, 2023
1 parent 6147479 commit 9fdecb5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/lazy-plums-sit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@astrojs/image': patch
---

Improve type definitions (`background` should be optional)
2 changes: 1 addition & 1 deletion packages/integrations/image/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export interface PictureComponentRemoteImageProps
widths: number[];
aspectRatio: TransformOptions['aspectRatio'];
formats?: OutputFormat[];
background: TransformOptions['background'];
background?: TransformOptions['background'];
}

export type ImgHTMLAttributes = HTMLAttributes<'img'>;
Expand Down

0 comments on commit 9fdecb5

Please sign in to comment.