Skip to content

Commit

Permalink
Make Request user exdendable
Browse files Browse the repository at this point in the history
  • Loading branch information
tsndr committed Jun 8, 2022
1 parent 20b7165 commit d82f47b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
body: any

/**
* Make it user extendable
*/
[key: string]: any
}
/**
* Response Object
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tsndr/cloudflare-worker-router",
"version": "1.3.2",
"version": "1.3.3",
"description": "",
"main": "index.js",
"scripts": {},
Expand Down

0 comments on commit d82f47b

Please sign in to comment.