type ImagePng = (typeof import("*.png"))["default"];
type ImageJpg = (typeof import("*.jpg"))["default"];
type ImageJpeg = (typeof import("*.jpeg"))["default"];
type ImageImport = ImagePng | ImageJpg | ImageJpeg;
// Manually set the type of the schema to avoid TS inferring `ImageImport` and `Position`
// We want `ImageImport` to retain its original type using `import` calls
type ZodImageObject = z.ZodObject<{
src: z.ZodType<ImageImport>;
alt: z.ZodString;
}>;
export const ambassadorImageSchema: ZodImageObject = z.object({
src: z.custom<ImageImport>(),
alt: z.string(),
});
type ImagePng = (typeof import("*.png"))["default"];
type ImageJpg = (typeof import("*.jpg"))["default"];
type ImageJpeg = (typeof import("*.jpeg"))["default"];
type ImageImport = ImagePng | ImageJpg | ImageJpeg;
// Manually set the type of the schema to avoid TS inferring `ImageImport` and `Position`
// We want `ImageImport` to retain its original type using `import` calls
type ZodImageObject = z.ZodObject<{
src: z.ZodType<ImageImport>;
alt: z.ZodString;
}>;
export const ambassadorImageSchema: ZodImageObject = z.object({
src: z.custom<ImageImport>(),
alt: z.string(),
});