@workers-community/workers-types 4.20251115.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 +6 -15
- package/index.ts +6 -15
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -530,17 +530,7 @@ interface StructuredSerializeOptions {
|
|
|
530
530
|
transfer?: any[];
|
|
531
531
|
}
|
|
532
532
|
declare abstract class Navigator {
|
|
533
|
-
sendBeacon(
|
|
534
|
-
url: string,
|
|
535
|
-
body?:
|
|
536
|
-
| ReadableStream
|
|
537
|
-
| string
|
|
538
|
-
| (ArrayBuffer | ArrayBufferView)
|
|
539
|
-
| Blob
|
|
540
|
-
| FormData
|
|
541
|
-
| URLSearchParams
|
|
542
|
-
| URLSearchParams,
|
|
543
|
-
): boolean;
|
|
533
|
+
sendBeacon(url: string, body?: BodyInit): boolean;
|
|
544
534
|
readonly userAgent: string;
|
|
545
535
|
readonly hardwareConcurrency: number;
|
|
546
536
|
}
|
|
@@ -9539,17 +9529,18 @@ declare namespace CloudflareWorkersModule {
|
|
|
9539
9529
|
protected ctx: ExecutionContext<Props>;
|
|
9540
9530
|
protected env: Env;
|
|
9541
9531
|
constructor(ctx: ExecutionContext, env: Env);
|
|
9532
|
+
email?(message: ForwardableEmailMessage): void | Promise<void>;
|
|
9542
9533
|
fetch?(request: Request): Response | Promise<Response>;
|
|
9534
|
+
queue?(batch: MessageBatch<unknown>): void | Promise<void>;
|
|
9535
|
+
scheduled?(controller: ScheduledController): void | Promise<void>;
|
|
9543
9536
|
tail?(events: TraceItem[]): void | Promise<void>;
|
|
9544
9537
|
tailStream?(
|
|
9545
9538
|
event: TailStream.TailEvent<TailStream.Onset>,
|
|
9546
9539
|
):
|
|
9547
9540
|
| TailStream.TailEventHandlerType
|
|
9548
9541
|
| Promise<TailStream.TailEventHandlerType>;
|
|
9549
|
-
trace?(traces: TraceItem[]): void | Promise<void>;
|
|
9550
|
-
scheduled?(controller: ScheduledController): void | Promise<void>;
|
|
9551
|
-
queue?(batch: MessageBatch<unknown>): void | Promise<void>;
|
|
9552
9542
|
test?(controller: TestController): void | Promise<void>;
|
|
9543
|
+
trace?(traces: TraceItem[]): void | Promise<void>;
|
|
9553
9544
|
}
|
|
9554
9545
|
export abstract class DurableObject<Env = Cloudflare.Env, Props = {}>
|
|
9555
9546
|
implements Rpc.DurableObjectBranded
|
|
@@ -9558,8 +9549,8 @@ declare namespace CloudflareWorkersModule {
|
|
|
9558
9549
|
protected ctx: DurableObjectState<Props>;
|
|
9559
9550
|
protected env: Env;
|
|
9560
9551
|
constructor(ctx: DurableObjectState, env: Env);
|
|
9561
|
-
fetch?(request: Request): Response | Promise<Response>;
|
|
9562
9552
|
alarm?(alarmInfo?: AlarmInvocationInfo): void | Promise<void>;
|
|
9553
|
+
fetch?(request: Request): Response | Promise<Response>;
|
|
9563
9554
|
webSocketMessage?(
|
|
9564
9555
|
ws: WebSocket,
|
|
9565
9556
|
message: string | ArrayBuffer,
|
package/index.ts
CHANGED
|
@@ -535,17 +535,7 @@ export interface StructuredSerializeOptions {
|
|
|
535
535
|
transfer?: any[];
|
|
536
536
|
}
|
|
537
537
|
export declare abstract class Navigator {
|
|
538
|
-
sendBeacon(
|
|
539
|
-
url: string,
|
|
540
|
-
body?:
|
|
541
|
-
| ReadableStream
|
|
542
|
-
| string
|
|
543
|
-
| (ArrayBuffer | ArrayBufferView)
|
|
544
|
-
| Blob
|
|
545
|
-
| FormData
|
|
546
|
-
| URLSearchParams
|
|
547
|
-
| URLSearchParams,
|
|
548
|
-
): boolean;
|
|
538
|
+
sendBeacon(url: string, body?: BodyInit): boolean;
|
|
549
539
|
readonly userAgent: string;
|
|
550
540
|
readonly hardwareConcurrency: number;
|
|
551
541
|
}
|
|
@@ -9514,17 +9504,18 @@ export declare namespace CloudflareWorkersModule {
|
|
|
9514
9504
|
protected ctx: ExecutionContext<Props>;
|
|
9515
9505
|
protected env: Env;
|
|
9516
9506
|
constructor(ctx: ExecutionContext, env: Env);
|
|
9507
|
+
email?(message: ForwardableEmailMessage): void | Promise<void>;
|
|
9517
9508
|
fetch?(request: Request): Response | Promise<Response>;
|
|
9509
|
+
queue?(batch: MessageBatch<unknown>): void | Promise<void>;
|
|
9510
|
+
scheduled?(controller: ScheduledController): void | Promise<void>;
|
|
9518
9511
|
tail?(events: TraceItem[]): void | Promise<void>;
|
|
9519
9512
|
tailStream?(
|
|
9520
9513
|
event: TailStream.TailEvent<TailStream.Onset>,
|
|
9521
9514
|
):
|
|
9522
9515
|
| TailStream.TailEventHandlerType
|
|
9523
9516
|
| Promise<TailStream.TailEventHandlerType>;
|
|
9524
|
-
trace?(traces: TraceItem[]): void | Promise<void>;
|
|
9525
|
-
scheduled?(controller: ScheduledController): void | Promise<void>;
|
|
9526
|
-
queue?(batch: MessageBatch<unknown>): void | Promise<void>;
|
|
9527
9517
|
test?(controller: TestController): void | Promise<void>;
|
|
9518
|
+
trace?(traces: TraceItem[]): void | Promise<void>;
|
|
9528
9519
|
}
|
|
9529
9520
|
export abstract class DurableObject<Env = Cloudflare.Env, Props = {}>
|
|
9530
9521
|
implements Rpc.DurableObjectBranded
|
|
@@ -9533,8 +9524,8 @@ export declare namespace CloudflareWorkersModule {
|
|
|
9533
9524
|
protected ctx: DurableObjectState<Props>;
|
|
9534
9525
|
protected env: Env;
|
|
9535
9526
|
constructor(ctx: DurableObjectState, env: Env);
|
|
9536
|
-
fetch?(request: Request): Response | Promise<Response>;
|
|
9537
9527
|
alarm?(alarmInfo?: AlarmInvocationInfo): void | Promise<void>;
|
|
9528
|
+
fetch?(request: Request): Response | Promise<Response>;
|
|
9538
9529
|
webSocketMessage?(
|
|
9539
9530
|
ws: WebSocket,
|
|
9540
9531
|
message: string | ArrayBuffer,
|