@@ -46,7 +46,7 @@ export function PreHook<T extends DocumentAny>(
46
46
callback : ( this : T , next : HookNextFunction ) => void
47
47
) : PreHook . Decorator
48
48
49
- // 5
49
+ // 3
50
50
/**
51
51
* Query middleware.
52
52
* - [`Query.count()`](https://mongoosejs.com/docs/api#query_Query-count)
@@ -70,7 +70,7 @@ export function PreHook<T extends DocumentAny>(
70
70
callback : ( this : mongoose . Query < T , T > , next : HookNextFunction ) => void
71
71
) : PreHook . Decorator
72
72
73
- // 6
73
+ // 4
74
74
/**
75
75
* Query middleware by default.
76
76
* - [`Query.updateOne()`](https://mongoosejs.com/docs/api#query_Query-updateOne)
@@ -90,9 +90,9 @@ export function PreHook<T extends DocumentAny>(
90
90
callback : ( this : T , next : HookNextFunction ) => void
91
91
) : PreHook . Decorator
92
92
93
- // 7
93
+ // 5
94
94
/**
95
- * {@inheritDoc (PreHook:6 ) }
95
+ * {@inheritDoc (PreHook:4 ) }
96
96
* @public
97
97
*/
98
98
export function PreHook < T extends DocumentAny > (
@@ -101,7 +101,7 @@ export function PreHook<T extends DocumentAny>(
101
101
callback : ( this : T | mongoose . Query < T , T > , next : HookNextFunction ) => void
102
102
) : PreHook . Decorator
103
103
104
- // 8
104
+ // 6
105
105
/**
106
106
* Model middleware.
107
107
* - [`Model.insertMany()`](https://mongoosejs.com/docs/api#model_Model.insertMany)
@@ -115,7 +115,7 @@ export function PreHook<T extends DocumentAny>(
115
115
callback : ( this : mongoose . Model < AsDocument < T > > , next : HookNextFunction ) => void
116
116
) : PreHook . Decorator
117
117
118
- // 9
118
+ // 7
119
119
/**
120
120
* Aggregate middleware.
121
121
* - [`Model.aggregate()`](https://mongoosejs.com/docs/api#model_Model.aggregate)
@@ -129,7 +129,7 @@ export function PreHook<T extends DocumentAny>(
129
129
callback : ( this : mongoose . Aggregate < T > , next : HookNextFunction ) => void
130
130
) : PreHook . Decorator
131
131
132
- // 10
132
+ // 8
133
133
/**
134
134
* Mixed methods middleware.
135
135
*
@@ -158,9 +158,9 @@ export function PreHook<T extends DocumentAny>(
158
158
callback : ( this : unknown , next : HookNextFunction ) => void
159
159
) : PreHook . Decorator
160
160
161
- // 11
161
+ // 9
162
162
/**
163
- * {@inheritDoc (PreHook:10 ) }
163
+ * {@inheritDoc (PreHook:8 ) }
164
164
* @public
165
165
*/
166
166
export function PreHook < T extends DocumentAny > (
@@ -264,7 +264,7 @@ export function PostHook<T extends DocumentAny, TError = any>(
264
264
callback : ( this : T , error : TError , result : null , next : HookNextFunction ) => void
265
265
) : PostHook . Decorator
266
266
267
- // 7
267
+ // 4
268
268
/**
269
269
* Query middleware.
270
270
* - [`Query.findOne()`](https://mongoosejs.com/docs/api#query_Query-findOne)
@@ -281,7 +281,7 @@ export function PostHook<T extends DocumentAny>(
281
281
callback : ( this : mongoose . Query < T , T > , result : T , next : HookNextFunction ) => void
282
282
) : PostHook . Decorator
283
283
284
- // 8
284
+ // 5
285
285
/**
286
286
* Query middleware.
287
287
* - [`Query.find()`](https://mongoosejs.com/docs/api#query_Query-find)
@@ -295,7 +295,7 @@ export function PostHook<T extends DocumentAny>(
295
295
callback : ( this : mongoose . Query < T , T > , results : T [ ] , next : HookNextFunction ) => void
296
296
) : PostHook . Decorator
297
297
298
- // 9
298
+ // 6
299
299
/**
300
300
* Query middleware.
301
301
* - [`Query.update()`](https://mongoosejs.com/docs/api#query_Query-update)
@@ -309,7 +309,7 @@ export function PostHook<T extends DocumentAny>(
309
309
callback : ( this : mongoose . Query < T , T > , result : mongodb . UpdateResult , next : HookNextFunction ) => void
310
310
) : PostHook . Decorator
311
311
312
- // 10
312
+ // 7
313
313
/**
314
314
* Query middleware.
315
315
* - [`Query.deleteMany()`](https://mongoosejs.com/docs/api#query_Query-deleteMany)
@@ -322,7 +322,7 @@ export function PostHook<T extends DocumentAny>(
322
322
callback : ( this : mongoose . Query < T , T > , result : mongodb . DeleteResult , next : HookNextFunction ) => void
323
323
) : PostHook . Decorator
324
324
325
- // 11
325
+ // 8
326
326
/**
327
327
* Query middleware.
328
328
* - [`Query.count()`](https://mongoosejs.com/docs/api#query_Query-count)
@@ -336,7 +336,7 @@ export function PostHook<T extends DocumentAny>(
336
336
callback : ( this : mongoose . Query < T , T > , result : number , next : HookNextFunction ) => void
337
337
) : PostHook . Decorator
338
338
339
- // 12
339
+ // 9
340
340
/**
341
341
* Query middleware.
342
342
* - [`Query.count()`](https://mongoosejs.com/docs/api#query_Query-count)
@@ -360,17 +360,17 @@ export function PostHook<T extends DocumentAny>(
360
360
callback : ( this : mongoose . Query < T , T > , result : any , next : HookNextFunction ) => void
361
361
) : PostHook . Decorator
362
362
363
- // 13
363
+ // 10
364
364
/**
365
- * {@inheritDoc (PostHook:12 ) }
365
+ * {@inheritDoc (PostHook:9 ) }
366
366
* @public
367
367
*/
368
368
export function PostHook < T extends DocumentAny , TError = any > (
369
369
method : QueryMethodOnly | ( QueryMethodOnly | QueryMaybeDocumentMethod ) [ ] ,
370
370
callback : ( this : mongoose . Query < T , T > , error : TError , result : undefined , next : HookNextFunction ) => void
371
371
) : PostHook . Decorator
372
372
373
- // 14
373
+ // 11
374
374
/**
375
375
* Query middleware by default.
376
376
* - [`Query.updateOne()`](https://mongoosejs.com/docs/api#query_Query-updateOne)
@@ -390,9 +390,9 @@ export function PostHook<T extends DocumentAny>(
390
390
callbackIfOptions ?: ( this : T , result : T , next : HookNextFunction ) => void
391
391
) : PostHook . Decorator
392
392
393
- // 15
393
+ // 11
394
394
/**
395
- * {@inheritDoc (PostHook:14 ) }
395
+ * {@inheritDoc (PostHook:11 ) }
396
396
* @public
397
397
*/
398
398
export function PostHook < T extends DocumentAny , TError = any > (
@@ -403,7 +403,7 @@ export function PostHook<T extends DocumentAny, TError = any>(
403
403
callbackIfOptions ?: ( this : T , error : TError , result : T , next : HookNextFunction ) => void
404
404
) : PostHook . Decorator
405
405
406
- // 16
406
+ // 12
407
407
/**
408
408
* Query middleware by default.
409
409
* - [`Query.deleteOne()`](https://mongoosejs.com/docs/api#query_Query-deleteOne)
@@ -423,9 +423,9 @@ export function PostHook<T extends DocumentAny>(
423
423
callbackIfOptions ?: ( this : T , result : T , next : HookNextFunction ) => void
424
424
) : PostHook . Decorator
425
425
426
- // 17
426
+ // 13
427
427
/**
428
- * {@inheritDoc (PostHook:16 ) }
428
+ * {@inheritDoc (PostHook:12 ) }
429
429
* @public
430
430
*/
431
431
export function PostHook < T extends DocumentAny , TError = any > (
@@ -436,7 +436,7 @@ export function PostHook<T extends DocumentAny, TError = any>(
436
436
callbackIfOptions ?: ( this : T , error : TError , result : T , next : HookNextFunction ) => void
437
437
) : PostHook . Decorator
438
438
439
- // 18
439
+ // 14
440
440
/**
441
441
* Model middleware.
442
442
* - [`Model.insertMany()`](https://mongoosejs.com/docs/api#model_Model.insertMany)
@@ -450,17 +450,17 @@ export function PostHook<T extends DocumentAny>(
450
450
callback : ( this : mongoose . Model < AsDocument < T > > , results : T [ ] , next : HookNextFunction ) => void
451
451
) : PostHook . Decorator
452
452
453
- // 19
453
+ // 15
454
454
/**
455
- * {@inheritDoc (PostHook:18 ) }
455
+ * {@inheritDoc (PostHook:14 ) }
456
456
* @public
457
457
*/
458
458
export function PostHook < T extends DocumentAny , TError = any > (
459
459
method : ModelMethod ,
460
460
callback : ( this : mongoose . Model < AsDocument < T > > , error : TError , results : T [ ] , next : HookNextFunction ) => void
461
461
) : PostHook . Decorator
462
462
463
- // 20
463
+ // 16
464
464
/**
465
465
* Aggregate middleware.
466
466
* - [`Model.aggregate()`](https://mongoosejs.com/docs/api#model_Model.aggregate)
@@ -474,17 +474,17 @@ export function PostHook<T extends DocumentAny>(
474
474
callback : ( this : mongoose . Aggregate < T > , results : Plain < T > [ ] , next : HookNextFunction ) => void
475
475
) : PostHook . Decorator
476
476
477
- // 21
477
+ // 17
478
478
/**
479
- * {@inheritDoc (PostHook:20 ) }
479
+ * {@inheritDoc (PostHook:16 ) }
480
480
* @public
481
481
*/
482
482
export function PostHook < T extends DocumentAny , TError = any > (
483
483
method : AggregateMethod ,
484
484
callback : ( this : mongoose . Aggregate < T > , error : TError , results : null , next : HookNextFunction ) => void
485
485
) : PostHook . Decorator
486
486
487
- // 22
487
+ // 18
488
488
/**
489
489
* Mixed methods middleware.
490
490
*
@@ -513,9 +513,9 @@ export function PostHook<T extends DocumentAny>(
513
513
callback : ( this : any , result : any , next : HookNextFunction ) => void
514
514
) : PreHook . Decorator
515
515
516
- // 23
516
+ // 19
517
517
/**
518
- * {@inheritDoc (PostHook:22 ) }
518
+ * {@inheritDoc (PostHook:18 ) }
519
519
* @public
520
520
*/
521
521
export function PostHook < T extends DocumentAny , TError = any > (
0 commit comments