diff --git a/docs/typescript/schemas.md b/docs/typescript/schemas.md index 8986e56f9fe..e6397cbc6cf 100644 --- a/docs/typescript/schemas.md +++ b/docs/typescript/schemas.md @@ -81,7 +81,18 @@ The Mongoose `Schema` class in TypeScript has 9 [generic parameters](https://www View TypeScript definition ```typescript - class Schema, TInstanceMethods = {}, TQueryHelpers = {}> extends events.EventEmitter { + export class Schema< + RawDocType = any, + TModelType = Model, + TInstanceMethods = {}, + TQueryHelpers = {}, + TVirtuals = {}, + TStaticMethods = {}, + TSchemaOptions = DefaultSchemaOptions, + DocType = ..., + THydratedDocumentType = HydratedDocument, TVirtuals & TInstanceMethods> + > + extends events.EventEmitter { // ... } ```