#ts-codegen
Minimal TypeScript Telepact example that shows both the generated client and the generated server bindings wired into the runtime library.
Browse the files:
api/greet.telepact.yaml- Telepact schemagen/genTypes.ts- committed generated bindingsserver.ts- generated server handler wired into Telepacttest_example.ts- generated client wired into TelepactMakefile- local run target, including codegen
Run it:
make runThe committed generated bindings also type-check in strict modern ESM setups without special compiler concessions:
npm run build
npm run build:bundler