@bepalo/spine 3.12.26 → 3.12.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/router.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ExtractParams, type CTError, type EmptyRecord, type Handler, type HandlerType, type HttpMethod, type HttpMethodUpper, type MethodPath, type Path, type Pipe, type RegisterPipelineOptions, type RespondContext, type RouterConfig, GenerateOpenApiInfo, GenerateOpenAPIOptions, GeneratedOpenApi, EndHandler, EndPipe, ErrorHandler, ErrorPipe } from "./types.ts";
1
+ import { ExtractParams, type CTError, type EmptyRecord, type Handler, type HandlerType, type HttpMethod, type HttpMethodUpper, type MethodPath, type Path, type Pipe, type RegisterPipelineOptions, type RespondContext, type RouterConfig, GenerateOpenApiInfo, GenerateOpenAPIOptions, GeneratedOpenApi, EndHandler, EndPipe, ErrorHandler, ErrorPipe, ExtractMethodPathsParams } from "./types.ts";
2
2
  import { CTParams } from "./parsers.ts";
3
3
  export declare const EMPTY_PARAMS: Readonly<{}>;
4
4
  export declare const PATH_PART_REGEX: RegExp;
@@ -13,10 +13,14 @@ export declare const HANDLER_TYPES: Set<HandlerType>;
13
13
  * @template {Record<string, unknown>} ExtendContext - Extend Router Context
14
14
  */
15
15
  export declare class Router<_ExtendContext extends Record<string, unknown> = EmptyRecord, ExtendContext extends {
16
- router: Router<_ExtendContext>;
17
- } & Record<string, unknown> = {
18
- router: Router<_ExtendContext>;
19
- } & _ExtendContext> {
16
+ router: Router<_ExtendContext, {
17
+ router: any;
18
+ }>;
19
+ } = _ExtendContext & {
20
+ router: Router<_ExtendContext, {
21
+ router: any;
22
+ }>;
23
+ }> {
20
24
  #private;
21
25
  get maxPath(): number;
22
26
  get enable(): {
@@ -42,12 +46,12 @@ export declare class Router<_ExtendContext extends Record<string, unknown> = Emp
42
46
  * Respond to a request according to the defined routes.
43
47
  *
44
48
  * @param {Request} request An http request object
45
- * @param {RespondContext<ExtendContext>} ctxInit Context pre-initialization.
49
+ * @param {RespondContext<_ExtendContext>} ctxInit Context pre-initialization.
46
50
  * Only headers and timestamps are allowed.
47
51
  * But timestamps properties will not be overridden but rather extended.
48
52
  * @returns {Response} An http response object
49
53
  */
50
- respond(request: Request, ctxInit?: RespondContext<ExtendContext>): Promise<Response>;
54
+ respond(request: Request, ctxInit?: RespondContext<_ExtendContext>): Promise<Response>;
51
55
  /**
52
56
  *
53
57
  * @param {string} prefix Path prefix to prepend to paths.
@@ -170,849 +174,849 @@ export declare class Router<_ExtendContext extends Record<string, unknown> = Emp
170
174
  * Define handlers for all http methods ["Head","Get","Query","Post","Put","Patch","Delete","Options","Trace","Connect"] and the specified paths.
171
175
  *
172
176
  * @param {Path} paths One or more valid route paths
173
- * @param pipe One or more request handlers
177
+ * @param pipe One or more main handlers
174
178
  * @param {RegisterPipelineOptions} options Register pipeline options
175
179
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
176
180
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
177
181
  * @returns This router instance.
178
182
  */
179
- all<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
183
+ all<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
180
184
  /**
181
185
  * Define handlers for CRUD http methods ["Get","Query","Post","Put","Patch","Delete"] and the specified paths.
182
186
  *
183
187
  * @param {Path} paths One or more valid route paths
184
- * @param pipe One or more request handlers
188
+ * @param pipe One or more main handlers
185
189
  * @param {RegisterPipelineOptions} options Register pipeline options
186
190
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
187
191
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
188
192
  * @returns This router instance.
189
193
  */
190
- crud<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
194
+ crud<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
191
195
  /**
192
196
  * Define handlers for Head http method and the specified paths.
193
197
  *
194
198
  * @param {Path} paths One or more valid route paths
195
- * @param pipe One or more request handlers
199
+ * @param pipe One or more main handlers
196
200
  * @param {RegisterPipelineOptions} options Register pipeline options
197
201
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
198
202
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
199
203
  * @returns This router instance.
200
204
  */
201
- head<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
205
+ head<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
202
206
  /**
203
207
  * Define handlers for Get http method and the specified paths.
204
208
  *
205
209
  * @param {Path} paths One or more valid route paths
206
- * @param pipe One or more request handlers
210
+ * @param pipe One or more main handlers
207
211
  * @param {RegisterPipelineOptions} options Register pipeline options
208
212
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
209
213
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
210
214
  * @returns This router instance.
211
215
  */
212
- get<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
216
+ get<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
213
217
  /**
214
218
  * Define handlers for Query http method and the specified paths.
215
219
  *
216
220
  * @param {Path} paths One or more valid route paths
217
- * @param pipe One or more request handlers
221
+ * @param pipe One or more main handlers
218
222
  * @param {RegisterPipelineOptions} options Register pipeline options
219
223
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
220
224
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
221
225
  * @returns This router instance.
222
226
  */
223
- query<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
227
+ query<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
224
228
  /**
225
229
  * Define handlers for Post http method and the specified paths.
226
230
  *
227
231
  * @param {Path} paths One or more valid route paths
228
- * @param pipe One or more request handlers
232
+ * @param pipe One or more main handlers
229
233
  * @param {RegisterPipelineOptions} options Register pipeline options
230
234
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
231
235
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
232
236
  * @returns This router instance.
233
237
  */
234
- post<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
238
+ post<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
235
239
  /**
236
240
  * Define handlers for Put http method and the specified paths.
237
241
  *
238
242
  * @param {Path} paths One or more valid route paths
239
- * @param pipe One or more request handlers
243
+ * @param pipe One or more main handlers
240
244
  * @param {RegisterPipelineOptions} options Register pipeline options
241
245
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
242
246
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
243
247
  * @returns This router instance.
244
248
  */
245
- put<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
249
+ put<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
246
250
  /**
247
251
  * Define handlers for Patch http method and the specified paths.
248
252
  *
249
253
  * @param {Path} paths One or more valid route paths
250
- * @param pipe One or more request handlers
254
+ * @param pipe One or more main handlers
251
255
  * @param {RegisterPipelineOptions} options Register pipeline options
252
256
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
253
257
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
254
258
  * @returns This router instance.
255
259
  */
256
- patch<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
260
+ patch<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
257
261
  /**
258
262
  * Define handlers for Head Delete method and the specified paths.
259
263
  *
260
264
  * @param {Path} paths One or more valid route paths
261
- * @param pipe One or more request handlers
265
+ * @param pipe One or more main handlers
262
266
  * @param {RegisterPipelineOptions} options Register pipeline options
263
267
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
264
268
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
265
269
  * @returns This router instance.
266
270
  */
267
- delete<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
271
+ delete<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
268
272
  /**
269
273
  * Define handlers for Options http method and the specified paths.
270
274
  *
271
275
  * @param {Path} paths One or more valid route paths
272
- * @param pipe One or more request handlers
276
+ * @param pipe One or more main handlers
273
277
  * @param {RegisterPipelineOptions} options Register pipeline options
274
278
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
275
279
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
276
280
  * @returns This router instance.
277
281
  */
278
- options<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
282
+ options<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
279
283
  /**
280
284
  * Define handlers for Trace http method and the specified paths.
281
285
  *
282
286
  * @param {Path} paths One or more valid route paths
283
- * @param pipe One or more request handlers
287
+ * @param pipe One or more main handlers
284
288
  * @param {RegisterPipelineOptions} options Register pipeline options
285
289
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
286
290
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
287
291
  * @returns This router instance.
288
292
  */
289
- trace<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
293
+ trace<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
290
294
  /**
291
295
  * Define handlers for Connect http method and the specified paths.
292
296
  *
293
297
  * @param {Path} paths One or more valid route paths
294
- * @param pipe One or more request handlers
298
+ * @param pipe One or more main handlers
295
299
  * @param {RegisterPipelineOptions} options Register pipeline options
296
300
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
297
301
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
298
302
  * @returns This router instance.
299
303
  */
300
- connect<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
304
+ connect<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
301
305
  /**
302
306
  * Define filters for all http methods ["Head","Get","Query","Post","Put","Patch","Delete","Options","Trace","Connect"] and the specified paths.
303
307
  *
304
308
  * @param {Path} paths One or more valid route paths
305
- * @param pipe One or more request handlers
309
+ * @param pipe One or more filtering handlers
306
310
  * @param {RegisterPipelineOptions} options Register pipeline options
307
311
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
308
312
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
309
313
  * @returns This router instance.
310
314
  */
311
- filterAll<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
315
+ filterAll<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
312
316
  /**
313
317
  * Define filters for CRUD http methods ["Get","Query","Post","Put","Patch","Delete"] and the specified paths.
314
318
  *
315
319
  * @param {Path} paths One or more valid route paths
316
- * @param pipe One or more request handlers
320
+ * @param pipe One or more filtering handlers
317
321
  * @param {RegisterPipelineOptions} options Register pipeline options
318
322
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
319
323
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
320
324
  * @returns This router instance.
321
325
  */
322
- filterCrud<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
326
+ filterCrud<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
323
327
  /**
324
328
  * Define filters for Head http method and the specified paths.
325
329
  *
326
330
  * @param {Path} paths One or more valid route paths
327
- * @param pipe One or more request handlers
331
+ * @param pipe One or more filtering handlers
328
332
  * @param {RegisterPipelineOptions} options Register pipeline options
329
333
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
330
334
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
331
335
  * @returns This router instance.
332
336
  */
333
- filterHead<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
337
+ filterHead<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
334
338
  /**
335
339
  * Define filters for Get http method and the specified paths.
336
340
  *
337
341
  * @param {Path} paths One or more valid route paths
338
- * @param pipe One or more request handlers
342
+ * @param pipe One or more filtering handlers
339
343
  * @param {RegisterPipelineOptions} options Register pipeline options
340
344
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
341
345
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
342
346
  * @returns This router instance.
343
347
  */
344
- filterGet<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
348
+ filterGet<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
345
349
  /**
346
350
  * Define filters for Query http method and the specified paths.
347
351
  *
348
352
  * @param {Path} paths One or more valid route paths
349
- * @param pipe One or more request handlers
353
+ * @param pipe One or more filtering handlers
350
354
  * @param {RegisterPipelineOptions} options Register pipeline options
351
355
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
352
356
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
353
357
  * @returns This router instance.
354
358
  */
355
- filterQuery<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
359
+ filterQuery<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
356
360
  /**
357
361
  * Define filters for Post http method and the specified paths.
358
362
  *
359
363
  * @param {Path} paths One or more valid route paths
360
- * @param pipe One or more request handlers
364
+ * @param pipe One or more filtering handlers
361
365
  * @param {RegisterPipelineOptions} options Register pipeline options
362
366
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
363
367
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
364
368
  * @returns This router instance.
365
369
  */
366
- filterPost<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
370
+ filterPost<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
367
371
  /**
368
372
  * Define filters for Put http method and the specified paths.
369
373
  *
370
374
  * @param {Path} paths One or more valid route paths
371
- * @param pipe One or more request handlers
375
+ * @param pipe One or more filtering handlers
372
376
  * @param {RegisterPipelineOptions} options Register pipeline options
373
377
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
374
378
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
375
379
  * @returns This router instance.
376
380
  */
377
- filterPut<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
381
+ filterPut<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
378
382
  /**
379
383
  * Define filters for Patch http method and the specified paths.
380
384
  *
381
385
  * @param {Path} paths One or more valid route paths
382
- * @param pipe One or more request handlers
386
+ * @param pipe One or more filtering handlers
383
387
  * @param {RegisterPipelineOptions} options Register pipeline options
384
388
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
385
389
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
386
390
  * @returns This router instance.
387
391
  */
388
- filterPatch<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
392
+ filterPatch<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
389
393
  /**
390
394
  * Define filters for Head Delete method and the specified paths.
391
395
  *
392
396
  * @param {Path} paths One or more valid route paths
393
- * @param pipe One or more request handlers
397
+ * @param pipe One or more filtering handlers
394
398
  * @param {RegisterPipelineOptions} options Register pipeline options
395
399
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
396
400
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
397
401
  * @returns This router instance.
398
402
  */
399
- filterDelete<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
403
+ filterDelete<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
400
404
  /**
401
405
  * Define filters for Options http method and the specified paths.
402
406
  *
403
407
  * @param {Path} paths One or more valid route paths
404
- * @param pipe One or more request handlers
408
+ * @param pipe One or more filtering handlers
405
409
  * @param {RegisterPipelineOptions} options Register pipeline options
406
410
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
407
411
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
408
412
  * @returns This router instance.
409
413
  */
410
- filterOptions<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
414
+ filterOptions<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
411
415
  /**
412
416
  * Define filters for Trace http method and the specified paths.
413
417
  *
414
418
  * @param {Path} paths One or more valid route paths
415
- * @param pipe One or more request handlers
419
+ * @param pipe One or more filtering handlers
416
420
  * @param {RegisterPipelineOptions} options Register pipeline options
417
421
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
418
422
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
419
423
  * @returns This router instance.
420
424
  */
421
- filterTrace<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
425
+ filterTrace<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
422
426
  /**
423
427
  * Define filters for Connect http method and the specified paths.
424
428
  *
425
429
  * @param {Path} paths One or more valid route paths
426
- * @param pipe One or more request handlers
430
+ * @param pipe One or more filtering handlers
427
431
  * @param {RegisterPipelineOptions} options Register pipeline options
428
432
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
429
433
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
430
434
  * @returns This router instance.
431
435
  */
432
- filterConnect<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
436
+ filterConnect<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
433
437
  /**
434
438
  * Define handlers for all http methods ["Head","Get","Query","Post","Put","Patch","Delete","Options","Trace","Connect"] and the specified paths.
435
439
  *
436
440
  * @param {Path} paths One or more valid route paths
437
- * @param pipe One or more request handlers
441
+ * @param pipe One or more main handlers
438
442
  * @param {RegisterPipelineOptions} options Register pipeline options
439
443
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
440
444
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
441
445
  * @returns This router instance.
442
446
  */
443
- handleAll<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
447
+ handleAll<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
444
448
  /**
445
449
  * Define handlers for CRUD http methods ["Get","Query","Post","Put","Patch","Delete"] and the specified paths.
446
450
  *
447
451
  * @param {Path} paths One or more valid route paths
448
- * @param pipe One or more request handlers
452
+ * @param pipe One or more main handlers
449
453
  * @param {RegisterPipelineOptions} options Register pipeline options
450
454
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
451
455
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
452
456
  * @returns This router instance.
453
457
  */
454
- handleCrud<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
458
+ handleCrud<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
455
459
  /**
456
460
  * Define handlers for Head http method and the specified paths.
457
461
  *
458
462
  * @param {Path} paths One or more valid route paths
459
- * @param pipe One or more request handlers
463
+ * @param pipe One or more main handlers
460
464
  * @param {RegisterPipelineOptions} options Register pipeline options
461
465
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
462
466
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
463
467
  * @returns This router instance.
464
468
  */
465
- handleHead<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
469
+ handleHead<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
466
470
  /**
467
471
  * Define handlers for Get http method and the specified paths.
468
472
  *
469
473
  * @param {Path} paths One or more valid route paths
470
- * @param pipe One or more request handlers
474
+ * @param pipe One or more main handlers
471
475
  * @param {RegisterPipelineOptions} options Register pipeline options
472
476
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
473
477
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
474
478
  * @returns This router instance.
475
479
  */
476
- handleGet<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
480
+ handleGet<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
477
481
  /**
478
482
  * Define handlers for Query http method and the specified paths.
479
483
  *
480
484
  * @param {Path} paths One or more valid route paths
481
- * @param pipe One or more request handlers
485
+ * @param pipe One or more main handlers
482
486
  * @param {RegisterPipelineOptions} options Register pipeline options
483
487
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
484
488
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
485
489
  * @returns This router instance.
486
490
  */
487
- handleQuery<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
491
+ handleQuery<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
488
492
  /**
489
493
  * Define handlers for Post http method and the specified paths.
490
494
  *
491
495
  * @param {Path} paths One or more valid route paths
492
- * @param pipe One or more request handlers
496
+ * @param pipe One or more main handlers
493
497
  * @param {RegisterPipelineOptions} options Register pipeline options
494
498
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
495
499
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
496
500
  * @returns This router instance.
497
501
  */
498
- handlePost<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
502
+ handlePost<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
499
503
  /**
500
504
  * Define handlers for Put http method and the specified paths.
501
505
  *
502
506
  * @param {Path} paths One or more valid route paths
503
- * @param pipe One or more request handlers
507
+ * @param pipe One or more main handlers
504
508
  * @param {RegisterPipelineOptions} options Register pipeline options
505
509
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
506
510
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
507
511
  * @returns This router instance.
508
512
  */
509
- handlePut<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
513
+ handlePut<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
510
514
  /**
511
515
  * Define handlers for Patch http method and the specified paths.
512
516
  *
513
517
  * @param {Path} paths One or more valid route paths
514
- * @param pipe One or more request handlers
518
+ * @param pipe One or more main handlers
515
519
  * @param {RegisterPipelineOptions} options Register pipeline options
516
520
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
517
521
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
518
522
  * @returns This router instance.
519
523
  */
520
- handlePatch<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
524
+ handlePatch<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
521
525
  /**
522
526
  * Define handlers for Head Delete method and the specified paths.
523
527
  *
524
528
  * @param {Path} paths One or more valid route paths
525
- * @param pipe One or more request handlers
529
+ * @param pipe One or more main handlers
526
530
  * @param {RegisterPipelineOptions} options Register pipeline options
527
531
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
528
532
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
529
533
  * @returns This router instance.
530
534
  */
531
- handleDelete<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
535
+ handleDelete<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
532
536
  /**
533
537
  * Define handlers for Options http method and the specified paths.
534
538
  *
535
539
  * @param {Path} paths One or more valid route paths
536
- * @param pipe One or more request handlers
540
+ * @param pipe One or more main handlers
537
541
  * @param {RegisterPipelineOptions} options Register pipeline options
538
542
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
539
543
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
540
544
  * @returns This router instance.
541
545
  */
542
- handleOptions<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
546
+ handleOptions<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
543
547
  /**
544
548
  * Define handlers for Trace http method and the specified paths.
545
549
  *
546
550
  * @param {Path} paths One or more valid route paths
547
- * @param pipe One or more request handlers
551
+ * @param pipe One or more main handlers
548
552
  * @param {RegisterPipelineOptions} options Register pipeline options
549
553
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
550
554
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
551
555
  * @returns This router instance.
552
556
  */
553
- handleTrace<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
557
+ handleTrace<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
554
558
  /**
555
559
  * Define handlers for Connect http method and the specified paths.
556
560
  *
557
561
  * @param {Path} paths One or more valid route paths
558
- * @param pipe One or more request handlers
562
+ * @param pipe One or more main handlers
559
563
  * @param {RegisterPipelineOptions} options Register pipeline options
560
564
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
561
565
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
562
566
  * @returns This router instance.
563
567
  */
564
- handleConnect<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
568
+ handleConnect<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
565
569
  /**
566
570
  * Define fallbacks for all http methods ["Head","Get","Query","Post","Put","Patch","Delete","Options","Trace","Connect"] and the specified paths.
567
571
  *
568
572
  * @param {Path} paths One or more valid route paths
569
- * @param pipe One or more request handlers
573
+ * @param pipe One or more fallback handlers
570
574
  * @param {RegisterPipelineOptions} options Register pipeline options
571
575
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
572
576
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
573
577
  * @returns This router instance.
574
578
  */
575
- fallbackAll<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
579
+ fallbackAll<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
576
580
  /**
577
581
  * Define fallbacks for CRUD http methods ["Get","Query","Post","Put","Patch","Delete"] and the specified paths.
578
582
  *
579
583
  * @param {Path} paths One or more valid route paths
580
- * @param pipe One or more request handlers
584
+ * @param pipe One or more fallback handlers
581
585
  * @param {RegisterPipelineOptions} options Register pipeline options
582
586
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
583
587
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
584
588
  * @returns This router instance.
585
589
  */
586
- fallbackCrud<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
590
+ fallbackCrud<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
587
591
  /**
588
592
  * Define fallbacks for Head http method and the specified paths.
589
593
  *
590
594
  * @param {Path} paths One or more valid route paths
591
- * @param pipe One or more request handlers
595
+ * @param pipe One or more fallback handlers
592
596
  * @param {RegisterPipelineOptions} options Register pipeline options
593
597
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
594
598
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
595
599
  * @returns This router instance.
596
600
  */
597
- fallbackHead<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
601
+ fallbackHead<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
598
602
  /**
599
603
  * Define fallbacks for Get http method and the specified paths.
600
604
  *
601
605
  * @param {Path} paths One or more valid route paths
602
- * @param pipe One or more request handlers
606
+ * @param pipe One or more fallback handlers
603
607
  * @param {RegisterPipelineOptions} options Register pipeline options
604
608
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
605
609
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
606
610
  * @returns This router instance.
607
611
  */
608
- fallbackGet<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
612
+ fallbackGet<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
609
613
  /**
610
614
  * Define fallbacks for Query http method and the specified paths.
611
615
  *
612
616
  * @param {Path} paths One or more valid route paths
613
- * @param pipe One or more request handlers
617
+ * @param pipe One or more fallback handlers
614
618
  * @param {RegisterPipelineOptions} options Register pipeline options
615
619
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
616
620
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
617
621
  * @returns This router instance.
618
622
  */
619
- fallbackQuery<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
623
+ fallbackQuery<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
620
624
  /**
621
625
  * Define fallbacks for Post http method and the specified paths.
622
626
  *
623
627
  * @param {Path} paths One or more valid route paths
624
- * @param pipe One or more request handlers
628
+ * @param pipe One or more fallback handlers
625
629
  * @param {RegisterPipelineOptions} options Register pipeline options
626
630
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
627
631
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
628
632
  * @returns This router instance.
629
633
  */
630
- fallbackPost<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
634
+ fallbackPost<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
631
635
  /**
632
636
  * Define fallbacks for Put http method and the specified paths.
633
637
  *
634
638
  * @param {Path} paths One or more valid route paths
635
- * @param pipe One or more request handlers
639
+ * @param pipe One or more fallback handlers
636
640
  * @param {RegisterPipelineOptions} options Register pipeline options
637
641
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
638
642
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
639
643
  * @returns This router instance.
640
644
  */
641
- fallbackPut<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
645
+ fallbackPut<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
642
646
  /**
643
647
  * Define fallbacks for Patch http method and the specified paths.
644
648
  *
645
649
  * @param {Path} paths One or more valid route paths
646
- * @param pipe One or more request handlers
650
+ * @param pipe One or more fallback handlers
647
651
  * @param {RegisterPipelineOptions} options Register pipeline options
648
652
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
649
653
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
650
654
  * @returns This router instance.
651
655
  */
652
- fallbackPatch<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
656
+ fallbackPatch<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
653
657
  /**
654
658
  * Define fallbacks for Head Delete method and the specified paths.
655
659
  *
656
660
  * @param {Path} paths One or more valid route paths
657
- * @param pipe One or more request handlers
661
+ * @param pipe One or more fallback handlers
658
662
  * @param {RegisterPipelineOptions} options Register pipeline options
659
663
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
660
664
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
661
665
  * @returns This router instance.
662
666
  */
663
- fallbackDelete<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
667
+ fallbackDelete<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
664
668
  /**
665
669
  * Define fallbacks for Options http method and the specified paths.
666
670
  *
667
671
  * @param {Path} paths One or more valid route paths
668
- * @param pipe One or more request handlers
672
+ * @param pipe One or more fallback handlers
669
673
  * @param {RegisterPipelineOptions} options Register pipeline options
670
674
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
671
675
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
672
676
  * @returns This router instance.
673
677
  */
674
- fallbackOptions<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
678
+ fallbackOptions<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
675
679
  /**
676
680
  * Define fallbacks for Trace http method and the specified paths.
677
681
  *
678
682
  * @param {Path} paths One or more valid route paths
679
- * @param pipe One or more request handlers
683
+ * @param pipe One or more fallback handlers
680
684
  * @param {RegisterPipelineOptions} options Register pipeline options
681
685
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
682
686
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
683
687
  * @returns This router instance.
684
688
  */
685
- fallbackTrace<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
689
+ fallbackTrace<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
686
690
  /**
687
691
  * Define fallbacks for Connect http method and the specified paths.
688
692
  *
689
693
  * @param {Path} paths One or more valid route paths
690
- * @param pipe One or more request handlers
694
+ * @param pipe One or more fallback handlers
691
695
  * @param {RegisterPipelineOptions} options Register pipeline options
692
696
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
693
697
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
694
698
  * @returns This router instance.
695
699
  */
696
- fallbackConnect<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
700
+ fallbackConnect<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: Handler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
697
701
  /**
698
702
  * Define afters for all http methods ["Head","Get","Query","Post","Put","Patch","Delete","Options","Trace","Connect"] and the specified paths.
699
703
  *
700
704
  * @param {Path} paths One or more valid route paths
701
- * @param pipe One or more request handlers
705
+ * @param pipe One or more after handlers
702
706
  * @param {RegisterPipelineOptions} options Register pipeline options
703
707
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
704
708
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
705
709
  * @returns This router instance.
706
710
  */
707
- afterAll<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: EndHandler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
711
+ afterAll<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: EndHandler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
708
712
  /**
709
713
  * Define afters for CRUD http methods ["Get","Query","Post","Put","Patch","Delete"] and the specified paths.
710
714
  *
711
715
  * @param {Path} paths One or more valid route paths
712
- * @param pipe One or more request handlers
716
+ * @param pipe One or more after handlers
713
717
  * @param {RegisterPipelineOptions} options Register pipeline options
714
718
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
715
719
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
716
720
  * @returns This router instance.
717
721
  */
718
- afterCrud<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: EndHandler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
722
+ afterCrud<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: EndHandler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
719
723
  /**
720
724
  * Define afters for Head http method and the specified paths.
721
725
  *
722
726
  * @param {Path} paths One or more valid route paths
723
- * @param pipe One or more request handlers
727
+ * @param pipe One or more after handlers
724
728
  * @param {RegisterPipelineOptions} options Register pipeline options
725
729
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
726
730
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
727
731
  * @returns This router instance.
728
732
  */
729
- afterHead<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: EndHandler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
733
+ afterHead<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: EndHandler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
730
734
  /**
731
735
  * Define afters for Get http method and the specified paths.
732
736
  *
733
737
  * @param {Path} paths One or more valid route paths
734
- * @param pipe One or more request handlers
738
+ * @param pipe One or more after handlers
735
739
  * @param {RegisterPipelineOptions} options Register pipeline options
736
740
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
737
741
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
738
742
  * @returns This router instance.
739
743
  */
740
- afterGet<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: EndHandler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
744
+ afterGet<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: EndHandler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
741
745
  /**
742
746
  * Define afters for Query http method and the specified paths.
743
747
  *
744
748
  * @param {Path} paths One or more valid route paths
745
- * @param pipe One or more request handlers
749
+ * @param pipe One or more after handlers
746
750
  * @param {RegisterPipelineOptions} options Register pipeline options
747
751
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
748
752
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
749
753
  * @returns This router instance.
750
754
  */
751
- afterQuery<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: EndHandler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
755
+ afterQuery<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: EndHandler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
752
756
  /**
753
757
  * Define afters for Post http method and the specified paths.
754
758
  *
755
759
  * @param {Path} paths One or more valid route paths
756
- * @param pipe One or more request handlers
760
+ * @param pipe One or more after handlers
757
761
  * @param {RegisterPipelineOptions} options Register pipeline options
758
762
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
759
763
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
760
764
  * @returns This router instance.
761
765
  */
762
- afterPost<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: EndHandler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
766
+ afterPost<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: EndHandler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
763
767
  /**
764
768
  * Define afters for Put http method and the specified paths.
765
769
  *
766
770
  * @param {Path} paths One or more valid route paths
767
- * @param pipe One or more request handlers
771
+ * @param pipe One or more after handlers
768
772
  * @param {RegisterPipelineOptions} options Register pipeline options
769
773
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
770
774
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
771
775
  * @returns This router instance.
772
776
  */
773
- afterPut<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: EndHandler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
777
+ afterPut<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: EndHandler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
774
778
  /**
775
779
  * Define afters for Patch http method and the specified paths.
776
780
  *
777
781
  * @param {Path} paths One or more valid route paths
778
- * @param pipe One or more request handlers
782
+ * @param pipe One or more after handlers
779
783
  * @param {RegisterPipelineOptions} options Register pipeline options
780
784
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
781
785
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
782
786
  * @returns This router instance.
783
787
  */
784
- afterPatch<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: EndHandler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
788
+ afterPatch<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: EndHandler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
785
789
  /**
786
790
  * Define afters for Head Delete method and the specified paths.
787
791
  *
788
792
  * @param {Path} paths One or more valid route paths
789
- * @param pipe One or more request handlers
793
+ * @param pipe One or more after handlers
790
794
  * @param {RegisterPipelineOptions} options Register pipeline options
791
795
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
792
796
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
793
797
  * @returns This router instance.
794
798
  */
795
- afterDelete<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: EndHandler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
799
+ afterDelete<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: EndHandler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
796
800
  /**
797
801
  * Define afters for Options http method and the specified paths.
798
802
  *
799
803
  * @param {Path} paths One or more valid route paths
800
- * @param pipe One or more request handlers
804
+ * @param pipe One or more after handlers
801
805
  * @param {RegisterPipelineOptions} options Register pipeline options
802
806
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
803
807
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
804
808
  * @returns This router instance.
805
809
  */
806
- afterOptions<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: EndHandler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
810
+ afterOptions<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: EndHandler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
807
811
  /**
808
812
  * Define afters for Trace http method and the specified paths.
809
813
  *
810
814
  * @param {Path} paths One or more valid route paths
811
- * @param pipe One or more request handlers
815
+ * @param pipe One or more after handlers
812
816
  * @param {RegisterPipelineOptions} options Register pipeline options
813
817
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
814
818
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
815
819
  * @returns This router instance.
816
820
  */
817
- afterTrace<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: EndHandler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
821
+ afterTrace<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: EndHandler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
818
822
  /**
819
823
  * Define afters for Connect http method and the specified paths.
820
824
  *
821
825
  * @param {Path} paths One or more valid route paths
822
- * @param pipe One or more request handlers
826
+ * @param pipe One or more after handlers
823
827
  * @param {RegisterPipelineOptions} options Register pipeline options
824
828
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
825
829
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
826
830
  * @returns This router instance.
827
831
  */
828
- afterConnect<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: EndHandler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
832
+ afterConnect<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: EndHandler<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
829
833
  /**
830
834
  * Define catchers for all http methods ["Head","Get","Query","Post","Put","Patch","Delete","Options","Trace","Connect"] and the specified paths.
831
835
  *
832
836
  * @param {Path} paths One or more valid route paths
833
- * @param pipe One or more request handlers
837
+ * @param pipe One or more error handlers
834
838
  * @param {RegisterPipelineOptions} options Register pipeline options
835
839
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
836
840
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
837
841
  * @returns This router instance.
838
842
  */
839
- catchAll<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: ErrorHandler<CTParams<ExtractParams<P>> & CTError & ExtendContext & ExtendContextMore> | ErrorPipe<CTParams<ExtractParams<P>> & CTError & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
843
+ catchAll<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: ErrorHandler<CTParams<ExtractParams<P>> & CTError & ExtendContext & ExtendContextMore> | ErrorPipe<CTParams<ExtractParams<P>> & CTError & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
840
844
  /**
841
845
  * Define catchers for CRUD http methods ["Get","Query","Post","Put","Patch","Delete"] and the specified paths.
842
846
  *
843
847
  * @param {Path} paths One or more valid route paths
844
- * @param pipe One or more request handlers
848
+ * @param pipe One or more error handlers
845
849
  * @param {RegisterPipelineOptions} options Register pipeline options
846
850
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
847
851
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
848
852
  * @returns This router instance.
849
853
  */
850
- catchCrud<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: ErrorHandler<CTParams<ExtractParams<P>> & CTError & ExtendContext & ExtendContextMore> | ErrorPipe<CTParams<ExtractParams<P>> & CTError & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
854
+ catchCrud<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: ErrorHandler<CTParams<ExtractParams<P>> & CTError & ExtendContext & ExtendContextMore> | ErrorPipe<CTParams<ExtractParams<P>> & CTError & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
851
855
  /**
852
856
  * Define catchers for Head http method and the specified paths.
853
857
  *
854
858
  * @param {Path} paths One or more valid route paths
855
- * @param pipe One or more request handlers
859
+ * @param pipe One or more error handlers
856
860
  * @param {RegisterPipelineOptions} options Register pipeline options
857
861
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
858
862
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
859
863
  * @returns This router instance.
860
864
  */
861
- catchHead<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: ErrorHandler<CTParams<ExtractParams<P>> & CTError & ExtendContext & ExtendContextMore> | ErrorPipe<CTParams<ExtractParams<P>> & CTError & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
865
+ catchHead<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: ErrorHandler<CTParams<ExtractParams<P>> & CTError & ExtendContext & ExtendContextMore> | ErrorPipe<CTParams<ExtractParams<P>> & CTError & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
862
866
  /**
863
867
  * Define catchers for Get http method and the specified paths.
864
868
  *
865
869
  * @param {Path} paths One or more valid route paths
866
- * @param pipe One or more request handlers
870
+ * @param pipe One or more error handlers
867
871
  * @param {RegisterPipelineOptions} options Register pipeline options
868
872
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
869
873
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
870
874
  * @returns This router instance.
871
875
  */
872
- catchGet<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: ErrorHandler<CTParams<ExtractParams<P>> & CTError & ExtendContext & ExtendContextMore> | ErrorPipe<CTParams<ExtractParams<P>> & CTError & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
876
+ catchGet<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: ErrorHandler<CTParams<ExtractParams<P>> & CTError & ExtendContext & ExtendContextMore> | ErrorPipe<CTParams<ExtractParams<P>> & CTError & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
873
877
  /**
874
878
  * Define catchers for Query http method and the specified paths.
875
879
  *
876
880
  * @param {Path} paths One or more valid route paths
877
- * @param pipe One or more request handlers
881
+ * @param pipe One or more error handlers
878
882
  * @param {RegisterPipelineOptions} options Register pipeline options
879
883
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
880
884
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
881
885
  * @returns This router instance.
882
886
  */
883
- catchQuery<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: ErrorHandler<CTParams<ExtractParams<P>> & CTError & ExtendContext & ExtendContextMore> | ErrorPipe<CTParams<ExtractParams<P>> & CTError & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
887
+ catchQuery<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: ErrorHandler<CTParams<ExtractParams<P>> & CTError & ExtendContext & ExtendContextMore> | ErrorPipe<CTParams<ExtractParams<P>> & CTError & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
884
888
  /**
885
889
  * Define catchers for Post http method and the specified paths.
886
890
  *
887
891
  * @param {Path} paths One or more valid route paths
888
- * @param pipe One or more request handlers
892
+ * @param pipe One or more error handlers
889
893
  * @param {RegisterPipelineOptions} options Register pipeline options
890
894
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
891
895
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
892
896
  * @returns This router instance.
893
897
  */
894
- catchPost<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: ErrorHandler<CTParams<ExtractParams<P>> & CTError & ExtendContext & ExtendContextMore> | ErrorPipe<CTParams<ExtractParams<P>> & CTError & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
898
+ catchPost<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: ErrorHandler<CTParams<ExtractParams<P>> & CTError & ExtendContext & ExtendContextMore> | ErrorPipe<CTParams<ExtractParams<P>> & CTError & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
895
899
  /**
896
900
  * Define catchers for Put http method and the specified paths.
897
901
  *
898
902
  * @param {Path} paths One or more valid route paths
899
- * @param pipe One or more request handlers
903
+ * @param pipe One or more error handlers
900
904
  * @param {RegisterPipelineOptions} options Register pipeline options
901
905
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
902
906
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
903
907
  * @returns This router instance.
904
908
  */
905
- catchPut<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: ErrorHandler<CTParams<ExtractParams<P>> & CTError & ExtendContext & ExtendContextMore> | ErrorPipe<CTParams<ExtractParams<P>> & CTError & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
909
+ catchPut<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: ErrorHandler<CTParams<ExtractParams<P>> & CTError & ExtendContext & ExtendContextMore> | ErrorPipe<CTParams<ExtractParams<P>> & CTError & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
906
910
  /**
907
911
  * Define catchers for Patch http method and the specified paths.
908
912
  *
909
913
  * @param {Path} paths One or more valid route paths
910
- * @param pipe One or more request handlers
914
+ * @param pipe One or more error handlers
911
915
  * @param {RegisterPipelineOptions} options Register pipeline options
912
916
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
913
917
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
914
918
  * @returns This router instance.
915
919
  */
916
- catchPatch<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: ErrorHandler<CTParams<ExtractParams<P>> & CTError & ExtendContext & ExtendContextMore> | ErrorPipe<CTParams<ExtractParams<P>> & CTError & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
920
+ catchPatch<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: ErrorHandler<CTParams<ExtractParams<P>> & CTError & ExtendContext & ExtendContextMore> | ErrorPipe<CTParams<ExtractParams<P>> & CTError & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
917
921
  /**
918
922
  * Define catchers for Head Delete method and the specified paths.
919
923
  *
920
924
  * @param {Path} paths One or more valid route paths
921
- * @param pipe One or more request handlers
925
+ * @param pipe One or more error handlers
922
926
  * @param {RegisterPipelineOptions} options Register pipeline options
923
927
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
924
928
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
925
929
  * @returns This router instance.
926
930
  */
927
- catchDelete<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: ErrorHandler<CTParams<ExtractParams<P>> & CTError & ExtendContext & ExtendContextMore> | ErrorPipe<CTParams<ExtractParams<P>> & CTError & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
931
+ catchDelete<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: ErrorHandler<CTParams<ExtractParams<P>> & CTError & ExtendContext & ExtendContextMore> | ErrorPipe<CTParams<ExtractParams<P>> & CTError & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
928
932
  /**
929
933
  * Define catchers for Options http method and the specified paths.
930
934
  *
931
935
  * @param {Path} paths One or more valid route paths
932
- * @param pipe One or more request handlers
936
+ * @param pipe One or more error handlers
933
937
  * @param {RegisterPipelineOptions} options Register pipeline options
934
938
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
935
939
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
936
940
  * @returns This router instance.
937
941
  */
938
- catchOptions<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: ErrorHandler<CTParams<ExtractParams<P>> & CTError & ExtendContext & ExtendContextMore> | ErrorPipe<CTParams<ExtractParams<P>> & CTError & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
942
+ catchOptions<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: ErrorHandler<CTParams<ExtractParams<P>> & CTError & ExtendContext & ExtendContextMore> | ErrorPipe<CTParams<ExtractParams<P>> & CTError & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
939
943
  /**
940
944
  * Define catchers for Trace http method and the specified paths.
941
945
  *
942
946
  * @param {Path} paths One or more valid route paths
943
- * @param pipe One or more request handlers
947
+ * @param pipe One or more error handlers
944
948
  * @param {RegisterPipelineOptions} options Register pipeline options
945
949
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
946
950
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
947
951
  * @returns This router instance.
948
952
  */
949
- catchTrace<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: ErrorHandler<CTParams<ExtractParams<P>> & CTError & ExtendContext & ExtendContextMore> | ErrorPipe<CTParams<ExtractParams<P>> & CTError & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
953
+ catchTrace<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: ErrorHandler<CTParams<ExtractParams<P>> & CTError & ExtendContext & ExtendContextMore> | ErrorPipe<CTParams<ExtractParams<P>> & CTError & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
950
954
  /**
951
955
  * Define catchers for Connect http method and the specified paths.
952
956
  *
953
957
  * @param {Path} paths One or more valid route paths
954
- * @param pipe One or more request handlers
958
+ * @param pipe One or more error handlers
955
959
  * @param {RegisterPipelineOptions} options Register pipeline options
956
960
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
957
961
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
958
962
  * @returns This router instance.
959
963
  */
960
- catchConnect<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: Path | Array<Path>, pipe: ErrorHandler<CTParams<ExtractParams<P>> & CTError & ExtendContext & ExtendContextMore> | ErrorPipe<CTParams<ExtractParams<P>> & CTError & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
964
+ catchConnect<ExtendContextMore extends Record<string, unknown> = EmptyRecord, P extends Path = Path>(paths: P | Array<P>, pipe: ErrorHandler<CTParams<ExtractParams<P>> & CTError & ExtendContext & ExtendContextMore> | ErrorPipe<CTParams<ExtractParams<P>> & CTError & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
961
965
  /**
962
966
  * Define filters for the specified method paths.
963
967
  *
964
968
  * @param {MethodPath|Array<MethodPath>} methodPaths Method-path definitions in the form of: `Method /Path`, or [`Method /Path`, ...] or [[`Method`, ...], `/Path`, ...]
965
- * @param pipe One or more request handlers
969
+ * @param pipe One or more filtering handlers
966
970
  * @param {RegisterPipelineOptions} options Register pipeline options
967
971
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
968
972
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
969
973
  * @returns This router instance.
970
974
  */
971
- filter<ExtendContextMore extends Record<string, unknown> = EmptyRecord>(methodPaths: MethodPath | Array<MethodPath> | [Array<HttpMethod>, ...Array<Path>], pipe: Handler<ExtendContext & ExtendContextMore> | Pipe<ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
975
+ filter<ExtendContextMore extends Record<string, unknown> = EmptyRecord, MP extends MethodPath = MethodPath, P extends Path = Path>(methodPaths: MP | Array<MP> | [Array<HttpMethod>, ...Array<P>], pipe: Handler<CTParams<ExtractMethodPathsParams<MP> | ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractMethodPathsParams<MP> | ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
972
976
  /**
973
977
  * Define handlers for the specified method paths.
974
978
  *
975
979
  * @param {MethodPath|Array<MethodPath>} methodPaths Method-path definitions in the form of: `Method /Path`, or [`Method /Path`, ...] or [[`Method`, ...], `/Path`, ...]
976
- * @param pipe One or more request handlers
980
+ * @param pipe One or more main handlers
977
981
  * @param {RegisterPipelineOptions} options Register pipeline options
978
982
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
979
983
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
980
984
  * @returns This router instance.
981
985
  */
982
- handle<ExtendContextMore extends Record<string, unknown> = EmptyRecord>(methodPaths: MethodPath | Array<MethodPath> | [Array<HttpMethod>, ...Array<Path>], pipe: Handler<ExtendContext & ExtendContextMore> | Pipe<ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
986
+ handle<ExtendContextMore extends Record<string, unknown> = EmptyRecord, MP extends MethodPath = MethodPath, P extends Path = Path>(methodPaths: MP | Array<MP> | [Array<HttpMethod>, ...Array<P>], pipe: Handler<CTParams<ExtractMethodPathsParams<MP> | ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractMethodPathsParams<MP> | ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
983
987
  /**
984
988
  * Define fallbacks for the specified method paths.
985
989
  *
986
990
  * @param {MethodPath|Array<MethodPath>} methodPaths Method-path definitions in the form of: `Method /Path`, or [`Method /Path`, ...] or [[`Method`, ...], `/Path`, ...]
987
- * @param pipe One or more request handlers
991
+ * @param pipe One or more fallback handlers
988
992
  * @param {RegisterPipelineOptions} options Register pipeline options
989
993
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
990
994
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
991
995
  * @returns This router instance.
992
996
  */
993
- fallback<ExtendContextMore extends Record<string, unknown> = EmptyRecord>(methodPaths: MethodPath | Array<MethodPath> | [Array<HttpMethod>, ...Array<Path>], pipe: Handler<ExtendContext & ExtendContextMore> | Pipe<ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
997
+ fallback<ExtendContextMore extends Record<string, unknown> = EmptyRecord, MP extends MethodPath = MethodPath, P extends Path = Path>(methodPaths: MP | Array<MP> | [Array<HttpMethod>, ...Array<P>], pipe: Handler<CTParams<ExtractMethodPathsParams<MP> | ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractMethodPathsParams<MP> | ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
994
998
  /**
995
999
  * Define afters for the specified method paths.
996
1000
  *
997
1001
  * @param {MethodPath|Array<MethodPath>} methodPaths Method-path definitions in the form of: `Method /Path`, or [`Method /Path`, ...] or [[`Method`, ...], `/Path`, ...]
998
- * @param pipe One or more request handlers
1002
+ * @param pipe One or more after handlers
999
1003
  * @param {RegisterPipelineOptions} options Register pipeline options
1000
1004
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
1001
1005
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
1002
1006
  * @returns This router instance.
1003
1007
  */
1004
- after<ExtendContextMore extends Record<string, unknown> = EmptyRecord>(methodPaths: MethodPath | Array<MethodPath> | [Array<HttpMethod>, ...Array<Path>], pipe: EndHandler<ExtendContext & ExtendContextMore> | EndPipe<ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
1008
+ after<ExtendContextMore extends Record<string, unknown> = EmptyRecord, MP extends MethodPath = MethodPath, P extends Path = Path>(methodPaths: MP | Array<MP> | [Array<HttpMethod>, ...Array<P>], pipe: EndHandler<CTParams<ExtractMethodPathsParams<MP> | ExtractParams<P>> & ExtendContext & ExtendContextMore> | EndPipe<CTParams<ExtractMethodPathsParams<MP> | ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
1005
1009
  /**
1006
1010
  * Define catchers for the specified method paths.
1007
1011
  *
1008
1012
  * @param {MethodPath|Array<MethodPath>} methodPaths Method-path definitions in the form of: `Method /Path`, or [`Method /Path`, ...] or [[`Method`, ...], `/Path`, ...]
1009
- * @param pipe One or more request handlers
1013
+ * @param pipe One or more error handlers
1010
1014
  * @param {RegisterPipelineOptions} options Register pipeline options
1011
1015
  * @param {boolean} [options.overwrite] Overwrite colliding route definitions.
1012
1016
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
1013
1017
  * @returns This router instance.
1014
1018
  */
1015
- catch<ExtendContextMore extends Record<string, unknown> = EmptyRecord>(methodPaths: MethodPath | Array<MethodPath> | [Array<HttpMethod>, ...Array<Path>], pipe: ErrorHandler<ExtendContext & ExtendContextMore> | ErrorPipe<ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<ExtendContext>;
1019
+ catch<ExtendContextMore extends Record<string, unknown> = EmptyRecord, MP extends MethodPath = MethodPath, P extends Path = Path>(methodPaths: MP | Array<MP> | [Array<HttpMethod>, ...Array<P>], pipe: ErrorHandler<CTParams<ExtractMethodPathsParams<MP> | ExtractParams<P>> & ExtendContext & ExtendContextMore> | ErrorPipe<CTParams<ExtractMethodPathsParams<MP> | ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
1016
1020
  /**
1017
1021
  * Register route handlers for the specified handler type and method paths.
1018
1022
  *
@@ -1024,7 +1028,7 @@ export declare class Router<_ExtendContext extends Record<string, unknown> = Emp
1024
1028
  * @param {OpenApiDesc|false} [options.openApi] OpenApi definition
1025
1029
  * @returns This router instance.
1026
1030
  */
1027
- register(handlerType: HandlerType, methodPaths: MethodPath | Array<MethodPath>, pipe: Handler<ExtendContext> | ErrorHandler<ExtendContext> | EndHandler<ExtendContext> | Pipe<ExtendContext> | ErrorPipe<ExtendContext> | EndPipe<ExtendContext>, options?: RegisterPipelineOptions | RegisterPipelineOptions): Router<ExtendContext>;
1031
+ register<ExtendContextMore extends Record<string, unknown> = EmptyRecord, MP extends MethodPath = MethodPath, P extends Path = Path>(handlerType: HandlerType, methodPaths: MP | Array<MP>, pipe: Handler<CTParams<ExtractMethodPathsParams<MP> | ExtractParams<P>> & ExtendContext & ExtendContextMore> | Pipe<CTParams<ExtractMethodPathsParams<MP> | ExtractParams<P>> & ExtendContext & ExtendContextMore> | ErrorHandler<CTParams<ExtractMethodPathsParams<MP> | ExtractParams<P>> & ExtendContext & ExtendContextMore> | ErrorPipe<CTParams<ExtractMethodPathsParams<MP> | ExtractParams<P>> & ExtendContext & ExtendContextMore> | EndHandler<CTParams<ExtractMethodPathsParams<MP> | ExtractParams<P>> & ExtendContext & ExtendContextMore> | EndPipe<CTParams<ExtractMethodPathsParams<MP> | ExtractParams<P>> & ExtendContext & ExtendContextMore>, options?: RegisterPipelineOptions | RegisterPipelineOptions): Router<_ExtendContext, ExtendContext>;
1028
1032
  /**
1029
1033
  *
1030
1034
  * @param pathname Valid url pathname