mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-07-01 00:24:20 +00:00
18 lines
410 B
TypeScript
18 lines
410 B
TypeScript
import * as z from "zod"
|
|
|
|
export const registrySchema = z.array(
|
|
z.object({
|
|
name: z.string(),
|
|
dependencies: z.array(z.string()).optional(),
|
|
registryDependencies: z.array(z.string()).optional(),
|
|
files: z.array(z.string()),
|
|
type: z.enum([
|
|
"components:ui",
|
|
"components:component",
|
|
"components:example",
|
|
]),
|
|
})
|
|
)
|
|
|
|
export type Registry = z.infer<typeof registrySchema>
|