prax-typegen
Generate TypeScript interfaces and Zod schemas from Prax ORM schema files.
This crate reads .prax schema files and produces TypeScript output that
mirrors the models, enums, and composite types defined in the schema.
Generator Block
Add a generator block to your .prax schema:
generator typescript {
provider = "prax-typegen"
output = "./src/types"
generate = env("TYPESCRIPT_GENERATE")
}
When TYPESCRIPT_GENERATE is set to true, 1, or yes in the
environment, prax generate will invoke this generator.