Skip to content

Commit c0e08fa

Browse files
committed
docs(mongoose): fix inherited docs
1 parent 41408fe commit c0e08fa

File tree

1 file changed

+32
-32
lines changed

1 file changed

+32
-32
lines changed

mongoose/src/hooks-decorators.ts

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export function PreHook<T extends DocumentAny>(
4646
callback: (this: T, next: HookNextFunction) => void
4747
): PreHook.Decorator
4848

49-
// 5
49+
// 3
5050
/**
5151
* Query middleware.
5252
* - [`Query.count()`](https://mongoosejs.com/docs/api#query_Query-count)
@@ -70,7 +70,7 @@ export function PreHook<T extends DocumentAny>(
7070
callback: (this: mongoose.Query<T, T>, next: HookNextFunction) => void
7171
): PreHook.Decorator
7272

73-
// 6
73+
// 4
7474
/**
7575
* Query middleware by default.
7676
* - [`Query.updateOne()`](https://mongoosejs.com/docs/api#query_Query-updateOne)
@@ -90,9 +90,9 @@ export function PreHook<T extends DocumentAny>(
9090
callback: (this: T, next: HookNextFunction) => void
9191
): PreHook.Decorator
9292

93-
// 7
93+
// 5
9494
/**
95-
* {@inheritDoc (PreHook:6)}
95+
* {@inheritDoc (PreHook:4)}
9696
* @public
9797
*/
9898
export function PreHook<T extends DocumentAny>(
@@ -101,7 +101,7 @@ export function PreHook<T extends DocumentAny>(
101101
callback: (this: T | mongoose.Query<T, T>, next: HookNextFunction) => void
102102
): PreHook.Decorator
103103

104-
// 8
104+
// 6
105105
/**
106106
* Model middleware.
107107
* - [`Model.insertMany()`](https://mongoosejs.com/docs/api#model_Model.insertMany)
@@ -115,7 +115,7 @@ export function PreHook<T extends DocumentAny>(
115115
callback: (this: mongoose.Model<AsDocument<T>>, next: HookNextFunction) => void
116116
): PreHook.Decorator
117117

118-
// 9
118+
// 7
119119
/**
120120
* Aggregate middleware.
121121
* - [`Model.aggregate()`](https://mongoosejs.com/docs/api#model_Model.aggregate)
@@ -129,7 +129,7 @@ export function PreHook<T extends DocumentAny>(
129129
callback: (this: mongoose.Aggregate<T>, next: HookNextFunction) => void
130130
): PreHook.Decorator
131131

132-
// 10
132+
// 8
133133
/**
134134
* Mixed methods middleware.
135135
*
@@ -158,9 +158,9 @@ export function PreHook<T extends DocumentAny>(
158158
callback: (this: unknown, next: HookNextFunction) => void
159159
): PreHook.Decorator
160160

161-
// 11
161+
// 9
162162
/**
163-
* {@inheritDoc (PreHook:10)}
163+
* {@inheritDoc (PreHook:8)}
164164
* @public
165165
*/
166166
export function PreHook<T extends DocumentAny>(
@@ -264,7 +264,7 @@ export function PostHook<T extends DocumentAny, TError = any>(
264264
callback: (this: T, error: TError, result: null, next: HookNextFunction) => void
265265
): PostHook.Decorator
266266

267-
// 7
267+
// 4
268268
/**
269269
* Query middleware.
270270
* - [`Query.findOne()`](https://mongoosejs.com/docs/api#query_Query-findOne)
@@ -281,7 +281,7 @@ export function PostHook<T extends DocumentAny>(
281281
callback: (this: mongoose.Query<T, T>, result: T, next: HookNextFunction) => void
282282
): PostHook.Decorator
283283

284-
// 8
284+
// 5
285285
/**
286286
* Query middleware.
287287
* - [`Query.find()`](https://mongoosejs.com/docs/api#query_Query-find)
@@ -295,7 +295,7 @@ export function PostHook<T extends DocumentAny>(
295295
callback: (this: mongoose.Query<T, T>, results: T[], next: HookNextFunction) => void
296296
): PostHook.Decorator
297297

298-
// 9
298+
// 6
299299
/**
300300
* Query middleware.
301301
* - [`Query.update()`](https://mongoosejs.com/docs/api#query_Query-update)
@@ -309,7 +309,7 @@ export function PostHook<T extends DocumentAny>(
309309
callback: (this: mongoose.Query<T, T>, result: mongodb.UpdateResult, next: HookNextFunction) => void
310310
): PostHook.Decorator
311311

312-
// 10
312+
// 7
313313
/**
314314
* Query middleware.
315315
* - [`Query.deleteMany()`](https://mongoosejs.com/docs/api#query_Query-deleteMany)
@@ -322,7 +322,7 @@ export function PostHook<T extends DocumentAny>(
322322
callback: (this: mongoose.Query<T, T>, result: mongodb.DeleteResult, next: HookNextFunction) => void
323323
): PostHook.Decorator
324324

325-
// 11
325+
// 8
326326
/**
327327
* Query middleware.
328328
* - [`Query.count()`](https://mongoosejs.com/docs/api#query_Query-count)
@@ -336,7 +336,7 @@ export function PostHook<T extends DocumentAny>(
336336
callback: (this: mongoose.Query<T, T>, result: number, next: HookNextFunction) => void
337337
): PostHook.Decorator
338338

339-
// 12
339+
// 9
340340
/**
341341
* Query middleware.
342342
* - [`Query.count()`](https://mongoosejs.com/docs/api#query_Query-count)
@@ -360,17 +360,17 @@ export function PostHook<T extends DocumentAny>(
360360
callback: (this: mongoose.Query<T, T>, result: any, next: HookNextFunction) => void
361361
): PostHook.Decorator
362362

363-
// 13
363+
// 10
364364
/**
365-
* {@inheritDoc (PostHook:12)}
365+
* {@inheritDoc (PostHook:9)}
366366
* @public
367367
*/
368368
export function PostHook<T extends DocumentAny, TError = any>(
369369
method: QueryMethodOnly | (QueryMethodOnly | QueryMaybeDocumentMethod)[],
370370
callback: (this: mongoose.Query<T, T>, error: TError, result: undefined, next: HookNextFunction) => void
371371
): PostHook.Decorator
372372

373-
// 14
373+
// 11
374374
/**
375375
* Query middleware by default.
376376
* - [`Query.updateOne()`](https://mongoosejs.com/docs/api#query_Query-updateOne)
@@ -390,9 +390,9 @@ export function PostHook<T extends DocumentAny>(
390390
callbackIfOptions?: (this: T, result: T, next: HookNextFunction) => void
391391
): PostHook.Decorator
392392

393-
// 15
393+
// 11
394394
/**
395-
* {@inheritDoc (PostHook:14)}
395+
* {@inheritDoc (PostHook:11)}
396396
* @public
397397
*/
398398
export function PostHook<T extends DocumentAny, TError = any>(
@@ -403,7 +403,7 @@ export function PostHook<T extends DocumentAny, TError = any>(
403403
callbackIfOptions?: (this: T, error: TError, result: T, next: HookNextFunction) => void
404404
): PostHook.Decorator
405405

406-
// 16
406+
// 12
407407
/**
408408
* Query middleware by default.
409409
* - [`Query.deleteOne()`](https://mongoosejs.com/docs/api#query_Query-deleteOne)
@@ -423,9 +423,9 @@ export function PostHook<T extends DocumentAny>(
423423
callbackIfOptions?: (this: T, result: T, next: HookNextFunction) => void
424424
): PostHook.Decorator
425425

426-
// 17
426+
// 13
427427
/**
428-
* {@inheritDoc (PostHook:16)}
428+
* {@inheritDoc (PostHook:12)}
429429
* @public
430430
*/
431431
export function PostHook<T extends DocumentAny, TError = any>(
@@ -436,7 +436,7 @@ export function PostHook<T extends DocumentAny, TError = any>(
436436
callbackIfOptions?: (this: T, error: TError, result: T, next: HookNextFunction) => void
437437
): PostHook.Decorator
438438

439-
// 18
439+
// 14
440440
/**
441441
* Model middleware.
442442
* - [`Model.insertMany()`](https://mongoosejs.com/docs/api#model_Model.insertMany)
@@ -450,17 +450,17 @@ export function PostHook<T extends DocumentAny>(
450450
callback: (this: mongoose.Model<AsDocument<T>>, results: T[], next: HookNextFunction) => void
451451
): PostHook.Decorator
452452

453-
// 19
453+
// 15
454454
/**
455-
* {@inheritDoc (PostHook:18)}
455+
* {@inheritDoc (PostHook:14)}
456456
* @public
457457
*/
458458
export function PostHook<T extends DocumentAny, TError = any>(
459459
method: ModelMethod,
460460
callback: (this: mongoose.Model<AsDocument<T>>, error: TError, results: T[], next: HookNextFunction) => void
461461
): PostHook.Decorator
462462

463-
// 20
463+
// 16
464464
/**
465465
* Aggregate middleware.
466466
* - [`Model.aggregate()`](https://mongoosejs.com/docs/api#model_Model.aggregate)
@@ -474,17 +474,17 @@ export function PostHook<T extends DocumentAny>(
474474
callback: (this: mongoose.Aggregate<T>, results: Plain<T>[], next: HookNextFunction) => void
475475
): PostHook.Decorator
476476

477-
// 21
477+
// 17
478478
/**
479-
* {@inheritDoc (PostHook:20)}
479+
* {@inheritDoc (PostHook:16)}
480480
* @public
481481
*/
482482
export function PostHook<T extends DocumentAny, TError = any>(
483483
method: AggregateMethod,
484484
callback: (this: mongoose.Aggregate<T>, error: TError, results: null, next: HookNextFunction) => void
485485
): PostHook.Decorator
486486

487-
// 22
487+
// 18
488488
/**
489489
* Mixed methods middleware.
490490
*
@@ -513,9 +513,9 @@ export function PostHook<T extends DocumentAny>(
513513
callback: (this: any, result: any, next: HookNextFunction) => void
514514
): PreHook.Decorator
515515

516-
// 23
516+
// 19
517517
/**
518-
* {@inheritDoc (PostHook:22)}
518+
* {@inheritDoc (PostHook:18)}
519519
* @public
520520
*/
521521
export function PostHook<T extends DocumentAny, TError = any>(

0 commit comments

Comments
 (0)