Skip to content

Commit

Permalink
Update docs/typescript/schemas.md
Browse files Browse the repository at this point in the history
Co-authored-by: hasezoey <hasezoey@gmail.com>
  • Loading branch information
vkarpov15 and hasezoey committed Apr 29, 2024
1 parent 692117e commit d7d9db4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/typescript/schemas.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ For example, the above code won't throw an error if `email` is optional in the d
The Mongoose `Schema` class in TypeScript has 9 [generic parameters](https://www.typescriptlang.org/docs/handbook/2/generics.html):

* `RawDocType` - An interface describing how the data is saved in MongoDB
* `M` - The Mongoose model type. Can be omitted if there are no query helpers or instance methods to be defined.
* `TModelType` - The Mongoose model type. Can be omitted if there are no query helpers or instance methods to be defined.
* default: `Model<DocType, any, any>`
* `TInstanceMethods` - An interface containing the methods for the schema.
* default: `{}`
Expand Down

0 comments on commit d7d9db4

Please sign in to comment.