Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

registryItemCommonSchema

const registryItemCommonSchema: z.ZodObject<{
name: 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;
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;
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"]>;
}
, "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<{
content: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
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;
}
>
>
;
}
, "strip", z.ZodTypeAny, {
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<{}, "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;
}
>
>
;
categories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}
, "strip", z.ZodTypeAny, {
name: string;
tailwind?: {
config?: {
content?: string[] | undefined;
theme?: Record<string, any> | undefined;
plugins?: string[] | undefined;
}
| 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?: {
content?: string[] | undefined;
theme?: Record<string, any> | undefined;
plugins?: string[] | undefined;
}
| 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;
}
>
;