* fix: #5979

* Update lazy-plums-sit.md

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
This commit is contained in:
wulinsheng123 2023-02-07 03:28:08 +08:00 committed by GitHub
parent 6147479abf
commit 9fdecb5606
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
---
Improve type definitions (`background` should be optional)

View file

@ -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'>;