Fix typescript interface
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
import type { HTMLAttributes } from 'astro/types';
|
||||||
import { findImage } from '~/utils/images';
|
import { findImage } from '~/utils/images';
|
||||||
import {
|
import {
|
||||||
getImagesOptimized,
|
getImagesOptimized,
|
||||||
@@ -6,13 +7,12 @@ import {
|
|||||||
unpicOptimizer,
|
unpicOptimizer,
|
||||||
isUnpicCompatible,
|
isUnpicCompatible,
|
||||||
type ImageProps,
|
type ImageProps,
|
||||||
type AttributesProps,
|
|
||||||
} from '~/utils/images-optimization';
|
} from '~/utils/images-optimization';
|
||||||
|
|
||||||
type Props = ImageProps;
|
type Props = ImageProps;
|
||||||
type ImageType = {
|
type ImageType = {
|
||||||
src: string;
|
src: string;
|
||||||
attributes: AttributesProps;
|
attributes: HTMLAttributes<'img'>;
|
||||||
};
|
};
|
||||||
|
|
||||||
const props = Astro.props;
|
const props = Astro.props;
|
||||||
|
Reference in New Issue
Block a user