Generator
View SourceAshRpc ships with a generator that produces TypeScript declarations for your tRPC router and optionally Zod schemas for inputs.
Basic usage:
mix ash_rpc.codegen --output=./frontend/generatedAlso generate Zod schemas:
mix ash_rpc.codegen --output=./frontend/generated --zodOptions
--output(required): Output directory fortrpc.d.tsandtrpc.zod.ts--domains(optional): Comma/space-separated domain modules; if omitted, we auto-detect from a module usingAshRpc.Router
The generated trpc.d.ts contains procedure signatures for queries and mutations inferred from
your Ash resources, plus advanced types for filtering, sorting, selecting fields, pagination,
and nested loads.