Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: de-emphasize InferSchemaType<> in TypeScript docs in favor of automatic inference #14542

Merged
merged 5 commits into from
Apr 29, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update docs/typescript/schemas.md
Co-authored-by: hasezoey <[email protected]>
  • Loading branch information
vkarpov15 and hasezoey authored Apr 29, 2024
commit d7d9db415f70dd3ea32910c7a8e16fd6f24a9319
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