registryItemCommonSchema
const registryItemCommonSchema: z.ZodObject<{
$schema: z.ZodOptional<z.ZodString>;
extends: z.ZodOptional<z.ZodString>;
name: z.ZodString;
title: z.ZodOptional<z.ZodString>;
author: z.ZodOptional<z.ZodString>;
description: z.ZodOptional<z.ZodString>;
dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
devDependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
registryDependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
files: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
path: z.ZodString;
content: z.ZodOptional<z.ZodString>;
type: z.ZodEnum<["registry:file", "registry:page"]>;
target: z.ZodString;
}, "strip", z.ZodTypeAny, {path: string;
type: "registry:page" | "registry:file";
target: string;
content?: string | undefined;
}, {path: string;
type: "registry:page" | "registry:file";
target: string;
content?: string | undefined;
}>, z.ZodObject<{path: z.ZodString;
content: z.ZodOptional<z.ZodString>;
type: z.ZodEnum<["registry:lib", "registry:block", "registry:component", "registry:ui", "registry:hook", "registry:theme", "registry:style", "registry:item", "registry:base", "registry:font", "registry:example", "registry:internal"]>;
target: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {path: string;
type:
| "registry:lib"
| "registry:block"
| "registry:component"
| "registry:ui"
| "registry:hook"
| "registry:theme"
| "registry:style"
| "registry:item"
| "registry:base"
| "registry:font"
| "registry:example"
| "registry:internal";
content?: string | undefined;
target?: string | undefined;
}, {path: string;
type:
| "registry:lib"
| "registry:block"
| "registry:component"
| "registry:ui"
| "registry:hook"
| "registry:theme"
| "registry:style"
| "registry:item"
| "registry:base"
| "registry:font"
| "registry:example"
| "registry:internal";
content?: string | undefined;
target?: string | undefined;
}>]>, "many">>; tailwind: z.ZodOptional<z.ZodObject<{
config: z.ZodOptional<z.ZodObject<{
}, "strip", z.ZodTypeAny, {content: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
theme: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
plugins: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {content?: string[] | undefined;
theme?: Record<string, any> | undefined;
plugins?: string[] | undefined;
}, {content?: string[] | undefined;
theme?: Record<string, any> | undefined;
plugins?: string[] | undefined;
}>>; config?: {
}, {content?: string[] | undefined;
theme?: Record<string, any> | undefined;
plugins?: string[] | undefined;
} | undefined; config?: {
}>>; content?: string[] | undefined;
theme?: Record<string, any> | undefined;
plugins?: string[] | undefined;
} | undefined; cssVars: z.ZodOptional<z.ZodObject<{
theme: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
light: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
dark: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
}, "strip", z.ZodTypeAny, {theme?: Record<string, string> | undefined;
light?: Record<string, string> | undefined;
dark?: Record<string, string> | undefined;
}, {theme?: Record<string, string> | undefined;
light?: Record<string, string> | undefined;
dark?: Record<string, string> | undefined;
}>>; css: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<any, z.ZodTypeDef, any>>>;
envVars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
docs: z.ZodOptional<z.ZodString>;
categories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {name: string;
tailwind?: {
config?: {
} | undefined; content?: string[] | undefined;
theme?: Record<string, any> | undefined;
plugins?: string[] | undefined;
} | undefined; docs?: string | undefined;
$schema?: string | undefined;
css?: Record<string, any> | undefined;
extends?: string | undefined;
title?: string | undefined;
author?: string | undefined;
description?: string | undefined;
dependencies?: string[] | undefined;
devDependencies?: string[] | undefined;
registryDependencies?: string[] | undefined;
files?: ({
path: string;
type: "registry:page" | "registry:file";
target: string;
content?: string | undefined;
} | {path: string;
type:
| "registry:lib"
| "registry:block"
| "registry:component"
| "registry:ui"
| "registry:hook"
| "registry:theme"
| "registry:style"
| "registry:item"
| "registry:base"
| "registry:font"
| "registry:example"
| "registry:internal";
content?: string | undefined;
target?: string | undefined;
})[] | undefined; cssVars?: {
theme?: Record<string, string> | undefined;
light?: Record<string, string> | undefined;
dark?: Record<string, string> | undefined;
} | undefined; envVars?: Record<string, string> | undefined;
meta?: Record<string, any> | undefined;
categories?: string[] | undefined;
}, {name: string;
tailwind?: {
config?: {
} | undefined; content?: string[] | undefined;
theme?: Record<string, any> | undefined;
plugins?: string[] | undefined;
} | undefined; docs?: string | undefined;
$schema?: string | undefined;
css?: Record<string, any> | undefined;
extends?: string | undefined;
title?: string | undefined;
author?: string | undefined;
description?: string | undefined;
dependencies?: string[] | undefined;
devDependencies?: string[] | undefined;
registryDependencies?: string[] | undefined;
files?: ({
path: string;
type: "registry:page" | "registry:file";
target: string;
content?: string | undefined;
} | {path: string;
type:
| "registry:lib"
| "registry:block"
| "registry:component"
| "registry:ui"
| "registry:hook"
| "registry:theme"
| "registry:style"
| "registry:item"
| "registry:base"
| "registry:font"
| "registry:example"
| "registry:internal";
content?: string | undefined;
target?: string | undefined;
})[] | undefined; cssVars?: {
theme?: Record<string, string> | undefined;
light?: Record<string, string> | undefined;
dark?: Record<string, string> | undefined;
} | undefined; envVars?: Record<string, string> | undefined;
meta?: Record<string, any> | undefined;
categories?: string[] | undefined;
}>;