Hacker News new | ask | show | jobs
by dpeckett 542 days ago
Now that's an interesting thought, I wonder if you could use a modified subset of TypeScript to create a IDL/DDL for JSON-RPC. Then compile that schema into implementations for various target languages.
2 comments

Typia kinda does this, but currently only has a Typescript -> Typescript compiler.
Yeah that's what I'd look into. Maybe TS -> Json Schema -> target language.