Skip to content

Commit d7a7e85

Browse files
committed
add intersection with AnyObject
1 parent 62b66ce commit d7a7e85

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-
AddThisParameter<TInstanceMethods, THydratedDocumentType>
223+
AddThisParameter<TInstanceMethods, THydratedDocumentType> & AnyObject
224224
>
225225

226226
/**

0 commit comments

Comments
 (0)