diff options
-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'>; |