From d7d9db415f70dd3ea32910c7a8e16fd6f24a9319 Mon Sep 17 00:00:00 2001 From: Valeri Karpov Date: Mon, 29 Apr 2024 15:30:50 -0400 Subject: [PATCH] Update docs/typescript/schemas.md Co-authored-by: hasezoey --- docs/typescript/schemas.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/typescript/schemas.md b/docs/typescript/schemas.md index b582df5c15f..db9c5944c82 100644 --- a/docs/typescript/schemas.md +++ b/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 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` * `TInstanceMethods` - An interface containing the methods for the schema. * default: `{}`