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.
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.