From 777b33e5fa0a06ab606b2f10e1a4a71c9ab9db3d Mon Sep 17 00:00:00 2001 From: Julien CROUZET Date: Wed, 18 Jan 2017 07:13:39 +0100 Subject: [PATCH] Restify : Router.find() method (#13941) --- restify/index.d.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/restify/index.d.ts b/restify/index.d.ts index 40a6938127..f53aa0eba9 100644 --- a/restify/index.d.ts +++ b/restify/index.d.ts @@ -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 {