1
0

Fix the ts object

This commit is contained in:
Simon Blomsterlund
2021-11-07 23:22:18 +02:00
parent fa2e293dda
commit f6c7316e09

5
index.d.ts vendored
View File

@@ -53,6 +53,7 @@ declare class Router {
* @property {Object<string, string>} headers Object you can set response headers in
* @property {number} status Return status code (default: `204`)
* @property {Object<string, string>|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
*/