diff --git a/restify/restify.d.ts b/restify/restify.d.ts index 1cb61fd23f..44c379fb36 100644 --- a/restify/restify.d.ts +++ b/restify/restify.d.ts @@ -113,17 +113,26 @@ declare module "restify" { log?: any; toString: () => string; + /** + * Takes an object of route params and query params, and 'renders' a URL + * @param {String} routeName the route name + * @param {Object} params an object of route params + * @param {Object} query an object of query params + * @returns {String} + */ + render: (routeName: string, params: Object, query?: Object) => string; + /** * adds a route. * @param {Object} options an options object - * @returns {String} returns the route name if creation is successful. + * @returns {String} returns the route name if creation is successful. */ mount: (options: Object) => string; /** * unmounts a route. * @param {String} name the route name - * @returns {String} the name of the deleted route (or false if it was not matched) + * @returns {String} the name of the deleted route (or false if it was not matched) */ unmount: (name: string) => string | boolean; }