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

registryItemSchema

const registryItemSchema: z.ZodDiscriminatedUnion<"type", [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">>;
}
& {
type: z.ZodLiteral<"registry:base">;
config: z.ZodOptional<z.ZodObject<{
tailwind: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {
config?: string | undefined;
css?: string | undefined;
baseColor?: string | undefined;
cssVariables?: boolean | undefined;
prefix?: string | undefined;
}
, {
config?: string | undefined;
css?: string | undefined;
baseColor?: string | undefined;
cssVariables?: boolean | undefined;
prefix?: string | undefined;
}
>
>
;
menuColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodEnum<["default", "inverted"]>>>>;
menuAccent: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodEnum<["subtle", "bold"]>>>>;
aliases: z.ZodOptional<z.ZodObject<{
components: z.ZodOptional<z.ZodString>;
}
, "strip", z.ZodTypeAny, {
components?: string | undefined;
ui?: string | undefined;
utils?: string | undefined;
lib?: string | undefined;
hooks?: string | undefined;
}
, {
components?: string | undefined;
ui?: string | undefined;
utils?: string | undefined;
lib?: string | undefined;
hooks?: string | undefined;
}
>
>
;
registries: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
url: z.ZodEffects<z.ZodString, string, string>;
}
, "strip", z.ZodTypeAny, {
url: string;
params?: Record<string, string> | undefined;
headers?: Record<string, string> | undefined;
}
, {
url: string;
params?: Record<string, string> | undefined;
headers?: Record<string, string> | undefined;
}
>
]
>
>
>
>
;
}
, "strict", z.ZodTypeAny, {
tailwind?: {
config?: string | undefined;
css?: string | undefined;
baseColor?: string | undefined;
cssVariables?: boolean | undefined;
prefix?: string | undefined;
}
| undefined;
$schema?: string | undefined;
style?: string | undefined;
rsc?: boolean | undefined;
tsx?: boolean | undefined;
iconLibrary?: string | undefined;
rtl?: boolean | undefined;
menuColor?: "default" | "inverted" | undefined;
menuAccent?: "bold" | "subtle" | undefined;
aliases?: {
components?: string | undefined;
ui?: string | undefined;
utils?: string | undefined;
lib?: string | undefined;
hooks?: string | undefined;
}
| undefined;
registries?: Record<string, string | {
url: string;
params?: Record<string, string> | undefined;
headers?: Record<string, string> | undefined;
}
>
| undefined;
}
, {
tailwind?: {
config?: string | undefined;
css?: string | undefined;
baseColor?: string | undefined;
cssVariables?: boolean | undefined;
prefix?: string | undefined;
}
| undefined;
$schema?: string | undefined;
style?: string | undefined;
rsc?: boolean | undefined;
tsx?: boolean | undefined;
iconLibrary?: string | undefined;
rtl?: boolean | undefined;
menuColor?: "default" | "inverted" | undefined;
menuAccent?: "bold" | "subtle" | undefined;
aliases?: {
components?: string | undefined;
ui?: string | undefined;
utils?: string | undefined;
lib?: string | undefined;
hooks?: string | undefined;
}
| undefined;
registries?: Record<string, string | {
url: string;
params?: Record<string, string> | undefined;
headers?: Record<string, string> | undefined;
}
>
| undefined;
}
>
>
;
}
, "strip", z.ZodTypeAny, {
type: "registry:base";
name: string;
tailwind?: {
config?: {
content?: string[] | undefined;
theme?: Record<string, any> | undefined;
plugins?: string[] | undefined;
}
| undefined;
}
| undefined;
docs?: string | undefined;
$schema?: string | undefined;
config?: {
tailwind?: {
config?: string | undefined;
css?: string | undefined;
baseColor?: string | undefined;
cssVariables?: boolean | undefined;
prefix?: string | undefined;
}
| undefined;
$schema?: string | undefined;
style?: string | undefined;
rsc?: boolean | undefined;
tsx?: boolean | undefined;
iconLibrary?: string | undefined;
rtl?: boolean | undefined;
menuColor?: "default" | "inverted" | undefined;
menuAccent?: "bold" | "subtle" | undefined;
aliases?: {
components?: string | undefined;
ui?: string | undefined;
utils?: string | undefined;
lib?: string | undefined;
hooks?: string | undefined;
}
| undefined;
registries?: Record<string, string | {
url: string;
params?: Record<string, string> | undefined;
headers?: Record<string, string> | undefined;
}
>
| undefined;
}
| 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;
}
, {
type: "registry:base";
name: string;
tailwind?: {
config?: {
content?: string[] | undefined;
theme?: Record<string, any> | undefined;
plugins?: string[] | undefined;
}
| undefined;
}
| undefined;
docs?: string | undefined;
$schema?: string | undefined;
config?: {
tailwind?: {
config?: string | undefined;
css?: string | undefined;
baseColor?: string | undefined;
cssVariables?: boolean | undefined;
prefix?: string | undefined;
}
| undefined;
$schema?: string | undefined;
style?: string | undefined;
rsc?: boolean | undefined;
tsx?: boolean | undefined;
iconLibrary?: string | undefined;
rtl?: boolean | undefined;
menuColor?: "default" | "inverted" | undefined;
menuAccent?: "bold" | "subtle" | undefined;
aliases?: {
components?: string | undefined;
ui?: string | undefined;
utils?: string | undefined;
lib?: string | undefined;
hooks?: string | undefined;
}
| undefined;
registries?: Record<string, string | {
url: string;
params?: Record<string, string> | undefined;
headers?: Record<string, string> | undefined;
}
>
| undefined;
}
| 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;
}
>
, 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">>;
}
& {
type: z.ZodLiteral<"registry:font">;
font: z.ZodObject<{
family: z.ZodString;
provider: z.ZodLiteral<"google">;
import: z.ZodString;
variable: z.ZodString;
subsets: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}
, "strip", z.ZodTypeAny, {
family: string;
provider: "google";
import: string;
variable: string;
weight?: string[] | undefined;
subsets?: string[] | undefined;
selector?: string | undefined;
}
, {
family: string;
provider: "google";
import: string;
variable: string;
weight?: string[] | undefined;
subsets?: string[] | undefined;
selector?: string | undefined;
}
>
;
}
, "strip", z.ZodTypeAny, {
type: "registry:font";
name: string;
font: {
family: string;
provider: "google";
import: string;
variable: string;
weight?: string[] | undefined;
subsets?: string[] | undefined;
selector?: string | undefined;
}
;
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;
}
, {
type: "registry:font";
name: string;
font: {
family: string;
provider: "google";
import: string;
variable: string;
weight?: string[] | undefined;
subsets?: string[] | undefined;
selector?: string | undefined;
}
;
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;
}
>
, 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">>;
}
& {
type: z.ZodEnum<["registry:lib", "registry:block", "registry:component", "registry:ui", "registry:hook", "registry:page", "registry:file", "registry:theme", "registry:style", "registry:item", "registry:example", "registry:internal"]>;
}
, "strip", z.ZodTypeAny, {
type:
| "registry:lib"
| "registry:block"
| "registry:component"
| "registry:ui"
| "registry:hook"
| "registry:page"
| "registry:file"
| "registry:theme"
| "registry:style"
| "registry:item"
| "registry:example"
| "registry:internal";
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;
}
, {
type:
| "registry:lib"
| "registry:block"
| "registry:component"
| "registry:ui"
| "registry:hook"
| "registry:page"
| "registry:file"
| "registry:theme"
| "registry:style"
| "registry:item"
| "registry:example"
| "registry:internal";
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;
}
>
]
>
;