mix rpc.gen.ts (elixir_ts_rpc v0.0.1)

Copy Markdown View Source

Generates a TypeScript client file directly from an RPC router module.

Usage

mix rpc.gen.ts --router MyApp.Router --out path/to/rpc.gen.ts

Options

  • --router - (required) the fully-qualified router module name
  • --out - (required) the output path for the generated TypeScript file
  • --client-import - the import specifier for the client package (default: "@elixir-ts-rpc/client")