File tree Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -42,19 +42,11 @@ function paginatorNext(this: MongooseQuery, nextToken: string) {
4242
4343declare module 'mongoose' {
4444 /**
45- * Patch original mongoose types
45+ * Patch original mongoose types for mongoose 8
4646 */
4747 // @ts -expect-error
48- class Query <
49- ResultType ,
50- DocType ,
51- THelpers = { } ,
52- RawDocType = unknown ,
53- QueryOp = 'find' ,
54- TInstanceMethods = Record < string , never > ,
55- > implements SessionOperation
56- {
57- paginator ( options ?: QueryPaginatorOptions ) : QueryPaginator < ResultType > ;
58- paginatorNext ( nextToken : string ) : QueryPaginator < ResultType > ;
48+ interface Query < ResultType , DocType > {
49+ paginator ( options ?: QueryPaginatorOptions ) : QueryPaginator < DocType > ;
50+ paginatorNext ( nextToken : string ) : QueryPaginator < DocType > ;
5951 }
6052}
You can’t perform that action at this time.
0 commit comments