Generate TS types from schema


We are currently migrating from JS to TS in our Parse Server GraphQL custom resolvers and Cloud code using @types/parse and I would like to know if there’s any way to generate typescript interfaces from our Parse Schema to benefit from class types ? I know that is not really related to Parse as it is written in JS but if you guys have any idea on how to do it this can help us. I was thinking of schema parser.

Thank you!

I am not aware of any existing tool but I believe that a lib to do that would be very helpful for Parse ecosystem.

Hi, thank for you answer.

I found this repo GitHub - open-inc/parse-server-schema that does exactly what I want)
It transforms a Parse Schema into TS types. I think that a lot can be added to.