From fcc9e20a1b48f9ae831ff892fe62f8b4468cdc07 Mon Sep 17 00:00:00 2001 From: prototypa Date: Mon, 26 Aug 2024 01:08:15 -0400 Subject: [PATCH] Fix typescript interface --- src/components/common/Image.astro | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/common/Image.astro b/src/components/common/Image.astro index 80dab3f..ada4f27 100644 --- a/src/components/common/Image.astro +++ b/src/components/common/Image.astro @@ -1,4 +1,5 @@ --- +import type { HTMLAttributes } from 'astro/types'; import { findImage } from '~/utils/images'; import { getImagesOptimized, @@ -6,13 +7,12 @@ import { unpicOptimizer, isUnpicCompatible, type ImageProps, - type AttributesProps, } from '~/utils/images-optimization'; type Props = ImageProps; type ImageType = { src: string; - attributes: AttributesProps; + attributes: HTMLAttributes<'img'>; }; const props = Astro.props;