Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteAppRouter ¶
WriteAppRouter writes the complete TypeScript AppRouter file given pre-converted procedure entries and interface definitions. Used by both static analysis (Generate) and runtime reflection (GenerateTS).
func WriteEnums ¶ added in v0.10.7
WriteEnums writes runtime `as const` objects for named string enum unions. Numeric unions are skipped because the analyzer does not retain const names.
Types ¶
type EmitPlan ¶
type EmitPlan struct {
Order []string // type names in dependency order (leaves first)
Cycles map[string]map[string]bool // parentType → set of field type names needing getter syntax
}
EmitPlan holds the topological order and cycle information for Zod emission.
type GenerateResult ¶
GenerateResult holds the output of a generation pass, allowing the caller to also generate Zod schemas from the same data.
Click to show internal directories.
Click to hide internal directories.