Hacker News new | past | comments | ask | show | jobs | submit login

Because json-schema is language agnostic. You can have a schema that can be shared between servers/clients with different languages. If you want to do it the TypeScript way, then you can generate the types from json-schema (probably via an automated tool)



json is also based on javascript, but language agnostic. You could also specify a subset of typescript, just like json is a subset of javascript.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: