zod latest

This commit is contained in:
lovebird 2025-04-23 20:02:01 +02:00
parent 8e0723ce9f
commit 14189a7e7a
3 changed files with 225 additions and 220 deletions

View File

@ -1,4 +1,9 @@
import { z } from "zod";
export declare const find_items: (nodes: string[], options: any) => {
rel: any;
path: any;
config: any;
}[];
export declare const get: (src: any, root: any, type: any) => IComponentNode[];
export declare const UrlSchema: z.ZodEffects<z.ZodString, string, string>;
export declare const ExifSchema: z.ZodObject<{
@ -33,10 +38,10 @@ export declare const ImageMetaSchema: z.ZodObject<{
orientation: z.ZodNumber;
exif: z.ZodAny;
}, "strip", z.ZodTypeAny, {
height?: number;
width?: number;
exif?: any;
format?: string;
width?: number;
height?: number;
space?: string;
channels?: number;
depth?: string;
@ -48,10 +53,10 @@ export declare const ImageMetaSchema: z.ZodObject<{
hasAlpha?: boolean;
orientation?: number;
}, {
height?: number;
width?: number;
exif?: any;
format?: string;
width?: number;
height?: number;
space?: string;
channels?: number;
depth?: string;
@ -71,15 +76,15 @@ export declare const CADMetaSchema: z.ZodObject<{
model: z.ZodOptional<z.ZodString>;
html: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
file?: string;
name?: string;
file?: string;
configuration?: string;
step?: string;
model?: string;
html?: string;
}, {
file?: string;
name?: string;
file?: string;
configuration?: string;
step?: string;
model?: string;
@ -148,14 +153,6 @@ export declare const AssetImageSchema: z.ZodObject<{
gps?: any;
}>>;
}, "strip", z.ZodTypeAny, {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string;
url?: string;
thumb?: string;
@ -165,16 +162,16 @@ export declare const AssetImageSchema: z.ZodObject<{
description?: string;
alt?: string;
title?: string;
height?: number;
width?: number;
order?: number;
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
}, {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string;
url?: string;
thumb?: string;
@ -184,7 +181,15 @@ export declare const AssetImageSchema: z.ZodObject<{
description?: string;
alt?: string;
title?: string;
height?: number;
width?: number;
order?: number;
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
}>;
export declare const GalleryConfig: z.ZodObject<{
glob: z.ZodArray<z.ZodString, "many">;
@ -220,21 +225,21 @@ export declare const ContentSchema: z.ZodObject<{
readme: z.ZodOptional<z.ZodString>;
shared: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
resources?: string;
body?: string;
features?: string;
highlights?: string;
specs?: string;
license?: string;
resources?: string;
readme?: string;
shared?: string;
}, {
resources?: string;
body?: string;
features?: string;
highlights?: string;
specs?: string;
license?: string;
resources?: string;
readme?: string;
shared?: string;
}>;
@ -288,14 +293,6 @@ export declare const AssetsSchema: z.ZodObject<{
gps?: any;
}>>;
}, "strip", z.ZodTypeAny, {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string;
url?: string;
thumb?: string;
@ -305,16 +302,16 @@ export declare const AssetsSchema: z.ZodObject<{
description?: string;
alt?: string;
title?: string;
height?: number;
width?: number;
order?: number;
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
}, {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string;
url?: string;
thumb?: string;
@ -324,7 +321,15 @@ export declare const AssetsSchema: z.ZodObject<{
description?: string;
alt?: string;
title?: string;
height?: number;
width?: number;
order?: number;
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
}>, "many">>;
renderings: z.ZodOptional<z.ZodArray<z.ZodObject<{
name: z.ZodOptional<z.ZodString>;
@ -356,14 +361,6 @@ export declare const AssetsSchema: z.ZodObject<{
gps?: any;
}>>;
}, "strip", z.ZodTypeAny, {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string;
url?: string;
thumb?: string;
@ -373,16 +370,16 @@ export declare const AssetsSchema: z.ZodObject<{
description?: string;
alt?: string;
title?: string;
height?: number;
width?: number;
order?: number;
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
}, {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string;
url?: string;
thumb?: string;
@ -392,7 +389,15 @@ export declare const AssetsSchema: z.ZodObject<{
description?: string;
alt?: string;
title?: string;
height?: number;
width?: number;
order?: number;
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
}>, "many">>;
components: z.ZodOptional<z.ZodArray<z.ZodObject<{
name: z.ZodOptional<z.ZodString>;
@ -424,14 +429,6 @@ export declare const AssetsSchema: z.ZodObject<{
gps?: any;
}>>;
}, "strip", z.ZodTypeAny, {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string;
url?: string;
thumb?: string;
@ -441,16 +438,16 @@ export declare const AssetsSchema: z.ZodObject<{
description?: string;
alt?: string;
title?: string;
height?: number;
width?: number;
order?: number;
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
}, {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string;
url?: string;
thumb?: string;
@ -460,7 +457,15 @@ export declare const AssetsSchema: z.ZodObject<{
description?: string;
alt?: string;
title?: string;
height?: number;
width?: number;
order?: number;
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
}>, "many">>;
configurations: z.ZodOptional<z.ZodArray<z.ZodObject<{
name: z.ZodOptional<z.ZodString>;
@ -492,14 +497,6 @@ export declare const AssetsSchema: z.ZodObject<{
gps?: any;
}>>;
}, "strip", z.ZodTypeAny, {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string;
url?: string;
thumb?: string;
@ -509,16 +506,16 @@ export declare const AssetsSchema: z.ZodObject<{
description?: string;
alt?: string;
title?: string;
height?: number;
width?: number;
order?: number;
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
}, {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string;
url?: string;
thumb?: string;
@ -528,7 +525,15 @@ export declare const AssetsSchema: z.ZodObject<{
description?: string;
alt?: string;
title?: string;
height?: number;
width?: number;
order?: number;
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
}>, "many">>;
showcase: z.ZodOptional<z.ZodArray<z.ZodObject<{
name: z.ZodOptional<z.ZodString>;
@ -560,14 +565,6 @@ export declare const AssetsSchema: z.ZodObject<{
gps?: any;
}>>;
}, "strip", z.ZodTypeAny, {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string;
url?: string;
thumb?: string;
@ -577,16 +574,16 @@ export declare const AssetsSchema: z.ZodObject<{
description?: string;
alt?: string;
title?: string;
height?: number;
width?: number;
order?: number;
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
}, {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string;
url?: string;
thumb?: string;
@ -596,7 +593,15 @@ export declare const AssetsSchema: z.ZodObject<{
description?: string;
alt?: string;
title?: string;
height?: number;
width?: number;
order?: number;
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
}>, "many">>;
samples: z.ZodOptional<z.ZodArray<z.ZodObject<{
name: z.ZodOptional<z.ZodString>;
@ -628,14 +633,6 @@ export declare const AssetsSchema: z.ZodObject<{
gps?: any;
}>>;
}, "strip", z.ZodTypeAny, {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string;
url?: string;
thumb?: string;
@ -645,16 +642,16 @@ export declare const AssetsSchema: z.ZodObject<{
description?: string;
alt?: string;
title?: string;
height?: number;
width?: number;
order?: number;
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
}, {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string;
url?: string;
thumb?: string;
@ -664,18 +661,18 @@ export declare const AssetsSchema: z.ZodObject<{
description?: string;
alt?: string;
title?: string;
height?: number;
width?: number;
order?: number;
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
}>, "many">>;
}, "strip", z.ZodTypeAny, {
gallery?: {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string;
url?: string;
thumb?: string;
@ -685,17 +682,17 @@ export declare const AssetsSchema: z.ZodObject<{
description?: string;
alt?: string;
title?: string;
height?: number;
width?: number;
order?: number;
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
}[];
renderings?: {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string;
url?: string;
thumb?: string;
@ -705,17 +702,17 @@ export declare const AssetsSchema: z.ZodObject<{
description?: string;
alt?: string;
title?: string;
height?: number;
width?: number;
order?: number;
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
}[];
components?: {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string;
url?: string;
thumb?: string;
@ -725,17 +722,17 @@ export declare const AssetsSchema: z.ZodObject<{
description?: string;
alt?: string;
title?: string;
height?: number;
width?: number;
order?: number;
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
}[];
configurations?: {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string;
url?: string;
thumb?: string;
@ -745,17 +742,17 @@ export declare const AssetsSchema: z.ZodObject<{
description?: string;
alt?: string;
title?: string;
height?: number;
width?: number;
order?: number;
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
}[];
showcase?: {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string;
url?: string;
thumb?: string;
@ -765,17 +762,17 @@ export declare const AssetsSchema: z.ZodObject<{
description?: string;
alt?: string;
title?: string;
height?: number;
width?: number;
order?: number;
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
}[];
samples?: {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string;
url?: string;
thumb?: string;
@ -785,18 +782,18 @@ export declare const AssetsSchema: z.ZodObject<{
description?: string;
alt?: string;
title?: string;
height?: number;
width?: number;
order?: number;
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
}[];
}, {
gallery?: {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string;
url?: string;
thumb?: string;
@ -806,17 +803,17 @@ export declare const AssetsSchema: z.ZodObject<{
description?: string;
alt?: string;
title?: string;
height?: number;
width?: number;
order?: number;
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
}[];
renderings?: {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string;
url?: string;
thumb?: string;
@ -826,17 +823,17 @@ export declare const AssetsSchema: z.ZodObject<{
description?: string;
alt?: string;
title?: string;
height?: number;
width?: number;
order?: number;
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
}[];
components?: {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string;
url?: string;
thumb?: string;
@ -846,17 +843,17 @@ export declare const AssetsSchema: z.ZodObject<{
description?: string;
alt?: string;
title?: string;
height?: number;
width?: number;
order?: number;
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
}[];
configurations?: {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string;
url?: string;
thumb?: string;
@ -866,17 +863,17 @@ export declare const AssetsSchema: z.ZodObject<{
description?: string;
alt?: string;
title?: string;
height?: number;
width?: number;
order?: number;
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
}[];
showcase?: {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string;
url?: string;
thumb?: string;
@ -886,17 +883,17 @@ export declare const AssetsSchema: z.ZodObject<{
description?: string;
alt?: string;
title?: string;
height?: number;
width?: number;
order?: number;
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
}[];
samples?: {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string;
url?: string;
thumb?: string;
@ -906,7 +903,15 @@ export declare const AssetsSchema: z.ZodObject<{
description?: string;
alt?: string;
title?: string;
height?: number;
width?: number;
order?: number;
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
}[];
}>;
export declare const ProductionSchema: z.ZodObject<{

File diff suppressed because one or more lines are too long

View File

@ -75,8 +75,8 @@
"tslog": "^3.3.3",
"tsup": "^2.0.3",
"yargs": "^17.7.2",
"zod": "^3.24.2",
"zod-to-json-schema": "^3.24.1",
"zod": "^3.24.3",
"zod-to-json-schema": "^3.24.5",
"zod-to-ts": "^1.2.0"
},
"devDependencies": {