diff --git a/.changeset/lazy-plums-sit.md b/.changeset/lazy-plums-sit.md new file mode 100644 index 000000000000..363021312da8 --- /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 c4f41123f7f5..2ca557656a09 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'>;