@types/koa-router
Advanced tools
Comparing version 7.4.4 to 7.4.8
@@ -1,13 +0,1 @@ | ||
// Type definitions for koa-router 7.4 | ||
// Project: https://github.com/alexmingoia/koa-router#readme | ||
// Definitions by: Jerry Chin <https://github.com/hellopao> | ||
// Pavel Ivanov <https://github.com/schfkt> | ||
// JounQin <https://github.com/JounQin> | ||
// Romain Faust <https://github.com/romain-faust> | ||
// Guillaume Mayer <https://github.com/Guillaume-Mayer> | ||
// Andrea Gueugnaut <https://github.com/falinor> | ||
// Yves Kaufmann <https://github.com/yveskaufmann> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.3 | ||
/* =================== USAGE =================== | ||
@@ -138,3 +126,3 @@ | ||
methods: string[], | ||
middleware: Array<Router.IMiddleware>, | ||
middleware: Router.IMiddleware[], | ||
opts?: ILayerOptions, | ||
@@ -177,3 +165,3 @@ ); | ||
params: Object; | ||
stack: Array<Router.Layer>; | ||
stack: Router.Layer[]; | ||
@@ -207,3 +195,3 @@ /** | ||
get( | ||
path: string | RegExp | (string | RegExp)[], | ||
path: string | RegExp | Array<string | RegExp>, | ||
...middleware: Array<Router.IMiddleware<StateT, CustomT>> | ||
@@ -218,3 +206,3 @@ ): Router<StateT, CustomT>; | ||
get<T, U>( | ||
path: string | RegExp | (string | RegExp)[], | ||
path: string | RegExp | Array<string | RegExp>, | ||
middleware: Koa.Middleware<T, U>, | ||
@@ -233,3 +221,3 @@ routeHandler: Router.IMiddleware<StateT & T, CustomT & U>, | ||
post( | ||
path: string | RegExp | (string | RegExp)[], | ||
path: string | RegExp | Array<string | RegExp>, | ||
...middleware: Array<Router.IMiddleware<StateT, CustomT>> | ||
@@ -244,3 +232,3 @@ ): Router<StateT, CustomT>; | ||
post<T, U>( | ||
path: string | RegExp | (string | RegExp)[], | ||
path: string | RegExp | Array<string | RegExp>, | ||
middleware: Koa.Middleware<T, U>, | ||
@@ -259,3 +247,3 @@ routeHandler: Router.IMiddleware<StateT & T, CustomT & U>, | ||
put( | ||
path: string | RegExp | (string | RegExp)[], | ||
path: string | RegExp | Array<string | RegExp>, | ||
...middleware: Array<Router.IMiddleware<StateT, CustomT>> | ||
@@ -270,3 +258,3 @@ ): Router<StateT, CustomT>; | ||
put<T, U>( | ||
path: string | RegExp | (string | RegExp)[], | ||
path: string | RegExp | Array<string | RegExp>, | ||
middleware: Koa.Middleware<T, U>, | ||
@@ -285,3 +273,3 @@ routeHandler: Router.IMiddleware<StateT & T, CustomT & U>, | ||
link( | ||
path: string | RegExp | (string | RegExp)[], | ||
path: string | RegExp | Array<string | RegExp>, | ||
...middleware: Array<Router.IMiddleware<StateT, CustomT>> | ||
@@ -296,3 +284,3 @@ ): Router<StateT, CustomT>; | ||
link<T, U>( | ||
path: string | RegExp | (string | RegExp)[], | ||
path: string | RegExp | Array<string | RegExp>, | ||
middleware: Koa.Middleware<T, U>, | ||
@@ -311,3 +299,3 @@ routeHandler: Router.IMiddleware<StateT & T, CustomT & U>, | ||
unlink( | ||
path: string | RegExp | (string | RegExp)[], | ||
path: string | RegExp | Array<string | RegExp>, | ||
...middleware: Array<Router.IMiddleware<StateT, CustomT>> | ||
@@ -322,3 +310,3 @@ ): Router<StateT, CustomT>; | ||
unlink<T, U>( | ||
path: string | RegExp | (string | RegExp)[], | ||
path: string | RegExp | Array<string | RegExp>, | ||
middleware: Koa.Middleware<T, U>, | ||
@@ -337,3 +325,3 @@ routeHandler: Router.IMiddleware<StateT & T, CustomT & U>, | ||
delete( | ||
path: string | RegExp | (string | RegExp)[], | ||
path: string | RegExp | Array<string | RegExp>, | ||
...middleware: Array<Router.IMiddleware<StateT, CustomT>> | ||
@@ -348,3 +336,3 @@ ): Router<StateT, CustomT>; | ||
delete<T, U>( | ||
path: string | RegExp | (string | RegExp)[], | ||
path: string | RegExp | Array<string | RegExp>, | ||
middleware: Koa.Middleware<T, U>, | ||
@@ -363,3 +351,3 @@ routeHandler: Router.IMiddleware<StateT & T, CustomT & U>, | ||
del( | ||
path: string | RegExp | (string | RegExp)[], | ||
path: string | RegExp | Array<string | RegExp>, | ||
...middleware: Array<Router.IMiddleware<StateT, CustomT>> | ||
@@ -374,3 +362,3 @@ ): Router<StateT, CustomT>; | ||
del<T, U>( | ||
path: string | RegExp | (string | RegExp)[], | ||
path: string | RegExp | Array<string | RegExp>, | ||
middleware: Koa.Middleware<T, U>, | ||
@@ -389,3 +377,3 @@ routeHandler: Router.IMiddleware<StateT & T, CustomT & U>, | ||
head( | ||
path: string | RegExp | (string | RegExp)[], | ||
path: string | RegExp | Array<string | RegExp>, | ||
...middleware: Array<Router.IMiddleware<StateT, CustomT>> | ||
@@ -400,3 +388,3 @@ ): Router<StateT, CustomT>; | ||
head<T, U>( | ||
path: string | RegExp | (string | RegExp)[], | ||
path: string | RegExp | Array<string | RegExp>, | ||
middleware: Koa.Middleware<T, U>, | ||
@@ -415,3 +403,3 @@ routeHandler: Router.IMiddleware<StateT & T, CustomT & U>, | ||
options( | ||
path: string | RegExp | (string | RegExp)[], | ||
path: string | RegExp | Array<string | RegExp>, | ||
...middleware: Array<Router.IMiddleware<StateT, CustomT>> | ||
@@ -426,3 +414,3 @@ ): Router<StateT, CustomT>; | ||
options<T, U>( | ||
path: string | RegExp | (string | RegExp)[], | ||
path: string | RegExp | Array<string | RegExp>, | ||
middleware: Koa.Middleware<T, U>, | ||
@@ -441,3 +429,3 @@ routeHandler: Router.IMiddleware<StateT & T, CustomT & U>, | ||
patch( | ||
path: string | RegExp | (string | RegExp)[], | ||
path: string | RegExp | Array<string | RegExp>, | ||
...middleware: Array<Router.IMiddleware<StateT, CustomT>> | ||
@@ -452,3 +440,3 @@ ): Router<StateT, CustomT>; | ||
patch<T, U>( | ||
path: string | RegExp | (string | RegExp)[], | ||
path: string | RegExp | Array<string | RegExp>, | ||
middleware: Koa.Middleware<T, U>, | ||
@@ -467,3 +455,3 @@ routeHandler: Router.IMiddleware<StateT & T, CustomT & U>, | ||
all( | ||
path: string | RegExp | (string | RegExp)[], | ||
path: string | RegExp | Array<string | RegExp>, | ||
...middleware: Array<Router.IMiddleware<StateT, CustomT>> | ||
@@ -478,3 +466,3 @@ ): Router<StateT, CustomT>; | ||
all<T, U>( | ||
path: string | RegExp | (string | RegExp)[], | ||
path: string | RegExp | Array<string | RegExp>, | ||
middleware: Koa.Middleware<T, U>, | ||
@@ -546,3 +534,2 @@ routeHandler: Router.IMiddleware<StateT & T, CustomT & U>, | ||
* // => "/users/3?limit=1" | ||
* | ||
*/ | ||
@@ -549,0 +536,0 @@ url(name: string, params: any, options?: Router.IUrlOptionsQuery): string; |
{ | ||
"name": "@types/koa-router", | ||
"version": "7.4.4", | ||
"version": "7.4.8", | ||
"description": "TypeScript definitions for koa-router", | ||
@@ -10,34 +10,34 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/koa-router", | ||
"name": "Jerry Chin", | ||
"url": "https://github.com/hellopao", | ||
"githubUsername": "hellopao" | ||
"githubUsername": "hellopao", | ||
"url": "https://github.com/hellopao" | ||
}, | ||
{ | ||
"name": "Pavel Ivanov", | ||
"url": "https://github.com/schfkt", | ||
"githubUsername": "schfkt" | ||
"githubUsername": "schfkt", | ||
"url": "https://github.com/schfkt" | ||
}, | ||
{ | ||
"name": "JounQin", | ||
"url": "https://github.com/JounQin", | ||
"githubUsername": "JounQin" | ||
"githubUsername": "JounQin", | ||
"url": "https://github.com/JounQin" | ||
}, | ||
{ | ||
"name": "Romain Faust", | ||
"url": "https://github.com/romain-faust", | ||
"githubUsername": "romain-faust" | ||
"githubUsername": "romain-faust", | ||
"url": "https://github.com/romain-faust" | ||
}, | ||
{ | ||
"name": "Guillaume Mayer", | ||
"url": "https://github.com/Guillaume-Mayer", | ||
"githubUsername": "Guillaume-Mayer" | ||
"githubUsername": "Guillaume-Mayer", | ||
"url": "https://github.com/Guillaume-Mayer" | ||
}, | ||
{ | ||
"name": "Andrea Gueugnaut", | ||
"url": "https://github.com/falinor", | ||
"githubUsername": "falinor" | ||
"githubUsername": "falinor", | ||
"url": "https://github.com/falinor" | ||
}, | ||
{ | ||
"name": "Yves Kaufmann", | ||
"url": "https://github.com/yveskaufmann", | ||
"githubUsername": "yveskaufmann" | ||
"githubUsername": "yveskaufmann", | ||
"url": "https://github.com/yveskaufmann" | ||
} | ||
@@ -56,4 +56,4 @@ ], | ||
}, | ||
"typesPublisherContentHash": "30052239134a87b7618e7c303f5cd7b0bed8554148a9561e06dc376bb92467ac", | ||
"typeScriptVersion": "3.6" | ||
"typesPublisherContentHash": "8fb6a0375d3dfe4348d424dd56b9467224fe57c8dffdf2252add89bb166ac0c5", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -11,7 +11,6 @@ # Installation | ||
### Additional Details | ||
* Last updated: Fri, 09 Jul 2021 02:32:32 GMT | ||
* Last updated: Mon, 20 Nov 2023 23:36:24 GMT | ||
* Dependencies: [@types/koa](https://npmjs.com/package/@types/koa) | ||
* Global values: none | ||
# Credits | ||
These definitions were written by [Jerry Chin](https://github.com/hellopao), [Pavel Ivanov](https://github.com/schfkt), [JounQin](https://github.com/JounQin), [Romain Faust](https://github.com/romain-faust), [Guillaume Mayer](https://github.com/Guillaume-Mayer), [Andrea Gueugnaut](https://github.com/falinor), and [Yves Kaufmann](https://github.com/yveskaufmann). |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20522
482
16