mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 23:07:06 +00:00
Restify : Router.find() method (#13941)
This commit is contained in:
committed by
Mohamed Hegazy
parent
558a6ef46c
commit
777b33e5fa
Vendored
+9
@@ -380,6 +380,15 @@ interface Router {
|
||||
* @returns {String} the name of the deleted route (or false if it was not matched)
|
||||
*/
|
||||
unmount: (name: string) => string | boolean;
|
||||
|
||||
/**
|
||||
* finds the route for a given request and response.
|
||||
* @param {Request} req the request object
|
||||
* @param {Response} res the response object
|
||||
* @param {Function} callback operation callback
|
||||
* @returns {undefined}
|
||||
*/
|
||||
find: (req: Request, res: Response, callback: (err: Error, route: Route) => void) => void;
|
||||
}
|
||||
|
||||
interface Server extends http.Server {
|
||||
|
||||
Reference in New Issue
Block a user