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 d7d9db4 commit 72e4957
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/typescript/schemas.md
Expand Up @@ -72,6 +72,7 @@ The Mongoose `Schema` class in TypeScript has 9 [generic parameters](https://www
* default: `{}`
* `TQueryHelpers` - An interface containing query helpers defined on the schema. Defaults to `{}`.
* `TVirtuals` - An interface containing virtuals defined on the schema. Defaults to `{}`
* `TStaticMethods` - An interface containing methods on a model. Defaults to `{}`
* `TSchemaOptions` - The type passed as the 2nd option to `Schema()` constructor. Defaults to `DefaultSchemaOptions`.
* `DocType` - The inferred document type from the schema.
* `THydratedDocumentType` - The hydrated document type. This is the default return type for `await Model.findOne()`, `Model.hydrate()`, etc.
Expand Down

0 comments on commit 72e4957

Please sign in to comment.