mongodb-js / mongoose-autopopulate

Always populate() certain fields in your mongoose schemas
Apache License 2.0
221 stars 36 forks source link

feat: add native type definitions #92

Closed TheVaan closed 2 years ago

TheVaan commented 2 years ago

This PR solves #91.

Mongoose provides native type definitions (since 5.11). When using TypeScript and mongoose-autopopulate you have to install @types/mongoose-autopopulate which has dependencies to @types/mongoose. This is not compatible to mongoose >= 5.11. Using native type definitions solves the compatibility issue.