@cloudflare/workers-types 5.20260917.1 → 5.20260918.1
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/experimental/index.d.ts +6 -0
- package/experimental/index.ts +6 -0
- package/package.json +1 -1
package/experimental/index.d.ts
CHANGED
|
@@ -382,6 +382,7 @@ interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
|
|
|
382
382
|
FixedLengthStream: typeof FixedLengthStream;
|
|
383
383
|
IdentityTransformStream: typeof IdentityTransformStream;
|
|
384
384
|
HTMLRewriter: typeof HTMLRewriter;
|
|
385
|
+
Datagram: typeof Datagram;
|
|
385
386
|
Performance: typeof Performance;
|
|
386
387
|
PerformanceEntry: typeof PerformanceEntry;
|
|
387
388
|
PerformanceMark: typeof PerformanceMark;
|
|
@@ -3967,6 +3968,7 @@ interface Socket {
|
|
|
3967
3968
|
get opened(): Promise<SocketInfo>;
|
|
3968
3969
|
get upgraded(): boolean;
|
|
3969
3970
|
get secureTransport(): "on" | "off" | "starttls";
|
|
3971
|
+
get protocol(): "tcp" | "udp";
|
|
3970
3972
|
close(): Promise<void>;
|
|
3971
3973
|
startTls(options?: TlsOptions): Socket;
|
|
3972
3974
|
}
|
|
@@ -3986,6 +3988,10 @@ interface SocketInfo {
|
|
|
3986
3988
|
remoteAddress?: string;
|
|
3987
3989
|
localAddress?: string;
|
|
3988
3990
|
}
|
|
3991
|
+
declare class Datagram {
|
|
3992
|
+
constructor(data: Uint8Array);
|
|
3993
|
+
get data(): Uint8Array;
|
|
3994
|
+
}
|
|
3989
3995
|
/**
|
|
3990
3996
|
* The **`EventSource`** interface is web content's interface to server-sent events.
|
|
3991
3997
|
*
|
package/experimental/index.ts
CHANGED
|
@@ -382,6 +382,7 @@ export interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
|
|
|
382
382
|
FixedLengthStream: typeof FixedLengthStream;
|
|
383
383
|
IdentityTransformStream: typeof IdentityTransformStream;
|
|
384
384
|
HTMLRewriter: typeof HTMLRewriter;
|
|
385
|
+
Datagram: typeof Datagram;
|
|
385
386
|
Performance: typeof Performance;
|
|
386
387
|
PerformanceEntry: typeof PerformanceEntry;
|
|
387
388
|
PerformanceMark: typeof PerformanceMark;
|
|
@@ -3976,6 +3977,7 @@ export interface Socket {
|
|
|
3976
3977
|
get opened(): Promise<SocketInfo>;
|
|
3977
3978
|
get upgraded(): boolean;
|
|
3978
3979
|
get secureTransport(): "on" | "off" | "starttls";
|
|
3980
|
+
get protocol(): "tcp" | "udp";
|
|
3979
3981
|
close(): Promise<void>;
|
|
3980
3982
|
startTls(options?: TlsOptions): Socket;
|
|
3981
3983
|
}
|
|
@@ -3995,6 +3997,10 @@ export interface SocketInfo {
|
|
|
3995
3997
|
remoteAddress?: string;
|
|
3996
3998
|
localAddress?: string;
|
|
3997
3999
|
}
|
|
4000
|
+
export declare class Datagram {
|
|
4001
|
+
constructor(data: Uint8Array);
|
|
4002
|
+
get data(): Uint8Array;
|
|
4003
|
+
}
|
|
3998
4004
|
/**
|
|
3999
4005
|
* The **`EventSource`** interface is web content's interface to server-sent events.
|
|
4000
4006
|
*
|
package/package.json
CHANGED