@astrojs/image
: Add fetchpriority
to Picture
types (#7059)
* Add `fetchpriority` to `Picture` types * Add changeset
This commit is contained in:
parent
c87d42e766
commit
ebb40f5cb0
2 changed files with 7 additions and 2 deletions
5
.changeset/purple-zebras-allow.md
Normal file
5
.changeset/purple-zebras-allow.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'@astrojs/image': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Add `fetchpriority` to allowed `Picture` attributes in `@astrojs/image`
|
|
@ -27,7 +27,7 @@ export interface ImageComponentRemoteImageProps extends TransformOptions, ImgHTM
|
||||||
export interface PictureComponentLocalImageProps
|
export interface PictureComponentLocalImageProps
|
||||||
extends GlobalHTMLAttributes,
|
extends GlobalHTMLAttributes,
|
||||||
Omit<TransformOptions, 'src'>,
|
Omit<TransformOptions, 'src'>,
|
||||||
Pick<ImgHTMLAttributes, 'loading' | 'decoding'> {
|
Pick<ImgHTMLAttributes, 'loading' | 'decoding' | 'fetchpriority'> {
|
||||||
src: ImageMetadata | Promise<{ default: ImageMetadata }>;
|
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). */
|
/** 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;
|
alt: string;
|
||||||
|
@ -39,7 +39,7 @@ export interface PictureComponentLocalImageProps
|
||||||
export interface PictureComponentRemoteImageProps
|
export interface PictureComponentRemoteImageProps
|
||||||
extends GlobalHTMLAttributes,
|
extends GlobalHTMLAttributes,
|
||||||
TransformOptions,
|
TransformOptions,
|
||||||
Pick<ImgHTMLAttributes, 'loading' | 'decoding'> {
|
Pick<ImgHTMLAttributes, 'loading' | 'decoding' | 'fetchpriority'> {
|
||||||
src: string;
|
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). */
|
/** 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;
|
alt: string;
|
||||||
|
|
Loading…
Reference in a new issue