Add cf object to express req object
This commit is contained in:
1
index.d.ts
vendored
1
index.d.ts
vendored
@@ -45,6 +45,7 @@ declare class Router {
|
||||
* @property {Object<string, string>} query Object containing all query parameters
|
||||
* @property {Object<string, string>} headers Object containing request headers
|
||||
* @property {Object<string, string>|string} body Only available if method is `POST`, `PUT` or `PATCH`. Contains either the received body string or a parsed object if valid JSON was sent.
|
||||
* @property {Object<string, string | number>} cf object containing custom Cloudflare properties. (https://developers.cloudflare.com/workers/examples/accessing-the-cloudflare-object)
|
||||
*/
|
||||
/**
|
||||
* Response Object
|
||||
|
||||
Reference in New Issue
Block a user