Fix the ts object
This commit is contained in:
5
index.d.ts
vendored
5
index.d.ts
vendored
@@ -53,6 +53,7 @@ declare class Router {
|
|||||||
* @property {Object<string, string>} headers Object you can set response headers in
|
* @property {Object<string, string>} headers Object you can set response headers in
|
||||||
* @property {number} status Return status code (default: `204`)
|
* @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 {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
|
* Next Function
|
||||||
@@ -290,6 +291,10 @@ type RouterResponse = {
|
|||||||
* Return status code (default: `204`)
|
* Return status code (default: `204`)
|
||||||
*/
|
*/
|
||||||
status: number
|
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
|
* Either an `object` (will be converted to JSON) or a string
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user