mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 22:37:03 +00:00
add LINK and UNLINK http verbs to koa-router (#30520)
https://github.com/DefinitelyTyped/DefinitelyTyped/issues/30464
This commit is contained in:
committed by
Pranav Senthilnathan
parent
d8af87d9b5
commit
7cdff8cd12
Vendored
+13
@@ -183,6 +183,19 @@ declare class Router {
|
||||
*/
|
||||
put(name: string, path: string | RegExp, ...middleware: Array<Router.IMiddleware>): Router;
|
||||
put(path: string | RegExp | (string | RegExp)[], ...middleware: Array<Router.IMiddleware>): Router;
|
||||
|
||||
/**
|
||||
* HTTP link method
|
||||
*/
|
||||
link(name: string, path: string | RegExp, ...middleware: Array<Router.IMiddleware>): Router;
|
||||
link(path: string | RegExp | (string | RegExp)[], ...middleware: Array<Router.IMiddleware>): Router;
|
||||
|
||||
/**
|
||||
* HTTP unlink method
|
||||
*/
|
||||
unlink(name: string, path: string | RegExp, ...middleware: Array<Router.IMiddleware>): Router;
|
||||
unlink(path: string | RegExp | (string | RegExp)[], ...middleware: Array<Router.IMiddleware>): Router;
|
||||
|
||||
|
||||
/**
|
||||
* HTTP delete method
|
||||
|
||||
Reference in New Issue
Block a user