@chanx-js/codegen
v0.1.2
Published
Generate TypeScript channel descriptors and message types from a chanx AsyncAPI 3 schema.
Maintainers
Readme
@chanx-js/codegen
Generate typed channel descriptors for the @chanx-js/client
WebSocket client from a chanx AsyncAPI 3 schema.
npx @chanx-js/codegen http://localhost:8000/asyncapi.json -o src/generated- TypeScript output by default, or JavaScript with
.d.tsvia--emit js. - Optional zod validators with
--validation zod. - Reuse types you already have with
--reuse-from, and check they still match the schema with--reuse-strict.
MIT licensed.
