Skip to content

Commit

Permalink
@astrojs/image: Add fetchpriority to Picture types (#7059)
Browse files Browse the repository at this point in the history
* Add `fetchpriority` to `Picture` types

* Add changeset
  • Loading branch information
jasikpark authored May 11, 2023
1 parent c87d42e commit ebb40f5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/purple-zebras-allow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@astrojs/image': patch
---

Add `fetchpriority` to allowed `Picture` attributes in `@astrojs/image`
4 changes: 2 additions & 2 deletions packages/integrations/image/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export interface ImageComponentRemoteImageProps extends TransformOptions, ImgHTM
export interface PictureComponentLocalImageProps
extends GlobalHTMLAttributes,
Omit<TransformOptions, 'src'>,
Pick<ImgHTMLAttributes, 'loading' | 'decoding'> {
Pick<ImgHTMLAttributes, 'loading' | 'decoding' | 'fetchpriority'> {
src: ImageMetadata | Promise<{ default: ImageMetadata }>;
/** Defines an alternative text description of the image. Set to an empty string (alt="") if the image is not a key part of the content (it's decoration or a tracking pixel). */
alt: string;
Expand All @@ -39,7 +39,7 @@ export interface PictureComponentLocalImageProps
export interface PictureComponentRemoteImageProps
extends GlobalHTMLAttributes,
TransformOptions,
Pick<ImgHTMLAttributes, 'loading' | 'decoding'> {
Pick<ImgHTMLAttributes, 'loading' | 'decoding' | 'fetchpriority'> {
src: string;
/** Defines an alternative text description of the image. Set to an empty string (alt="") if the image is not a key part of the content (it's decoration or a tracking pixel). */
alt: string;
Expand Down

0 comments on commit ebb40f5

Please sign in to comment.