@workers-community/workers-types 4.20251117.0 → 4.20251118.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 +5 -4
- package/index.ts +5 -4
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -9529,17 +9529,18 @@ declare namespace CloudflareWorkersModule {
|
|
|
9529
9529
|
protected ctx: ExecutionContext<Props>;
|
|
9530
9530
|
protected env: Env;
|
|
9531
9531
|
constructor(ctx: ExecutionContext, env: Env);
|
|
9532
|
+
email?(message: ForwardableEmailMessage): void | Promise<void>;
|
|
9532
9533
|
fetch?(request: Request): Response | Promise<Response>;
|
|
9534
|
+
queue?(batch: MessageBatch<unknown>): void | Promise<void>;
|
|
9535
|
+
scheduled?(controller: ScheduledController): void | Promise<void>;
|
|
9533
9536
|
tail?(events: TraceItem[]): void | Promise<void>;
|
|
9534
9537
|
tailStream?(
|
|
9535
9538
|
event: TailStream.TailEvent<TailStream.Onset>,
|
|
9536
9539
|
):
|
|
9537
9540
|
| TailStream.TailEventHandlerType
|
|
9538
9541
|
| Promise<TailStream.TailEventHandlerType>;
|
|
9539
|
-
trace?(traces: TraceItem[]): void | Promise<void>;
|
|
9540
|
-
scheduled?(controller: ScheduledController): void | Promise<void>;
|
|
9541
|
-
queue?(batch: MessageBatch<unknown>): void | Promise<void>;
|
|
9542
9542
|
test?(controller: TestController): void | Promise<void>;
|
|
9543
|
+
trace?(traces: TraceItem[]): void | Promise<void>;
|
|
9543
9544
|
}
|
|
9544
9545
|
export abstract class DurableObject<Env = Cloudflare.Env, Props = {}>
|
|
9545
9546
|
implements Rpc.DurableObjectBranded
|
|
@@ -9548,8 +9549,8 @@ declare namespace CloudflareWorkersModule {
|
|
|
9548
9549
|
protected ctx: DurableObjectState<Props>;
|
|
9549
9550
|
protected env: Env;
|
|
9550
9551
|
constructor(ctx: DurableObjectState, env: Env);
|
|
9551
|
-
fetch?(request: Request): Response | Promise<Response>;
|
|
9552
9552
|
alarm?(alarmInfo?: AlarmInvocationInfo): void | Promise<void>;
|
|
9553
|
+
fetch?(request: Request): Response | Promise<Response>;
|
|
9553
9554
|
webSocketMessage?(
|
|
9554
9555
|
ws: WebSocket,
|
|
9555
9556
|
message: string | ArrayBuffer,
|
package/index.ts
CHANGED
|
@@ -9504,17 +9504,18 @@ export declare namespace CloudflareWorkersModule {
|
|
|
9504
9504
|
protected ctx: ExecutionContext<Props>;
|
|
9505
9505
|
protected env: Env;
|
|
9506
9506
|
constructor(ctx: ExecutionContext, env: Env);
|
|
9507
|
+
email?(message: ForwardableEmailMessage): void | Promise<void>;
|
|
9507
9508
|
fetch?(request: Request): Response | Promise<Response>;
|
|
9509
|
+
queue?(batch: MessageBatch<unknown>): void | Promise<void>;
|
|
9510
|
+
scheduled?(controller: ScheduledController): void | Promise<void>;
|
|
9508
9511
|
tail?(events: TraceItem[]): void | Promise<void>;
|
|
9509
9512
|
tailStream?(
|
|
9510
9513
|
event: TailStream.TailEvent<TailStream.Onset>,
|
|
9511
9514
|
):
|
|
9512
9515
|
| TailStream.TailEventHandlerType
|
|
9513
9516
|
| Promise<TailStream.TailEventHandlerType>;
|
|
9514
|
-
trace?(traces: TraceItem[]): void | Promise<void>;
|
|
9515
|
-
scheduled?(controller: ScheduledController): void | Promise<void>;
|
|
9516
|
-
queue?(batch: MessageBatch<unknown>): void | Promise<void>;
|
|
9517
9517
|
test?(controller: TestController): void | Promise<void>;
|
|
9518
|
+
trace?(traces: TraceItem[]): void | Promise<void>;
|
|
9518
9519
|
}
|
|
9519
9520
|
export abstract class DurableObject<Env = Cloudflare.Env, Props = {}>
|
|
9520
9521
|
implements Rpc.DurableObjectBranded
|
|
@@ -9523,8 +9524,8 @@ export declare namespace CloudflareWorkersModule {
|
|
|
9523
9524
|
protected ctx: DurableObjectState<Props>;
|
|
9524
9525
|
protected env: Env;
|
|
9525
9526
|
constructor(ctx: DurableObjectState, env: Env);
|
|
9526
|
-
fetch?(request: Request): Response | Promise<Response>;
|
|
9527
9527
|
alarm?(alarmInfo?: AlarmInvocationInfo): void | Promise<void>;
|
|
9528
|
+
fetch?(request: Request): Response | Promise<Response>;
|
|
9528
9529
|
webSocketMessage?(
|
|
9529
9530
|
ws: WebSocket,
|
|
9530
9531
|
message: string | ArrayBuffer,
|