Skip to content

Commit fcc9e20

Browse files
committed
Fix typescript interface
1 parent 0202552 commit fcc9e20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/common/Image.astro

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
---
2+
import type { HTMLAttributes } from 'astro/types';
23
import { findImage } from '~/utils/images';
34
import {
45
getImagesOptimized,
56
astroAsseetsOptimizer,
67
unpicOptimizer,
78
isUnpicCompatible,
89
type ImageProps,
9-
type AttributesProps,
1010
} from '~/utils/images-optimization';
1111
1212
type Props = ImageProps;
1313
type ImageType = {
1414
src: string;
15-
attributes: AttributesProps;
15+
attributes: HTMLAttributes<'img'>;
1616
};
1717
1818
const props = Astro.props;

0 commit comments

Comments
 (0)