aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar wulinsheng123 <409187100@qq.com> 2023-02-07 03:28:08 +0800
committerGravatar GitHub <noreply@github.com> 2023-02-06 13:28:08 -0600
commit9fdecb5606f14d277f56b58f3d06d7ad6c0c515c (patch)
treedb78e11bc58602273277649a4f39e09d391ab5ea
parent6147479abff6737f57539247203da907402b1140 (diff)
downloadastro-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.md5
-rw-r--r--packages/integrations/image/components/index.ts2
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'>;