astro/.changeset/mean-suits-cover.md
Happydev 006405d33c
Refactor Props of Image and Picture component to support type checking (#5788)
* correct props type

* refactor Picture and Image typings

* add missing `alt` property

* add changeset

* apply suggestions

* correct `astro/types` import

Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>

* apply suggestions

* convert to type import

Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2023-01-18 02:41:50 +00:00

191 B

@astrojs/image
patch
  • Refactor types to support props auto-completion for the Image and Picture components.
  • Pass previously missing alt prop to the getPicture function