File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ declare module 'mongoose' {
20
20
21
21
interface PaginateOptions {
22
22
select ?: object | string | undefined ;
23
- collation ?: import ( 'mongodb' ) . CollationDocument | undefined ;
23
+ collation ?: import ( 'mongodb' ) . CollationOptions | undefined ;
24
24
sort ?: object | string | undefined ;
25
25
populate ?:
26
26
| PopulateOptions [ ]
@@ -65,12 +65,13 @@ declare module 'mongoose' {
65
65
type PaginateDocument <
66
66
T ,
67
67
TMethods ,
68
+ TVirtuals ,
68
69
O extends PaginateOptions = { }
69
70
> = O [ 'lean' ] extends true
70
71
? O [ 'leanWithId' ] extends true
71
72
? LeanDocument < T & { id : string } >
72
73
: LeanDocument < T >
73
- : EnforceDocument < T , TMethods > ;
74
+ : HydratedDocument < T , TMethods , TVirtuals > ;
74
75
75
76
interface PaginateModel < T , TQueryHelpers = { } , TMethods = { } >
76
77
extends Model < T , TQueryHelpers , TMethods > {
You can’t perform that action at this time.
0 commit comments