1
0

Make Request user exdendable

This commit is contained in:
2022-06-08 14:53:59 +02:00
parent 20b71657c8
commit d82f47b0da
2 changed files with 6 additions and 1 deletions

5
index.d.ts vendored
View File

@@ -298,6 +298,11 @@ type RouterRequest = {
* Only available if method is `POST`, `PUT` or `PATCH`. Contains either the received body string or a parsed object if valid JSON was sent. * Only available if method is `POST`, `PUT` or `PATCH`. Contains either the received body string or a parsed object if valid JSON was sent.
*/ */
body: any body: any
/**
* Make it user extendable
*/
[key: string]: any
} }
/** /**
* Response Object * Response Object

View File

@@ -1,6 +1,6 @@
{ {
"name": "@tsndr/cloudflare-worker-router", "name": "@tsndr/cloudflare-worker-router",
"version": "1.3.2", "version": "1.3.3",
"description": "", "description": "",
"main": "index.js", "main": "index.js",
"scripts": {}, "scripts": {},