Astro asset types:
interface ImageMetadata {
src: string;
width: number;
height: number;
format: InputFormat;
}
type InputFormat = "avif" | "png" | "webp" | "jpeg" | "jpg" | "svg" | "tiff" | "gif"
Astro content types:
// This needs to be in sync with ImageMetadata
export type ImageFunction = () => import('astro/zod').ZodObject<{
src: import('astro/zod').ZodString;
width: import('astro/zod').ZodNumber;
height: import('astro/zod').ZodNumber;
format: import('astro/zod').ZodUnion<
[
import('astro/zod').ZodLiteral<'png'>,
import('astro/zod').ZodLiteral<'jpg'>,
import('astro/zod').ZodLiteral<'jpeg'>,
import('astro/zod').ZodLiteral<'tiff'>,
import('astro/zod').ZodLiteral<'webp'>,
import('astro/zod').ZodLiteral<'gif'>,
import('astro/zod').ZodLiteral<'svg'>,
]
>;
}>;
Since I use @astrojs/check, it breaks my build. I've regenerated my content types, but the problem persists
Open a New Issue