TypeScript-Node-Starter
TypeScript-Node-Starter copied to clipboard
Migration to Typegoose
I won't go over all of typegoose's selling points here (feel free to do so yourself) however the biggest benefit it offers is the ability to not have to duplicate your type definitions for typescript and mongoose (by writing classes or interfaces and schema definitions respectively). In a nutshell, through usage of decorators typegoose generates mongoose schemas for us.
Taking the above into consideration, who is in favor of updating TypeScript-Node-Starter to use typegoose?
The upgrade is simple with the most noticeable difference lying in src/models/User.ts as can be seen in the following diff (other file changes are mostly unrelated).
Given that #218 seems to be popular, I don't think this is gonna fly for the same reasons. The project seems to position itself as a "starter", not as "boilerplate". In latter case I agree, the suggestion would make perfect sense.