Converts TypeScript to JSON-schema