We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6df0cad commit 62b66ceCopy full SHA for 62b66ce
types/index.d.ts
@@ -297,7 +297,7 @@ declare module 'mongoose' {
297
method(obj: Partial<TInstanceMethods>): this;
298
299
/** Object of currently defined methods on this schema. */
300
- methods: { [F in keyof TInstanceMethods]: TInstanceMethods[F] } & AnyObject;
+ methods: AddThisParameter<TInstanceMethods, THydratedDocumentType> & AnyObject;
301
302
/** The original object passed to the schema constructor */
303
obj: SchemaDefinition<SchemaDefinitionType<EnforcedDocType>, EnforcedDocType>;
0 commit comments