We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 692117e commit d7d9db4Copy full SHA for d7d9db4
docs/typescript/schemas.md
@@ -66,7 +66,7 @@ For example, the above code won't throw an error if `email` is optional in the d
66
The Mongoose `Schema` class in TypeScript has 9 [generic parameters](https://www.typescriptlang.org/docs/handbook/2/generics.html):
67
68
* `RawDocType` - An interface describing how the data is saved in MongoDB
69
-* `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.
70
* default: `Model<DocType, any, any>`
71
* `TInstanceMethods` - An interface containing the methods for the schema.
72
* default: `{}`
0 commit comments