form-next-demo-schema.ts — ui Source File
Architecture documentation for form-next-demo-schema.ts, a typescript file in the ui codebase. 1 imports, 2 dependents.
Entity Profile
Dependency Diagram
graph LR 40d9dad0_1a0e_66b8_2f97_7511168d16e4["form-next-demo-schema.ts"] 6802ce19_522d_e5fb_e458_8826d9f6952e["zod"] 40d9dad0_1a0e_66b8_2f97_7511168d16e4 --> 6802ce19_522d_e5fb_e458_8826d9f6952e ef956916_247d_d591_7cc9_ba24c57b1db9["form-next-demo-action.ts"] ef956916_247d_d591_7cc9_ba24c57b1db9 --> 40d9dad0_1a0e_66b8_2f97_7511168d16e4 5a2a9796_4841_6983_1ce8_67073c663d48["form-next-demo.tsx"] 5a2a9796_4841_6983_1ce8_67073c663d48 --> 40d9dad0_1a0e_66b8_2f97_7511168d16e4 style 40d9dad0_1a0e_66b8_2f97_7511168d16e4 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { z } from "zod"
export const formSchema = z.object({
title: z
.string()
.min(5, "Bug title must be at least 5 characters.")
.max(32, "Bug title must be at most 32 characters."),
description: z
.string()
.min(20, "Description must be at least 20 characters.")
.max(100, "Description must be at most 100 characters."),
})
export type FormState = {
values: z.infer<typeof formSchema>
errors: null | Partial<Record<keyof z.infer<typeof formSchema>, string[]>>
success: boolean
}
Domain
Types
Dependencies
- zod
Imported By
Source
Frequently Asked Questions
What does form-next-demo-schema.ts do?
form-next-demo-schema.ts is a source file in the ui codebase, written in typescript. It belongs to the ComponentRegistry domain.
What does form-next-demo-schema.ts depend on?
form-next-demo-schema.ts imports 1 module(s): zod.
What files import form-next-demo-schema.ts?
form-next-demo-schema.ts is imported by 2 file(s): form-next-demo-action.ts, form-next-demo.tsx.
Where is form-next-demo-schema.ts in the architecture?
form-next-demo-schema.ts is located at apps/v4/registry/new-york-v4/examples/form-next-demo-schema.ts (domain: ComponentRegistry, directory: apps/v4/registry/new-york-v4/examples).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free