diff --git a/index.d.ts b/index.d.ts index 0b2a94e..c7f1299 100644 --- a/index.d.ts +++ b/index.d.ts @@ -53,6 +53,7 @@ declare class Router { * @property {Object} headers Object you can set response headers in * @property {number} status Return status code (default: `204`) * @property {Object|string} body Either an `object` (will be converted to JSON) or a string + * @property {Response} response A response object that is to be returned, this will void all other res properties and return this as is. */ /** * Next Function @@ -290,6 +291,10 @@ type RouterResponse = { * Return status code (default: `204`) */ status: number + /** + * A response object to be directly returned to the client + */ + response: Response /** * Either an `object` (will be converted to JSON) or a string */