@openworkers/workers-types 0.1.7 → 0.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openworkers/workers-types",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "description": "TypeScript types for the OpenWorkers runtime",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -22,7 +22,7 @@
22
22
  "format": "prettier --write ."
23
23
  },
24
24
  "peerDependencies": {
25
- "typescript": "^5"
25
+ "typescript": "^5.9.3"
26
26
  },
27
27
  "publishConfig": {
28
28
  "access": "public",
@@ -98,6 +98,13 @@ declare global {
98
98
  * Deletes a key.
99
99
  */
100
100
  delete(key: string): Promise<void>;
101
+
102
+ /**
103
+ * Fetches a static asset from the bundle (same as BindingAssets).
104
+ * @param input The asset path, URL, or request.
105
+ * @param init Optional request options.
106
+ */
107
+ fetch(input: Request | string | URL, init?: RequestInit): Promise<Response>;
101
108
  }
102
109
 
103
110
  /**
@@ -48,7 +48,7 @@ declare global {
48
48
  * For Hono/Cloudflare Workers compatibility.
49
49
  * @deprecated Not implemented in OpenWorkers
50
50
  */
51
- props: never;
51
+ props?: never;
52
52
  }
53
53
 
54
54
  /**