1
0

Add cf object to express req object

This commit is contained in:
Jithin Shah
2021-11-16 12:37:46 +05:30
parent ec9f99e132
commit d37f37ff92
2 changed files with 3 additions and 1 deletions

1
index.d.ts vendored
View File

@@ -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