mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-07-08 14:35:09 +00:00
19 lines
462 B
TypeScript
19 lines
462 B
TypeScript
import { z } from "zod"
|
|
|
|
export const registrySchema = z.array(
|
|
z.object({
|
|
name: z.string(),
|
|
dependencies: z.array(z.string()).optional(),
|
|
devDependencies: 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>
|