diff options
author | 2023-02-07 03:28:08 +0800 | |
---|---|---|
committer | 2023-02-06 13:28:08 -0600 | |
commit | 9fdecb5606f14d277f56b58f3d06d7ad6c0c515c (patch) | |
tree | db78e11bc58602273277649a4f39e09d391ab5ea | |
parent | 6147479abff6737f57539247203da907402b1140 (diff) | |
download | astro-9fdecb5606f14d277f56b58f3d06d7ad6c0c515c.tar.gz astro-9fdecb5606f14d277f56b58f3d06d7ad6c0c515c.tar.zst astro-9fdecb5606f14d277f56b58f3d06d7ad6c0c515c.zip |
fix: #5979 (#6142)
* fix: #5979
* Update lazy-plums-sit.md
---------
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
-rw-r--r-- | .changeset/lazy-plums-sit.md | 5 | ||||
-rw-r--r-- | packages/integrations/image/components/index.ts | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/.changeset/lazy-plums-sit.md b/.changeset/lazy-plums-sit.md new file mode 100644 index 000000000..363021312 --- /dev/null +++ b/.changeset/lazy-plums-sit.md @@ -0,0 +1,5 @@ +--- +'@astrojs/image': patch +--- + +Improve type definitions (`background` should be optional) diff --git a/packages/integrations/image/components/index.ts b/packages/integrations/image/components/index.ts index c4f41123f..2ca557656 100644 --- a/packages/integrations/image/components/index.ts +++ b/packages/integrations/image/components/index.ts @@ -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'>; |