Skip to content

Commit 6df0cad

Browse files
committed
use decoration on methods schema option
1 parent 450f265 commit 6df0cad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types/schemaoptions.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ declare module 'mongoose' {
220220
TInstanceMethods,
221221
{},
222222
Record<any, (this: THydratedDocumentType, ...args: any) => unknown>,
223-
TInstanceMethods
223+
AddThisParameter<TInstanceMethods, THydratedDocumentType>
224224
>
225225

226226
/**

0 commit comments

Comments
 (0)