Skip to content

Commit 82be00e

Browse files
committed
Add props #2
1 parent ce2173b commit 82be00e

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@openworkers/workers-types",
3-
"version": "0.1.5",
3+
"version": "0.1.6",
44
"description": "TypeScript types for the OpenWorkers runtime",
55
"license": "MIT",
66
"repository": {

types/workers.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@ declare global {
4242
* Must be called before any response is sent.
4343
*/
4444
passThroughOnException(): void;
45+
46+
/**
47+
* Properties passed to the worker.
48+
* For Hono/Cloudflare Workers compatibility.
49+
* @deprecated Not implemented in OpenWorkers
50+
*/
51+
props: never;
4552
}
4653

4754
/**

0 commit comments

Comments
 (0)