@cloudflare/workers-types 3.9.0 → 3.10.0
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/index.d.ts +6 -5
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -231,6 +231,7 @@ declare abstract class Crypto {
|
|
|
231
231
|
| BigUint64Array
|
|
232
232
|
>(buffer: T): T;
|
|
233
233
|
randomUUID(): string;
|
|
234
|
+
DigestStream: typeof DigestStream;
|
|
234
235
|
}
|
|
235
236
|
|
|
236
237
|
declare abstract class CryptoKey {
|
|
@@ -621,7 +622,7 @@ declare class ExtendableEvent extends Event {
|
|
|
621
622
|
waitUntil(promise: Promise<any>): void;
|
|
622
623
|
}
|
|
623
624
|
|
|
624
|
-
declare abstract class FetchEvent extends
|
|
625
|
+
declare abstract class FetchEvent extends ExtendableEvent {
|
|
625
626
|
readonly request: Request;
|
|
626
627
|
respondWith(promise: Response | Promise<Response>): void;
|
|
627
628
|
passThroughOnException(): void;
|
|
@@ -1028,10 +1029,6 @@ interface R2Conditional {
|
|
|
1028
1029
|
uploadedAfter?: Date;
|
|
1029
1030
|
}
|
|
1030
1031
|
|
|
1031
|
-
interface R2Error {
|
|
1032
|
-
readonly stack: string;
|
|
1033
|
-
}
|
|
1034
|
-
|
|
1035
1032
|
/**
|
|
1036
1033
|
* Options for retrieving the object metadata nad payload.
|
|
1037
1034
|
*/
|
|
@@ -2013,3 +2010,7 @@ declare type PagesPluginFunction<
|
|
|
2013
2010
|
> = (
|
|
2014
2011
|
context: EventPluginContext<Env, Params, Data, PluginArgs>
|
|
2015
2012
|
) => Response | Promise<Response>;
|
|
2013
|
+
|
|
2014
|
+
declare module "assets:*" {
|
|
2015
|
+
export const onRequest: PagesFunction;
|
|
2016
|
+
}
|