Skip to content

Commit

Permalink
feat: support for mongoose@7.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bangbang93 committed Mar 6, 2023
1 parent bd56547 commit 8536c51
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"decrator"
],
"peerDependencies": {
"mongoose": "^6.2.1"
"mongoose": "^6.2.1 || ^7.0.0"
},
"devDependencies": {
"@types/mocha": "^5.2.5",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export function forNestModule<T extends IMongooseClass>(modelClass: T): {name: s
}
}

function buildSchema(meta: MongooseMeta): Schema {
function buildSchema<T>(meta: MongooseMeta): Schema<T> {
const schema = new Schema(meta.schema, meta.options)

Object.keys(meta.statics)
Expand Down

0 comments on commit 8536c51

Please sign in to comment.