I've been defining TypeScript interfaces for all of the types and data structures in my app, and will shortly face the task of replicating most of the data structures as Mongoose schema definitions.
I was wondering if not someone has cooked up a solution to auto-generate one from the other?
I'd like to avoid the burden of maintaining two copies of what is essentially the same thing.