> It is considered essential that JSON schema is expressible as JSON
Why? It's not a particularly difficult task to write a parser that could convert between the two representations. The TypeScript compiler even provides an API that lets you access its AST.