mix ash_rpc.codegen (ash_rpc v0.1.3)

View Source

Generate a minimal TypeScript declaration for the Ash RPC router.

mix ash_rpc.codegen --output=./frontend/generated

Options: --output - directory to write trpc.d.ts (required) --domains - comma-separated domain modules (optional)

If --domains is not provided, tries to locate modules that expose domains/0 (i.e. modules using AshRpc.Router) and uses those.