Skip to content
This repository has been archived by the owner on Jun 29, 2021. It is now read-only.

Commit

Permalink
#276 Add a note to InstanceType
Browse files Browse the repository at this point in the history
#276 Add a note to InstanceType
  • Loading branch information
hasezoey authored and Ben305 committed Jun 6, 2019
1 parent 633f052 commit 6a52a02
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,8 @@ Some additional types were added to make Typegoose more user friendly.
This is basically the logical 'and' of the `T` and the `mongoose.Document`, so that both the Mongoose instance properties/functions and the user defined properties/instance methods are available on the instance.
Note: TypeScript has its own InstanceType, you should import it from Typegoose
#### ModelType<T>
This is the logical 'and' of `mongoose.Model<InstanceType<T>>` and `T`, so that the Mongoose model creates `InstanceType<T>` typed instances and all user defined static methods are available on the model.
Expand Down

0 comments on commit 6a52a02

Please sign in to comment.