There is a server written in Java and a client in TypeScript. The server communicates with the client using JSON. The server for generating JSON uses the gson library and, accordingly, a set of Java classes is used to describe the package structure.
Now I need to duplicate this structure in TypeScript. Now we have to keep two independent type descriptions. Maybe there is some kind of converter that will convert Java classes to TypeScript interfaces? Or vice versa TypeScript in Java.
Even the utility of converting something in Java and TypeScript will arrange