@cloudflare/workers-types 4.20250923.0 → 4.20250926.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/2021-11-03/index.d.ts +11 -16
- package/2022-01-31/index.d.ts +11 -16
- package/2022-03-21/index.d.ts +11 -16
- package/2022-08-04/index.d.ts +11 -16
- package/2022-10-31/index.d.ts +11 -16
- package/2022-11-30/index.d.ts +11 -16
- package/2023-03-01/index.d.ts +11 -16
- package/2023-07-01/index.d.ts +11 -16
- package/experimental/index.d.ts +12 -16
- package/experimental/index.ts +1 -0
- package/index.d.ts +11 -16
- package/latest/index.d.ts +11 -16
- package/oldest/index.d.ts +11 -16
- package/package.json +1 -1
package/2021-11-03/index.d.ts
CHANGED
|
@@ -8442,6 +8442,17 @@ interface MediaError extends Error {
|
|
|
8442
8442
|
readonly message: string;
|
|
8443
8443
|
readonly stack?: string;
|
|
8444
8444
|
}
|
|
8445
|
+
declare module "cloudflare:node" {
|
|
8446
|
+
interface NodeStyleServer {
|
|
8447
|
+
listen(...args: unknown[]): this;
|
|
8448
|
+
address(): {
|
|
8449
|
+
port?: number | null | undefined;
|
|
8450
|
+
};
|
|
8451
|
+
}
|
|
8452
|
+
export function httpServerHandler(port: number): ExportedHandler;
|
|
8453
|
+
export function httpServerHandler(options: { port: number }): ExportedHandler;
|
|
8454
|
+
export function httpServerHandler(server: NodeStyleServer): ExportedHandler;
|
|
8455
|
+
}
|
|
8445
8456
|
type Params<P extends string = any> = Record<P, string | string[]>;
|
|
8446
8457
|
type EventContext<Env, P extends string, Data> = {
|
|
8447
8458
|
request: Request<unknown, IncomingRequestCfProperties<unknown>>;
|
|
@@ -8787,22 +8798,6 @@ declare namespace Cloudflare {
|
|
|
8787
8798
|
: {});
|
|
8788
8799
|
};
|
|
8789
8800
|
}
|
|
8790
|
-
declare module "cloudflare:node" {
|
|
8791
|
-
export interface DefaultHandler {
|
|
8792
|
-
fetch?(request: Request): Response | Promise<Response>;
|
|
8793
|
-
tail?(events: TraceItem[]): void | Promise<void>;
|
|
8794
|
-
trace?(traces: TraceItem[]): void | Promise<void>;
|
|
8795
|
-
scheduled?(controller: ScheduledController): void | Promise<void>;
|
|
8796
|
-
queue?(batch: MessageBatch<unknown>): void | Promise<void>;
|
|
8797
|
-
test?(controller: TestController): void | Promise<void>;
|
|
8798
|
-
}
|
|
8799
|
-
export function httpServerHandler(
|
|
8800
|
-
options: {
|
|
8801
|
-
port: number;
|
|
8802
|
-
},
|
|
8803
|
-
handlers?: Omit<DefaultHandler, "fetch">,
|
|
8804
|
-
): DefaultHandler;
|
|
8805
|
-
}
|
|
8806
8801
|
declare namespace CloudflareWorkersModule {
|
|
8807
8802
|
export type RpcStub<T extends Rpc.Stubable> = Rpc.Stub<T>;
|
|
8808
8803
|
export const RpcStub: {
|
package/2022-01-31/index.d.ts
CHANGED
|
@@ -8468,6 +8468,17 @@ interface MediaError extends Error {
|
|
|
8468
8468
|
readonly message: string;
|
|
8469
8469
|
readonly stack?: string;
|
|
8470
8470
|
}
|
|
8471
|
+
declare module "cloudflare:node" {
|
|
8472
|
+
interface NodeStyleServer {
|
|
8473
|
+
listen(...args: unknown[]): this;
|
|
8474
|
+
address(): {
|
|
8475
|
+
port?: number | null | undefined;
|
|
8476
|
+
};
|
|
8477
|
+
}
|
|
8478
|
+
export function httpServerHandler(port: number): ExportedHandler;
|
|
8479
|
+
export function httpServerHandler(options: { port: number }): ExportedHandler;
|
|
8480
|
+
export function httpServerHandler(server: NodeStyleServer): ExportedHandler;
|
|
8481
|
+
}
|
|
8471
8482
|
type Params<P extends string = any> = Record<P, string | string[]>;
|
|
8472
8483
|
type EventContext<Env, P extends string, Data> = {
|
|
8473
8484
|
request: Request<unknown, IncomingRequestCfProperties<unknown>>;
|
|
@@ -8813,22 +8824,6 @@ declare namespace Cloudflare {
|
|
|
8813
8824
|
: {});
|
|
8814
8825
|
};
|
|
8815
8826
|
}
|
|
8816
|
-
declare module "cloudflare:node" {
|
|
8817
|
-
export interface DefaultHandler {
|
|
8818
|
-
fetch?(request: Request): Response | Promise<Response>;
|
|
8819
|
-
tail?(events: TraceItem[]): void | Promise<void>;
|
|
8820
|
-
trace?(traces: TraceItem[]): void | Promise<void>;
|
|
8821
|
-
scheduled?(controller: ScheduledController): void | Promise<void>;
|
|
8822
|
-
queue?(batch: MessageBatch<unknown>): void | Promise<void>;
|
|
8823
|
-
test?(controller: TestController): void | Promise<void>;
|
|
8824
|
-
}
|
|
8825
|
-
export function httpServerHandler(
|
|
8826
|
-
options: {
|
|
8827
|
-
port: number;
|
|
8828
|
-
},
|
|
8829
|
-
handlers?: Omit<DefaultHandler, "fetch">,
|
|
8830
|
-
): DefaultHandler;
|
|
8831
|
-
}
|
|
8832
8827
|
declare namespace CloudflareWorkersModule {
|
|
8833
8828
|
export type RpcStub<T extends Rpc.Stubable> = Rpc.Stub<T>;
|
|
8834
8829
|
export const RpcStub: {
|
package/2022-03-21/index.d.ts
CHANGED
|
@@ -8486,6 +8486,17 @@ interface MediaError extends Error {
|
|
|
8486
8486
|
readonly message: string;
|
|
8487
8487
|
readonly stack?: string;
|
|
8488
8488
|
}
|
|
8489
|
+
declare module "cloudflare:node" {
|
|
8490
|
+
interface NodeStyleServer {
|
|
8491
|
+
listen(...args: unknown[]): this;
|
|
8492
|
+
address(): {
|
|
8493
|
+
port?: number | null | undefined;
|
|
8494
|
+
};
|
|
8495
|
+
}
|
|
8496
|
+
export function httpServerHandler(port: number): ExportedHandler;
|
|
8497
|
+
export function httpServerHandler(options: { port: number }): ExportedHandler;
|
|
8498
|
+
export function httpServerHandler(server: NodeStyleServer): ExportedHandler;
|
|
8499
|
+
}
|
|
8489
8500
|
type Params<P extends string = any> = Record<P, string | string[]>;
|
|
8490
8501
|
type EventContext<Env, P extends string, Data> = {
|
|
8491
8502
|
request: Request<unknown, IncomingRequestCfProperties<unknown>>;
|
|
@@ -8831,22 +8842,6 @@ declare namespace Cloudflare {
|
|
|
8831
8842
|
: {});
|
|
8832
8843
|
};
|
|
8833
8844
|
}
|
|
8834
|
-
declare module "cloudflare:node" {
|
|
8835
|
-
export interface DefaultHandler {
|
|
8836
|
-
fetch?(request: Request): Response | Promise<Response>;
|
|
8837
|
-
tail?(events: TraceItem[]): void | Promise<void>;
|
|
8838
|
-
trace?(traces: TraceItem[]): void | Promise<void>;
|
|
8839
|
-
scheduled?(controller: ScheduledController): void | Promise<void>;
|
|
8840
|
-
queue?(batch: MessageBatch<unknown>): void | Promise<void>;
|
|
8841
|
-
test?(controller: TestController): void | Promise<void>;
|
|
8842
|
-
}
|
|
8843
|
-
export function httpServerHandler(
|
|
8844
|
-
options: {
|
|
8845
|
-
port: number;
|
|
8846
|
-
},
|
|
8847
|
-
handlers?: Omit<DefaultHandler, "fetch">,
|
|
8848
|
-
): DefaultHandler;
|
|
8849
|
-
}
|
|
8850
8845
|
declare namespace CloudflareWorkersModule {
|
|
8851
8846
|
export type RpcStub<T extends Rpc.Stubable> = Rpc.Stub<T>;
|
|
8852
8847
|
export const RpcStub: {
|
package/2022-08-04/index.d.ts
CHANGED
|
@@ -8487,6 +8487,17 @@ interface MediaError extends Error {
|
|
|
8487
8487
|
readonly message: string;
|
|
8488
8488
|
readonly stack?: string;
|
|
8489
8489
|
}
|
|
8490
|
+
declare module "cloudflare:node" {
|
|
8491
|
+
interface NodeStyleServer {
|
|
8492
|
+
listen(...args: unknown[]): this;
|
|
8493
|
+
address(): {
|
|
8494
|
+
port?: number | null | undefined;
|
|
8495
|
+
};
|
|
8496
|
+
}
|
|
8497
|
+
export function httpServerHandler(port: number): ExportedHandler;
|
|
8498
|
+
export function httpServerHandler(options: { port: number }): ExportedHandler;
|
|
8499
|
+
export function httpServerHandler(server: NodeStyleServer): ExportedHandler;
|
|
8500
|
+
}
|
|
8490
8501
|
type Params<P extends string = any> = Record<P, string | string[]>;
|
|
8491
8502
|
type EventContext<Env, P extends string, Data> = {
|
|
8492
8503
|
request: Request<unknown, IncomingRequestCfProperties<unknown>>;
|
|
@@ -8832,22 +8843,6 @@ declare namespace Cloudflare {
|
|
|
8832
8843
|
: {});
|
|
8833
8844
|
};
|
|
8834
8845
|
}
|
|
8835
|
-
declare module "cloudflare:node" {
|
|
8836
|
-
export interface DefaultHandler {
|
|
8837
|
-
fetch?(request: Request): Response | Promise<Response>;
|
|
8838
|
-
tail?(events: TraceItem[]): void | Promise<void>;
|
|
8839
|
-
trace?(traces: TraceItem[]): void | Promise<void>;
|
|
8840
|
-
scheduled?(controller: ScheduledController): void | Promise<void>;
|
|
8841
|
-
queue?(batch: MessageBatch<unknown>): void | Promise<void>;
|
|
8842
|
-
test?(controller: TestController): void | Promise<void>;
|
|
8843
|
-
}
|
|
8844
|
-
export function httpServerHandler(
|
|
8845
|
-
options: {
|
|
8846
|
-
port: number;
|
|
8847
|
-
},
|
|
8848
|
-
handlers?: Omit<DefaultHandler, "fetch">,
|
|
8849
|
-
): DefaultHandler;
|
|
8850
|
-
}
|
|
8851
8846
|
declare namespace CloudflareWorkersModule {
|
|
8852
8847
|
export type RpcStub<T extends Rpc.Stubable> = Rpc.Stub<T>;
|
|
8853
8848
|
export const RpcStub: {
|
package/2022-10-31/index.d.ts
CHANGED
|
@@ -8491,6 +8491,17 @@ interface MediaError extends Error {
|
|
|
8491
8491
|
readonly message: string;
|
|
8492
8492
|
readonly stack?: string;
|
|
8493
8493
|
}
|
|
8494
|
+
declare module "cloudflare:node" {
|
|
8495
|
+
interface NodeStyleServer {
|
|
8496
|
+
listen(...args: unknown[]): this;
|
|
8497
|
+
address(): {
|
|
8498
|
+
port?: number | null | undefined;
|
|
8499
|
+
};
|
|
8500
|
+
}
|
|
8501
|
+
export function httpServerHandler(port: number): ExportedHandler;
|
|
8502
|
+
export function httpServerHandler(options: { port: number }): ExportedHandler;
|
|
8503
|
+
export function httpServerHandler(server: NodeStyleServer): ExportedHandler;
|
|
8504
|
+
}
|
|
8494
8505
|
type Params<P extends string = any> = Record<P, string | string[]>;
|
|
8495
8506
|
type EventContext<Env, P extends string, Data> = {
|
|
8496
8507
|
request: Request<unknown, IncomingRequestCfProperties<unknown>>;
|
|
@@ -8836,22 +8847,6 @@ declare namespace Cloudflare {
|
|
|
8836
8847
|
: {});
|
|
8837
8848
|
};
|
|
8838
8849
|
}
|
|
8839
|
-
declare module "cloudflare:node" {
|
|
8840
|
-
export interface DefaultHandler {
|
|
8841
|
-
fetch?(request: Request): Response | Promise<Response>;
|
|
8842
|
-
tail?(events: TraceItem[]): void | Promise<void>;
|
|
8843
|
-
trace?(traces: TraceItem[]): void | Promise<void>;
|
|
8844
|
-
scheduled?(controller: ScheduledController): void | Promise<void>;
|
|
8845
|
-
queue?(batch: MessageBatch<unknown>): void | Promise<void>;
|
|
8846
|
-
test?(controller: TestController): void | Promise<void>;
|
|
8847
|
-
}
|
|
8848
|
-
export function httpServerHandler(
|
|
8849
|
-
options: {
|
|
8850
|
-
port: number;
|
|
8851
|
-
},
|
|
8852
|
-
handlers?: Omit<DefaultHandler, "fetch">,
|
|
8853
|
-
): DefaultHandler;
|
|
8854
|
-
}
|
|
8855
8850
|
declare namespace CloudflareWorkersModule {
|
|
8856
8851
|
export type RpcStub<T extends Rpc.Stubable> = Rpc.Stub<T>;
|
|
8857
8852
|
export const RpcStub: {
|
package/2022-11-30/index.d.ts
CHANGED
|
@@ -8496,6 +8496,17 @@ interface MediaError extends Error {
|
|
|
8496
8496
|
readonly message: string;
|
|
8497
8497
|
readonly stack?: string;
|
|
8498
8498
|
}
|
|
8499
|
+
declare module "cloudflare:node" {
|
|
8500
|
+
interface NodeStyleServer {
|
|
8501
|
+
listen(...args: unknown[]): this;
|
|
8502
|
+
address(): {
|
|
8503
|
+
port?: number | null | undefined;
|
|
8504
|
+
};
|
|
8505
|
+
}
|
|
8506
|
+
export function httpServerHandler(port: number): ExportedHandler;
|
|
8507
|
+
export function httpServerHandler(options: { port: number }): ExportedHandler;
|
|
8508
|
+
export function httpServerHandler(server: NodeStyleServer): ExportedHandler;
|
|
8509
|
+
}
|
|
8499
8510
|
type Params<P extends string = any> = Record<P, string | string[]>;
|
|
8500
8511
|
type EventContext<Env, P extends string, Data> = {
|
|
8501
8512
|
request: Request<unknown, IncomingRequestCfProperties<unknown>>;
|
|
@@ -8841,22 +8852,6 @@ declare namespace Cloudflare {
|
|
|
8841
8852
|
: {});
|
|
8842
8853
|
};
|
|
8843
8854
|
}
|
|
8844
|
-
declare module "cloudflare:node" {
|
|
8845
|
-
export interface DefaultHandler {
|
|
8846
|
-
fetch?(request: Request): Response | Promise<Response>;
|
|
8847
|
-
tail?(events: TraceItem[]): void | Promise<void>;
|
|
8848
|
-
trace?(traces: TraceItem[]): void | Promise<void>;
|
|
8849
|
-
scheduled?(controller: ScheduledController): void | Promise<void>;
|
|
8850
|
-
queue?(batch: MessageBatch<unknown>): void | Promise<void>;
|
|
8851
|
-
test?(controller: TestController): void | Promise<void>;
|
|
8852
|
-
}
|
|
8853
|
-
export function httpServerHandler(
|
|
8854
|
-
options: {
|
|
8855
|
-
port: number;
|
|
8856
|
-
},
|
|
8857
|
-
handlers?: Omit<DefaultHandler, "fetch">,
|
|
8858
|
-
): DefaultHandler;
|
|
8859
|
-
}
|
|
8860
8855
|
declare namespace CloudflareWorkersModule {
|
|
8861
8856
|
export type RpcStub<T extends Rpc.Stubable> = Rpc.Stub<T>;
|
|
8862
8857
|
export const RpcStub: {
|
package/2023-03-01/index.d.ts
CHANGED
|
@@ -8498,6 +8498,17 @@ interface MediaError extends Error {
|
|
|
8498
8498
|
readonly message: string;
|
|
8499
8499
|
readonly stack?: string;
|
|
8500
8500
|
}
|
|
8501
|
+
declare module "cloudflare:node" {
|
|
8502
|
+
interface NodeStyleServer {
|
|
8503
|
+
listen(...args: unknown[]): this;
|
|
8504
|
+
address(): {
|
|
8505
|
+
port?: number | null | undefined;
|
|
8506
|
+
};
|
|
8507
|
+
}
|
|
8508
|
+
export function httpServerHandler(port: number): ExportedHandler;
|
|
8509
|
+
export function httpServerHandler(options: { port: number }): ExportedHandler;
|
|
8510
|
+
export function httpServerHandler(server: NodeStyleServer): ExportedHandler;
|
|
8511
|
+
}
|
|
8501
8512
|
type Params<P extends string = any> = Record<P, string | string[]>;
|
|
8502
8513
|
type EventContext<Env, P extends string, Data> = {
|
|
8503
8514
|
request: Request<unknown, IncomingRequestCfProperties<unknown>>;
|
|
@@ -8843,22 +8854,6 @@ declare namespace Cloudflare {
|
|
|
8843
8854
|
: {});
|
|
8844
8855
|
};
|
|
8845
8856
|
}
|
|
8846
|
-
declare module "cloudflare:node" {
|
|
8847
|
-
export interface DefaultHandler {
|
|
8848
|
-
fetch?(request: Request): Response | Promise<Response>;
|
|
8849
|
-
tail?(events: TraceItem[]): void | Promise<void>;
|
|
8850
|
-
trace?(traces: TraceItem[]): void | Promise<void>;
|
|
8851
|
-
scheduled?(controller: ScheduledController): void | Promise<void>;
|
|
8852
|
-
queue?(batch: MessageBatch<unknown>): void | Promise<void>;
|
|
8853
|
-
test?(controller: TestController): void | Promise<void>;
|
|
8854
|
-
}
|
|
8855
|
-
export function httpServerHandler(
|
|
8856
|
-
options: {
|
|
8857
|
-
port: number;
|
|
8858
|
-
},
|
|
8859
|
-
handlers?: Omit<DefaultHandler, "fetch">,
|
|
8860
|
-
): DefaultHandler;
|
|
8861
|
-
}
|
|
8862
8857
|
declare namespace CloudflareWorkersModule {
|
|
8863
8858
|
export type RpcStub<T extends Rpc.Stubable> = Rpc.Stub<T>;
|
|
8864
8859
|
export const RpcStub: {
|
package/2023-07-01/index.d.ts
CHANGED
|
@@ -8498,6 +8498,17 @@ interface MediaError extends Error {
|
|
|
8498
8498
|
readonly message: string;
|
|
8499
8499
|
readonly stack?: string;
|
|
8500
8500
|
}
|
|
8501
|
+
declare module "cloudflare:node" {
|
|
8502
|
+
interface NodeStyleServer {
|
|
8503
|
+
listen(...args: unknown[]): this;
|
|
8504
|
+
address(): {
|
|
8505
|
+
port?: number | null | undefined;
|
|
8506
|
+
};
|
|
8507
|
+
}
|
|
8508
|
+
export function httpServerHandler(port: number): ExportedHandler;
|
|
8509
|
+
export function httpServerHandler(options: { port: number }): ExportedHandler;
|
|
8510
|
+
export function httpServerHandler(server: NodeStyleServer): ExportedHandler;
|
|
8511
|
+
}
|
|
8501
8512
|
type Params<P extends string = any> = Record<P, string | string[]>;
|
|
8502
8513
|
type EventContext<Env, P extends string, Data> = {
|
|
8503
8514
|
request: Request<unknown, IncomingRequestCfProperties<unknown>>;
|
|
@@ -8843,22 +8854,6 @@ declare namespace Cloudflare {
|
|
|
8843
8854
|
: {});
|
|
8844
8855
|
};
|
|
8845
8856
|
}
|
|
8846
|
-
declare module "cloudflare:node" {
|
|
8847
|
-
export interface DefaultHandler {
|
|
8848
|
-
fetch?(request: Request): Response | Promise<Response>;
|
|
8849
|
-
tail?(events: TraceItem[]): void | Promise<void>;
|
|
8850
|
-
trace?(traces: TraceItem[]): void | Promise<void>;
|
|
8851
|
-
scheduled?(controller: ScheduledController): void | Promise<void>;
|
|
8852
|
-
queue?(batch: MessageBatch<unknown>): void | Promise<void>;
|
|
8853
|
-
test?(controller: TestController): void | Promise<void>;
|
|
8854
|
-
}
|
|
8855
|
-
export function httpServerHandler(
|
|
8856
|
-
options: {
|
|
8857
|
-
port: number;
|
|
8858
|
-
},
|
|
8859
|
-
handlers?: Omit<DefaultHandler, "fetch">,
|
|
8860
|
-
): DefaultHandler;
|
|
8861
|
-
}
|
|
8862
8857
|
declare namespace CloudflareWorkersModule {
|
|
8863
8858
|
export type RpcStub<T extends Rpc.Stubable> = Rpc.Stub<T>;
|
|
8864
8859
|
export const RpcStub: {
|
package/experimental/index.d.ts
CHANGED
|
@@ -3169,6 +3169,7 @@ interface Container {
|
|
|
3169
3169
|
destroy(error?: any): Promise<void>;
|
|
3170
3170
|
signal(signo: number): void;
|
|
3171
3171
|
getTcpPort(port: number): Fetcher;
|
|
3172
|
+
setInactivityTimeout(durationMs: number | bigint): Promise<void>;
|
|
3172
3173
|
}
|
|
3173
3174
|
interface ContainerStartupOptions {
|
|
3174
3175
|
entrypoint?: string[];
|
|
@@ -8921,6 +8922,17 @@ interface MediaError extends Error {
|
|
|
8921
8922
|
readonly message: string;
|
|
8922
8923
|
readonly stack?: string;
|
|
8923
8924
|
}
|
|
8925
|
+
declare module "cloudflare:node" {
|
|
8926
|
+
interface NodeStyleServer {
|
|
8927
|
+
listen(...args: unknown[]): this;
|
|
8928
|
+
address(): {
|
|
8929
|
+
port?: number | null | undefined;
|
|
8930
|
+
};
|
|
8931
|
+
}
|
|
8932
|
+
export function httpServerHandler(port: number): ExportedHandler;
|
|
8933
|
+
export function httpServerHandler(options: { port: number }): ExportedHandler;
|
|
8934
|
+
export function httpServerHandler(server: NodeStyleServer): ExportedHandler;
|
|
8935
|
+
}
|
|
8924
8936
|
type Params<P extends string = any> = Record<P, string | string[]>;
|
|
8925
8937
|
type EventContext<Env, P extends string, Data> = {
|
|
8926
8938
|
request: Request<unknown, IncomingRequestCfProperties<unknown>>;
|
|
@@ -9266,22 +9278,6 @@ declare namespace Cloudflare {
|
|
|
9266
9278
|
: {});
|
|
9267
9279
|
};
|
|
9268
9280
|
}
|
|
9269
|
-
declare module "cloudflare:node" {
|
|
9270
|
-
export interface DefaultHandler {
|
|
9271
|
-
fetch?(request: Request): Response | Promise<Response>;
|
|
9272
|
-
tail?(events: TraceItem[]): void | Promise<void>;
|
|
9273
|
-
trace?(traces: TraceItem[]): void | Promise<void>;
|
|
9274
|
-
scheduled?(controller: ScheduledController): void | Promise<void>;
|
|
9275
|
-
queue?(batch: MessageBatch<unknown>): void | Promise<void>;
|
|
9276
|
-
test?(controller: TestController): void | Promise<void>;
|
|
9277
|
-
}
|
|
9278
|
-
export function httpServerHandler(
|
|
9279
|
-
options: {
|
|
9280
|
-
port: number;
|
|
9281
|
-
},
|
|
9282
|
-
handlers?: Omit<DefaultHandler, "fetch">,
|
|
9283
|
-
): DefaultHandler;
|
|
9284
|
-
}
|
|
9285
9281
|
declare namespace CloudflareWorkersModule {
|
|
9286
9282
|
export type RpcStub<T extends Rpc.Stubable> = Rpc.Stub<T>;
|
|
9287
9283
|
export const RpcStub: {
|
package/experimental/index.ts
CHANGED
|
@@ -3180,6 +3180,7 @@ export interface Container {
|
|
|
3180
3180
|
destroy(error?: any): Promise<void>;
|
|
3181
3181
|
signal(signo: number): void;
|
|
3182
3182
|
getTcpPort(port: number): Fetcher;
|
|
3183
|
+
setInactivityTimeout(durationMs: number | bigint): Promise<void>;
|
|
3183
3184
|
}
|
|
3184
3185
|
export interface ContainerStartupOptions {
|
|
3185
3186
|
entrypoint?: string[];
|
package/index.d.ts
CHANGED
|
@@ -8442,6 +8442,17 @@ interface MediaError extends Error {
|
|
|
8442
8442
|
readonly message: string;
|
|
8443
8443
|
readonly stack?: string;
|
|
8444
8444
|
}
|
|
8445
|
+
declare module "cloudflare:node" {
|
|
8446
|
+
interface NodeStyleServer {
|
|
8447
|
+
listen(...args: unknown[]): this;
|
|
8448
|
+
address(): {
|
|
8449
|
+
port?: number | null | undefined;
|
|
8450
|
+
};
|
|
8451
|
+
}
|
|
8452
|
+
export function httpServerHandler(port: number): ExportedHandler;
|
|
8453
|
+
export function httpServerHandler(options: { port: number }): ExportedHandler;
|
|
8454
|
+
export function httpServerHandler(server: NodeStyleServer): ExportedHandler;
|
|
8455
|
+
}
|
|
8445
8456
|
type Params<P extends string = any> = Record<P, string | string[]>;
|
|
8446
8457
|
type EventContext<Env, P extends string, Data> = {
|
|
8447
8458
|
request: Request<unknown, IncomingRequestCfProperties<unknown>>;
|
|
@@ -8787,22 +8798,6 @@ declare namespace Cloudflare {
|
|
|
8787
8798
|
: {});
|
|
8788
8799
|
};
|
|
8789
8800
|
}
|
|
8790
|
-
declare module "cloudflare:node" {
|
|
8791
|
-
export interface DefaultHandler {
|
|
8792
|
-
fetch?(request: Request): Response | Promise<Response>;
|
|
8793
|
-
tail?(events: TraceItem[]): void | Promise<void>;
|
|
8794
|
-
trace?(traces: TraceItem[]): void | Promise<void>;
|
|
8795
|
-
scheduled?(controller: ScheduledController): void | Promise<void>;
|
|
8796
|
-
queue?(batch: MessageBatch<unknown>): void | Promise<void>;
|
|
8797
|
-
test?(controller: TestController): void | Promise<void>;
|
|
8798
|
-
}
|
|
8799
|
-
export function httpServerHandler(
|
|
8800
|
-
options: {
|
|
8801
|
-
port: number;
|
|
8802
|
-
},
|
|
8803
|
-
handlers?: Omit<DefaultHandler, "fetch">,
|
|
8804
|
-
): DefaultHandler;
|
|
8805
|
-
}
|
|
8806
8801
|
declare namespace CloudflareWorkersModule {
|
|
8807
8802
|
export type RpcStub<T extends Rpc.Stubable> = Rpc.Stub<T>;
|
|
8808
8803
|
export const RpcStub: {
|
package/latest/index.d.ts
CHANGED
|
@@ -8527,6 +8527,17 @@ interface MediaError extends Error {
|
|
|
8527
8527
|
readonly message: string;
|
|
8528
8528
|
readonly stack?: string;
|
|
8529
8529
|
}
|
|
8530
|
+
declare module "cloudflare:node" {
|
|
8531
|
+
interface NodeStyleServer {
|
|
8532
|
+
listen(...args: unknown[]): this;
|
|
8533
|
+
address(): {
|
|
8534
|
+
port?: number | null | undefined;
|
|
8535
|
+
};
|
|
8536
|
+
}
|
|
8537
|
+
export function httpServerHandler(port: number): ExportedHandler;
|
|
8538
|
+
export function httpServerHandler(options: { port: number }): ExportedHandler;
|
|
8539
|
+
export function httpServerHandler(server: NodeStyleServer): ExportedHandler;
|
|
8540
|
+
}
|
|
8530
8541
|
type Params<P extends string = any> = Record<P, string | string[]>;
|
|
8531
8542
|
type EventContext<Env, P extends string, Data> = {
|
|
8532
8543
|
request: Request<unknown, IncomingRequestCfProperties<unknown>>;
|
|
@@ -8872,22 +8883,6 @@ declare namespace Cloudflare {
|
|
|
8872
8883
|
: {});
|
|
8873
8884
|
};
|
|
8874
8885
|
}
|
|
8875
|
-
declare module "cloudflare:node" {
|
|
8876
|
-
export interface DefaultHandler {
|
|
8877
|
-
fetch?(request: Request): Response | Promise<Response>;
|
|
8878
|
-
tail?(events: TraceItem[]): void | Promise<void>;
|
|
8879
|
-
trace?(traces: TraceItem[]): void | Promise<void>;
|
|
8880
|
-
scheduled?(controller: ScheduledController): void | Promise<void>;
|
|
8881
|
-
queue?(batch: MessageBatch<unknown>): void | Promise<void>;
|
|
8882
|
-
test?(controller: TestController): void | Promise<void>;
|
|
8883
|
-
}
|
|
8884
|
-
export function httpServerHandler(
|
|
8885
|
-
options: {
|
|
8886
|
-
port: number;
|
|
8887
|
-
},
|
|
8888
|
-
handlers?: Omit<DefaultHandler, "fetch">,
|
|
8889
|
-
): DefaultHandler;
|
|
8890
|
-
}
|
|
8891
8886
|
declare namespace CloudflareWorkersModule {
|
|
8892
8887
|
export type RpcStub<T extends Rpc.Stubable> = Rpc.Stub<T>;
|
|
8893
8888
|
export const RpcStub: {
|
package/oldest/index.d.ts
CHANGED
|
@@ -8442,6 +8442,17 @@ interface MediaError extends Error {
|
|
|
8442
8442
|
readonly message: string;
|
|
8443
8443
|
readonly stack?: string;
|
|
8444
8444
|
}
|
|
8445
|
+
declare module "cloudflare:node" {
|
|
8446
|
+
interface NodeStyleServer {
|
|
8447
|
+
listen(...args: unknown[]): this;
|
|
8448
|
+
address(): {
|
|
8449
|
+
port?: number | null | undefined;
|
|
8450
|
+
};
|
|
8451
|
+
}
|
|
8452
|
+
export function httpServerHandler(port: number): ExportedHandler;
|
|
8453
|
+
export function httpServerHandler(options: { port: number }): ExportedHandler;
|
|
8454
|
+
export function httpServerHandler(server: NodeStyleServer): ExportedHandler;
|
|
8455
|
+
}
|
|
8445
8456
|
type Params<P extends string = any> = Record<P, string | string[]>;
|
|
8446
8457
|
type EventContext<Env, P extends string, Data> = {
|
|
8447
8458
|
request: Request<unknown, IncomingRequestCfProperties<unknown>>;
|
|
@@ -8787,22 +8798,6 @@ declare namespace Cloudflare {
|
|
|
8787
8798
|
: {});
|
|
8788
8799
|
};
|
|
8789
8800
|
}
|
|
8790
|
-
declare module "cloudflare:node" {
|
|
8791
|
-
export interface DefaultHandler {
|
|
8792
|
-
fetch?(request: Request): Response | Promise<Response>;
|
|
8793
|
-
tail?(events: TraceItem[]): void | Promise<void>;
|
|
8794
|
-
trace?(traces: TraceItem[]): void | Promise<void>;
|
|
8795
|
-
scheduled?(controller: ScheduledController): void | Promise<void>;
|
|
8796
|
-
queue?(batch: MessageBatch<unknown>): void | Promise<void>;
|
|
8797
|
-
test?(controller: TestController): void | Promise<void>;
|
|
8798
|
-
}
|
|
8799
|
-
export function httpServerHandler(
|
|
8800
|
-
options: {
|
|
8801
|
-
port: number;
|
|
8802
|
-
},
|
|
8803
|
-
handlers?: Omit<DefaultHandler, "fetch">,
|
|
8804
|
-
): DefaultHandler;
|
|
8805
|
-
}
|
|
8806
8801
|
declare namespace CloudflareWorkersModule {
|
|
8807
8802
|
export type RpcStub<T extends Rpc.Stubable> = Rpc.Stub<T>;
|
|
8808
8803
|
export const RpcStub: {
|
package/package.json
CHANGED