summaryrefslogtreecommitdiff
path: root/packages/integrations/image/components/index.ts
diff options
context:
space:
mode:
authorGravatar Caleb Jasik <calebjasik@jasik.xyz> 2023-05-11 07:40:53 -0500
committerGravatar GitHub <noreply@github.com> 2023-05-11 14:40:53 +0200
commitebb40f5cb093e9be5f856a98bf5ffd65a814218b (patch)
treef2135b2371f8d3747bec7ad92c33e758d92f05e9 /packages/integrations/image/components/index.ts
parentc87d42e766d02db5352671cbf074dd637bdb23e0 (diff)
downloadastro-ebb40f5cb093e9be5f856a98bf5ffd65a814218b.tar.gz
astro-ebb40f5cb093e9be5f856a98bf5ffd65a814218b.tar.zst
astro-ebb40f5cb093e9be5f856a98bf5ffd65a814218b.zip
`@astrojs/image`: Add `fetchpriority` to `Picture` types (#7059)
* Add `fetchpriority` to `Picture` types * Add changeset
Diffstat (limited to 'packages/integrations/image/components/index.ts')
-rw-r--r--packages/integrations/image/components/index.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/integrations/image/components/index.ts b/packages/integrations/image/components/index.ts
index 3135e0e21..6c6d6910a 100644
--- a/packages/integrations/image/components/index.ts
+++ b/packages/integrations/image/components/index.ts
@@ -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;
@@ -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;