We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16d36ce commit c3a43f6Copy full SHA for c3a43f6
2 files changed
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "@openworkers/workers-types",
3
- "version": "0.1.7",
+ "version": "0.1.8",
4
"description": "TypeScript types for the OpenWorkers runtime",
5
"license": "MIT",
6
"repository": {
types/bindings.d.ts
@@ -98,6 +98,13 @@ declare global {
98
* Deletes a key.
99
*/
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>;
108
}
109
110
/**
0 commit comments