File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
plugins/mongoose-aggregate-paginate-v2/types Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 5
5
// and LiRen Tu <https://github.com/tuliren> for their contribution
6
6
7
7
declare module "mongoose" {
8
+ type PrePaginatePipelineStage = PipelineStage | "__PREPAGINATE__" ;
9
+
8
10
interface CustomLabels < T = string | undefined | boolean > {
9
11
totalDocs ?: T | undefined ;
10
12
docs ?: T | undefined ;
@@ -64,7 +66,7 @@ declare module "mongoose" {
64
66
65
67
interface AggregatePaginateModel < D > extends Model < D > {
66
68
aggregatePaginate < T > (
67
- query ?: Aggregate < T [ ] > | PipelineStage [ ] ,
69
+ query ?: Aggregate < T [ ] > | PrePaginatePipelineStage [ ] ,
68
70
options ?: PaginateOptions ,
69
71
callback ?: ( err : any , result : AggregatePaginateResult < T > ) => void
70
72
) : Promise < AggregatePaginateResult < T > > ;
You can’t perform that action at this time.
0 commit comments