@cloudflare/workers-types 4.20240405.0 → 4.20240423.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 +9 -4
- package/2021-11-03/index.ts +9 -4
- package/2022-01-31/index.d.ts +9 -4
- package/2022-01-31/index.ts +9 -4
- package/2022-03-21/index.d.ts +9 -4
- package/2022-03-21/index.ts +9 -4
- package/2022-08-04/index.d.ts +9 -4
- package/2022-08-04/index.ts +9 -4
- package/2022-10-31/index.d.ts +9 -4
- package/2022-10-31/index.ts +9 -4
- package/2022-11-30/index.d.ts +9 -4
- package/2022-11-30/index.ts +9 -4
- package/2023-03-01/index.d.ts +9 -4
- package/2023-03-01/index.ts +9 -4
- package/2023-07-01/index.d.ts +9 -4
- package/2023-07-01/index.ts +9 -4
- package/experimental/index.d.ts +9 -4
- package/experimental/index.ts +9 -4
- package/index.d.ts +9 -4
- package/index.ts +9 -4
- package/oldest/index.d.ts +9 -4
- package/oldest/index.ts +9 -4
- package/package.json +1 -1
package/2021-11-03/index.d.ts
CHANGED
|
@@ -2064,15 +2064,20 @@ declare class DecompressionStream extends TransformStream<
|
|
|
2064
2064
|
}
|
|
2065
2065
|
declare class TextEncoderStream extends TransformStream<string, Uint8Array> {
|
|
2066
2066
|
constructor();
|
|
2067
|
+
get encoding(): string;
|
|
2067
2068
|
}
|
|
2068
2069
|
declare class TextDecoderStream extends TransformStream<
|
|
2069
2070
|
ArrayBuffer | ArrayBufferView,
|
|
2070
2071
|
string
|
|
2071
2072
|
> {
|
|
2072
2073
|
constructor(label?: string, options?: TextDecoderStreamTextDecoderStreamInit);
|
|
2074
|
+
get encoding(): string;
|
|
2075
|
+
get fatal(): boolean;
|
|
2076
|
+
get ignoreBOM(): boolean;
|
|
2073
2077
|
}
|
|
2074
2078
|
declare interface TextDecoderStreamTextDecoderStreamInit {
|
|
2075
2079
|
fatal?: boolean;
|
|
2080
|
+
ignoreBOM?: boolean;
|
|
2076
2081
|
}
|
|
2077
2082
|
declare class ByteLengthQueuingStrategy
|
|
2078
2083
|
implements QueuingStrategy<ArrayBufferView>
|
|
@@ -4184,10 +4189,10 @@ declare namespace Rpc {
|
|
|
4184
4189
|
// TypeScript uses *structural* typing meaning anything with the same shape as type `T` is a `T`.
|
|
4185
4190
|
// For the classes exported by `cloudflare:workers` we want *nominal* typing (i.e. we only want to
|
|
4186
4191
|
// accept `WorkerEntrypoint` from `cloudflare:workers`, not any other class with the same shape)
|
|
4187
|
-
export const __RPC_STUB_BRAND:
|
|
4188
|
-
export const __RPC_TARGET_BRAND:
|
|
4189
|
-
export const __WORKER_ENTRYPOINT_BRAND:
|
|
4190
|
-
export const __DURABLE_OBJECT_BRAND:
|
|
4192
|
+
export const __RPC_STUB_BRAND: "__RPC_STUB_BRAND";
|
|
4193
|
+
export const __RPC_TARGET_BRAND: "__RPC_TARGET_BRAND";
|
|
4194
|
+
export const __WORKER_ENTRYPOINT_BRAND: "__WORKER_ENTRYPOINT_BRAND";
|
|
4195
|
+
export const __DURABLE_OBJECT_BRAND: "__DURABLE_OBJECT_BRAND";
|
|
4191
4196
|
export interface RpcTargetBranded {
|
|
4192
4197
|
[__RPC_TARGET_BRAND]: never;
|
|
4193
4198
|
}
|
package/2021-11-03/index.ts
CHANGED
|
@@ -2069,15 +2069,20 @@ export declare class TextEncoderStream extends TransformStream<
|
|
|
2069
2069
|
Uint8Array
|
|
2070
2070
|
> {
|
|
2071
2071
|
constructor();
|
|
2072
|
+
get encoding(): string;
|
|
2072
2073
|
}
|
|
2073
2074
|
export declare class TextDecoderStream extends TransformStream<
|
|
2074
2075
|
ArrayBuffer | ArrayBufferView,
|
|
2075
2076
|
string
|
|
2076
2077
|
> {
|
|
2077
2078
|
constructor(label?: string, options?: TextDecoderStreamTextDecoderStreamInit);
|
|
2079
|
+
get encoding(): string;
|
|
2080
|
+
get fatal(): boolean;
|
|
2081
|
+
get ignoreBOM(): boolean;
|
|
2078
2082
|
}
|
|
2079
2083
|
export interface TextDecoderStreamTextDecoderStreamInit {
|
|
2080
2084
|
fatal?: boolean;
|
|
2085
|
+
ignoreBOM?: boolean;
|
|
2081
2086
|
}
|
|
2082
2087
|
export declare class ByteLengthQueuingStrategy
|
|
2083
2088
|
implements QueuingStrategy<ArrayBufferView>
|
|
@@ -4179,10 +4184,10 @@ export declare namespace Rpc {
|
|
|
4179
4184
|
// TypeScript uses *structural* typing meaning anything with the same shape as type `T` is a `T`.
|
|
4180
4185
|
// For the classes exported by `cloudflare:workers` we want *nominal* typing (i.e. we only want to
|
|
4181
4186
|
// accept `WorkerEntrypoint` from `cloudflare:workers`, not any other class with the same shape)
|
|
4182
|
-
export const __RPC_STUB_BRAND:
|
|
4183
|
-
export const __RPC_TARGET_BRAND:
|
|
4184
|
-
export const __WORKER_ENTRYPOINT_BRAND:
|
|
4185
|
-
export const __DURABLE_OBJECT_BRAND:
|
|
4187
|
+
export const __RPC_STUB_BRAND: "__RPC_STUB_BRAND";
|
|
4188
|
+
export const __RPC_TARGET_BRAND: "__RPC_TARGET_BRAND";
|
|
4189
|
+
export const __WORKER_ENTRYPOINT_BRAND: "__WORKER_ENTRYPOINT_BRAND";
|
|
4190
|
+
export const __DURABLE_OBJECT_BRAND: "__DURABLE_OBJECT_BRAND";
|
|
4186
4191
|
export interface RpcTargetBranded {
|
|
4187
4192
|
[__RPC_TARGET_BRAND]: never;
|
|
4188
4193
|
}
|
package/2022-01-31/index.d.ts
CHANGED
|
@@ -2070,15 +2070,20 @@ declare class DecompressionStream extends TransformStream<
|
|
|
2070
2070
|
}
|
|
2071
2071
|
declare class TextEncoderStream extends TransformStream<string, Uint8Array> {
|
|
2072
2072
|
constructor();
|
|
2073
|
+
get encoding(): string;
|
|
2073
2074
|
}
|
|
2074
2075
|
declare class TextDecoderStream extends TransformStream<
|
|
2075
2076
|
ArrayBuffer | ArrayBufferView,
|
|
2076
2077
|
string
|
|
2077
2078
|
> {
|
|
2078
2079
|
constructor(label?: string, options?: TextDecoderStreamTextDecoderStreamInit);
|
|
2080
|
+
get encoding(): string;
|
|
2081
|
+
get fatal(): boolean;
|
|
2082
|
+
get ignoreBOM(): boolean;
|
|
2079
2083
|
}
|
|
2080
2084
|
declare interface TextDecoderStreamTextDecoderStreamInit {
|
|
2081
2085
|
fatal?: boolean;
|
|
2086
|
+
ignoreBOM?: boolean;
|
|
2082
2087
|
}
|
|
2083
2088
|
declare class ByteLengthQueuingStrategy
|
|
2084
2089
|
implements QueuingStrategy<ArrayBufferView>
|
|
@@ -4210,10 +4215,10 @@ declare namespace Rpc {
|
|
|
4210
4215
|
// TypeScript uses *structural* typing meaning anything with the same shape as type `T` is a `T`.
|
|
4211
4216
|
// For the classes exported by `cloudflare:workers` we want *nominal* typing (i.e. we only want to
|
|
4212
4217
|
// accept `WorkerEntrypoint` from `cloudflare:workers`, not any other class with the same shape)
|
|
4213
|
-
export const __RPC_STUB_BRAND:
|
|
4214
|
-
export const __RPC_TARGET_BRAND:
|
|
4215
|
-
export const __WORKER_ENTRYPOINT_BRAND:
|
|
4216
|
-
export const __DURABLE_OBJECT_BRAND:
|
|
4218
|
+
export const __RPC_STUB_BRAND: "__RPC_STUB_BRAND";
|
|
4219
|
+
export const __RPC_TARGET_BRAND: "__RPC_TARGET_BRAND";
|
|
4220
|
+
export const __WORKER_ENTRYPOINT_BRAND: "__WORKER_ENTRYPOINT_BRAND";
|
|
4221
|
+
export const __DURABLE_OBJECT_BRAND: "__DURABLE_OBJECT_BRAND";
|
|
4217
4222
|
export interface RpcTargetBranded {
|
|
4218
4223
|
[__RPC_TARGET_BRAND]: never;
|
|
4219
4224
|
}
|
package/2022-01-31/index.ts
CHANGED
|
@@ -2075,15 +2075,20 @@ export declare class TextEncoderStream extends TransformStream<
|
|
|
2075
2075
|
Uint8Array
|
|
2076
2076
|
> {
|
|
2077
2077
|
constructor();
|
|
2078
|
+
get encoding(): string;
|
|
2078
2079
|
}
|
|
2079
2080
|
export declare class TextDecoderStream extends TransformStream<
|
|
2080
2081
|
ArrayBuffer | ArrayBufferView,
|
|
2081
2082
|
string
|
|
2082
2083
|
> {
|
|
2083
2084
|
constructor(label?: string, options?: TextDecoderStreamTextDecoderStreamInit);
|
|
2085
|
+
get encoding(): string;
|
|
2086
|
+
get fatal(): boolean;
|
|
2087
|
+
get ignoreBOM(): boolean;
|
|
2084
2088
|
}
|
|
2085
2089
|
export interface TextDecoderStreamTextDecoderStreamInit {
|
|
2086
2090
|
fatal?: boolean;
|
|
2091
|
+
ignoreBOM?: boolean;
|
|
2087
2092
|
}
|
|
2088
2093
|
export declare class ByteLengthQueuingStrategy
|
|
2089
2094
|
implements QueuingStrategy<ArrayBufferView>
|
|
@@ -4205,10 +4210,10 @@ export declare namespace Rpc {
|
|
|
4205
4210
|
// TypeScript uses *structural* typing meaning anything with the same shape as type `T` is a `T`.
|
|
4206
4211
|
// For the classes exported by `cloudflare:workers` we want *nominal* typing (i.e. we only want to
|
|
4207
4212
|
// accept `WorkerEntrypoint` from `cloudflare:workers`, not any other class with the same shape)
|
|
4208
|
-
export const __RPC_STUB_BRAND:
|
|
4209
|
-
export const __RPC_TARGET_BRAND:
|
|
4210
|
-
export const __WORKER_ENTRYPOINT_BRAND:
|
|
4211
|
-
export const __DURABLE_OBJECT_BRAND:
|
|
4213
|
+
export const __RPC_STUB_BRAND: "__RPC_STUB_BRAND";
|
|
4214
|
+
export const __RPC_TARGET_BRAND: "__RPC_TARGET_BRAND";
|
|
4215
|
+
export const __WORKER_ENTRYPOINT_BRAND: "__WORKER_ENTRYPOINT_BRAND";
|
|
4216
|
+
export const __DURABLE_OBJECT_BRAND: "__DURABLE_OBJECT_BRAND";
|
|
4212
4217
|
export interface RpcTargetBranded {
|
|
4213
4218
|
[__RPC_TARGET_BRAND]: never;
|
|
4214
4219
|
}
|
package/2022-03-21/index.d.ts
CHANGED
|
@@ -2087,15 +2087,20 @@ declare class DecompressionStream extends TransformStream<
|
|
|
2087
2087
|
}
|
|
2088
2088
|
declare class TextEncoderStream extends TransformStream<string, Uint8Array> {
|
|
2089
2089
|
constructor();
|
|
2090
|
+
get encoding(): string;
|
|
2090
2091
|
}
|
|
2091
2092
|
declare class TextDecoderStream extends TransformStream<
|
|
2092
2093
|
ArrayBuffer | ArrayBufferView,
|
|
2093
2094
|
string
|
|
2094
2095
|
> {
|
|
2095
2096
|
constructor(label?: string, options?: TextDecoderStreamTextDecoderStreamInit);
|
|
2097
|
+
get encoding(): string;
|
|
2098
|
+
get fatal(): boolean;
|
|
2099
|
+
get ignoreBOM(): boolean;
|
|
2096
2100
|
}
|
|
2097
2101
|
declare interface TextDecoderStreamTextDecoderStreamInit {
|
|
2098
2102
|
fatal?: boolean;
|
|
2103
|
+
ignoreBOM?: boolean;
|
|
2099
2104
|
}
|
|
2100
2105
|
declare class ByteLengthQueuingStrategy
|
|
2101
2106
|
implements QueuingStrategy<ArrayBufferView>
|
|
@@ -4236,10 +4241,10 @@ declare namespace Rpc {
|
|
|
4236
4241
|
// TypeScript uses *structural* typing meaning anything with the same shape as type `T` is a `T`.
|
|
4237
4242
|
// For the classes exported by `cloudflare:workers` we want *nominal* typing (i.e. we only want to
|
|
4238
4243
|
// accept `WorkerEntrypoint` from `cloudflare:workers`, not any other class with the same shape)
|
|
4239
|
-
export const __RPC_STUB_BRAND:
|
|
4240
|
-
export const __RPC_TARGET_BRAND:
|
|
4241
|
-
export const __WORKER_ENTRYPOINT_BRAND:
|
|
4242
|
-
export const __DURABLE_OBJECT_BRAND:
|
|
4244
|
+
export const __RPC_STUB_BRAND: "__RPC_STUB_BRAND";
|
|
4245
|
+
export const __RPC_TARGET_BRAND: "__RPC_TARGET_BRAND";
|
|
4246
|
+
export const __WORKER_ENTRYPOINT_BRAND: "__WORKER_ENTRYPOINT_BRAND";
|
|
4247
|
+
export const __DURABLE_OBJECT_BRAND: "__DURABLE_OBJECT_BRAND";
|
|
4243
4248
|
export interface RpcTargetBranded {
|
|
4244
4249
|
[__RPC_TARGET_BRAND]: never;
|
|
4245
4250
|
}
|
package/2022-03-21/index.ts
CHANGED
|
@@ -2092,15 +2092,20 @@ export declare class TextEncoderStream extends TransformStream<
|
|
|
2092
2092
|
Uint8Array
|
|
2093
2093
|
> {
|
|
2094
2094
|
constructor();
|
|
2095
|
+
get encoding(): string;
|
|
2095
2096
|
}
|
|
2096
2097
|
export declare class TextDecoderStream extends TransformStream<
|
|
2097
2098
|
ArrayBuffer | ArrayBufferView,
|
|
2098
2099
|
string
|
|
2099
2100
|
> {
|
|
2100
2101
|
constructor(label?: string, options?: TextDecoderStreamTextDecoderStreamInit);
|
|
2102
|
+
get encoding(): string;
|
|
2103
|
+
get fatal(): boolean;
|
|
2104
|
+
get ignoreBOM(): boolean;
|
|
2101
2105
|
}
|
|
2102
2106
|
export interface TextDecoderStreamTextDecoderStreamInit {
|
|
2103
2107
|
fatal?: boolean;
|
|
2108
|
+
ignoreBOM?: boolean;
|
|
2104
2109
|
}
|
|
2105
2110
|
export declare class ByteLengthQueuingStrategy
|
|
2106
2111
|
implements QueuingStrategy<ArrayBufferView>
|
|
@@ -4231,10 +4236,10 @@ export declare namespace Rpc {
|
|
|
4231
4236
|
// TypeScript uses *structural* typing meaning anything with the same shape as type `T` is a `T`.
|
|
4232
4237
|
// For the classes exported by `cloudflare:workers` we want *nominal* typing (i.e. we only want to
|
|
4233
4238
|
// accept `WorkerEntrypoint` from `cloudflare:workers`, not any other class with the same shape)
|
|
4234
|
-
export const __RPC_STUB_BRAND:
|
|
4235
|
-
export const __RPC_TARGET_BRAND:
|
|
4236
|
-
export const __WORKER_ENTRYPOINT_BRAND:
|
|
4237
|
-
export const __DURABLE_OBJECT_BRAND:
|
|
4239
|
+
export const __RPC_STUB_BRAND: "__RPC_STUB_BRAND";
|
|
4240
|
+
export const __RPC_TARGET_BRAND: "__RPC_TARGET_BRAND";
|
|
4241
|
+
export const __WORKER_ENTRYPOINT_BRAND: "__WORKER_ENTRYPOINT_BRAND";
|
|
4242
|
+
export const __DURABLE_OBJECT_BRAND: "__DURABLE_OBJECT_BRAND";
|
|
4238
4243
|
export interface RpcTargetBranded {
|
|
4239
4244
|
[__RPC_TARGET_BRAND]: never;
|
|
4240
4245
|
}
|
package/2022-08-04/index.d.ts
CHANGED
|
@@ -2088,15 +2088,20 @@ declare class DecompressionStream extends TransformStream<
|
|
|
2088
2088
|
}
|
|
2089
2089
|
declare class TextEncoderStream extends TransformStream<string, Uint8Array> {
|
|
2090
2090
|
constructor();
|
|
2091
|
+
get encoding(): string;
|
|
2091
2092
|
}
|
|
2092
2093
|
declare class TextDecoderStream extends TransformStream<
|
|
2093
2094
|
ArrayBuffer | ArrayBufferView,
|
|
2094
2095
|
string
|
|
2095
2096
|
> {
|
|
2096
2097
|
constructor(label?: string, options?: TextDecoderStreamTextDecoderStreamInit);
|
|
2098
|
+
get encoding(): string;
|
|
2099
|
+
get fatal(): boolean;
|
|
2100
|
+
get ignoreBOM(): boolean;
|
|
2097
2101
|
}
|
|
2098
2102
|
declare interface TextDecoderStreamTextDecoderStreamInit {
|
|
2099
2103
|
fatal?: boolean;
|
|
2104
|
+
ignoreBOM?: boolean;
|
|
2100
2105
|
}
|
|
2101
2106
|
declare class ByteLengthQueuingStrategy
|
|
2102
2107
|
implements QueuingStrategy<ArrayBufferView>
|
|
@@ -4237,10 +4242,10 @@ declare namespace Rpc {
|
|
|
4237
4242
|
// TypeScript uses *structural* typing meaning anything with the same shape as type `T` is a `T`.
|
|
4238
4243
|
// For the classes exported by `cloudflare:workers` we want *nominal* typing (i.e. we only want to
|
|
4239
4244
|
// accept `WorkerEntrypoint` from `cloudflare:workers`, not any other class with the same shape)
|
|
4240
|
-
export const __RPC_STUB_BRAND:
|
|
4241
|
-
export const __RPC_TARGET_BRAND:
|
|
4242
|
-
export const __WORKER_ENTRYPOINT_BRAND:
|
|
4243
|
-
export const __DURABLE_OBJECT_BRAND:
|
|
4245
|
+
export const __RPC_STUB_BRAND: "__RPC_STUB_BRAND";
|
|
4246
|
+
export const __RPC_TARGET_BRAND: "__RPC_TARGET_BRAND";
|
|
4247
|
+
export const __WORKER_ENTRYPOINT_BRAND: "__WORKER_ENTRYPOINT_BRAND";
|
|
4248
|
+
export const __DURABLE_OBJECT_BRAND: "__DURABLE_OBJECT_BRAND";
|
|
4244
4249
|
export interface RpcTargetBranded {
|
|
4245
4250
|
[__RPC_TARGET_BRAND]: never;
|
|
4246
4251
|
}
|
package/2022-08-04/index.ts
CHANGED
|
@@ -2093,15 +2093,20 @@ export declare class TextEncoderStream extends TransformStream<
|
|
|
2093
2093
|
Uint8Array
|
|
2094
2094
|
> {
|
|
2095
2095
|
constructor();
|
|
2096
|
+
get encoding(): string;
|
|
2096
2097
|
}
|
|
2097
2098
|
export declare class TextDecoderStream extends TransformStream<
|
|
2098
2099
|
ArrayBuffer | ArrayBufferView,
|
|
2099
2100
|
string
|
|
2100
2101
|
> {
|
|
2101
2102
|
constructor(label?: string, options?: TextDecoderStreamTextDecoderStreamInit);
|
|
2103
|
+
get encoding(): string;
|
|
2104
|
+
get fatal(): boolean;
|
|
2105
|
+
get ignoreBOM(): boolean;
|
|
2102
2106
|
}
|
|
2103
2107
|
export interface TextDecoderStreamTextDecoderStreamInit {
|
|
2104
2108
|
fatal?: boolean;
|
|
2109
|
+
ignoreBOM?: boolean;
|
|
2105
2110
|
}
|
|
2106
2111
|
export declare class ByteLengthQueuingStrategy
|
|
2107
2112
|
implements QueuingStrategy<ArrayBufferView>
|
|
@@ -4232,10 +4237,10 @@ export declare namespace Rpc {
|
|
|
4232
4237
|
// TypeScript uses *structural* typing meaning anything with the same shape as type `T` is a `T`.
|
|
4233
4238
|
// For the classes exported by `cloudflare:workers` we want *nominal* typing (i.e. we only want to
|
|
4234
4239
|
// accept `WorkerEntrypoint` from `cloudflare:workers`, not any other class with the same shape)
|
|
4235
|
-
export const __RPC_STUB_BRAND:
|
|
4236
|
-
export const __RPC_TARGET_BRAND:
|
|
4237
|
-
export const __WORKER_ENTRYPOINT_BRAND:
|
|
4238
|
-
export const __DURABLE_OBJECT_BRAND:
|
|
4240
|
+
export const __RPC_STUB_BRAND: "__RPC_STUB_BRAND";
|
|
4241
|
+
export const __RPC_TARGET_BRAND: "__RPC_TARGET_BRAND";
|
|
4242
|
+
export const __WORKER_ENTRYPOINT_BRAND: "__WORKER_ENTRYPOINT_BRAND";
|
|
4243
|
+
export const __DURABLE_OBJECT_BRAND: "__DURABLE_OBJECT_BRAND";
|
|
4239
4244
|
export interface RpcTargetBranded {
|
|
4240
4245
|
[__RPC_TARGET_BRAND]: never;
|
|
4241
4246
|
}
|
package/2022-10-31/index.d.ts
CHANGED
|
@@ -2088,15 +2088,20 @@ declare class DecompressionStream extends TransformStream<
|
|
|
2088
2088
|
}
|
|
2089
2089
|
declare class TextEncoderStream extends TransformStream<string, Uint8Array> {
|
|
2090
2090
|
constructor();
|
|
2091
|
+
get encoding(): string;
|
|
2091
2092
|
}
|
|
2092
2093
|
declare class TextDecoderStream extends TransformStream<
|
|
2093
2094
|
ArrayBuffer | ArrayBufferView,
|
|
2094
2095
|
string
|
|
2095
2096
|
> {
|
|
2096
2097
|
constructor(label?: string, options?: TextDecoderStreamTextDecoderStreamInit);
|
|
2098
|
+
get encoding(): string;
|
|
2099
|
+
get fatal(): boolean;
|
|
2100
|
+
get ignoreBOM(): boolean;
|
|
2097
2101
|
}
|
|
2098
2102
|
declare interface TextDecoderStreamTextDecoderStreamInit {
|
|
2099
2103
|
fatal?: boolean;
|
|
2104
|
+
ignoreBOM?: boolean;
|
|
2100
2105
|
}
|
|
2101
2106
|
declare class ByteLengthQueuingStrategy
|
|
2102
2107
|
implements QueuingStrategy<ArrayBufferView>
|
|
@@ -4236,10 +4241,10 @@ declare namespace Rpc {
|
|
|
4236
4241
|
// TypeScript uses *structural* typing meaning anything with the same shape as type `T` is a `T`.
|
|
4237
4242
|
// For the classes exported by `cloudflare:workers` we want *nominal* typing (i.e. we only want to
|
|
4238
4243
|
// accept `WorkerEntrypoint` from `cloudflare:workers`, not any other class with the same shape)
|
|
4239
|
-
export const __RPC_STUB_BRAND:
|
|
4240
|
-
export const __RPC_TARGET_BRAND:
|
|
4241
|
-
export const __WORKER_ENTRYPOINT_BRAND:
|
|
4242
|
-
export const __DURABLE_OBJECT_BRAND:
|
|
4244
|
+
export const __RPC_STUB_BRAND: "__RPC_STUB_BRAND";
|
|
4245
|
+
export const __RPC_TARGET_BRAND: "__RPC_TARGET_BRAND";
|
|
4246
|
+
export const __WORKER_ENTRYPOINT_BRAND: "__WORKER_ENTRYPOINT_BRAND";
|
|
4247
|
+
export const __DURABLE_OBJECT_BRAND: "__DURABLE_OBJECT_BRAND";
|
|
4243
4248
|
export interface RpcTargetBranded {
|
|
4244
4249
|
[__RPC_TARGET_BRAND]: never;
|
|
4245
4250
|
}
|
package/2022-10-31/index.ts
CHANGED
|
@@ -2093,15 +2093,20 @@ export declare class TextEncoderStream extends TransformStream<
|
|
|
2093
2093
|
Uint8Array
|
|
2094
2094
|
> {
|
|
2095
2095
|
constructor();
|
|
2096
|
+
get encoding(): string;
|
|
2096
2097
|
}
|
|
2097
2098
|
export declare class TextDecoderStream extends TransformStream<
|
|
2098
2099
|
ArrayBuffer | ArrayBufferView,
|
|
2099
2100
|
string
|
|
2100
2101
|
> {
|
|
2101
2102
|
constructor(label?: string, options?: TextDecoderStreamTextDecoderStreamInit);
|
|
2103
|
+
get encoding(): string;
|
|
2104
|
+
get fatal(): boolean;
|
|
2105
|
+
get ignoreBOM(): boolean;
|
|
2102
2106
|
}
|
|
2103
2107
|
export interface TextDecoderStreamTextDecoderStreamInit {
|
|
2104
2108
|
fatal?: boolean;
|
|
2109
|
+
ignoreBOM?: boolean;
|
|
2105
2110
|
}
|
|
2106
2111
|
export declare class ByteLengthQueuingStrategy
|
|
2107
2112
|
implements QueuingStrategy<ArrayBufferView>
|
|
@@ -4231,10 +4236,10 @@ export declare namespace Rpc {
|
|
|
4231
4236
|
// TypeScript uses *structural* typing meaning anything with the same shape as type `T` is a `T`.
|
|
4232
4237
|
// For the classes exported by `cloudflare:workers` we want *nominal* typing (i.e. we only want to
|
|
4233
4238
|
// accept `WorkerEntrypoint` from `cloudflare:workers`, not any other class with the same shape)
|
|
4234
|
-
export const __RPC_STUB_BRAND:
|
|
4235
|
-
export const __RPC_TARGET_BRAND:
|
|
4236
|
-
export const __WORKER_ENTRYPOINT_BRAND:
|
|
4237
|
-
export const __DURABLE_OBJECT_BRAND:
|
|
4239
|
+
export const __RPC_STUB_BRAND: "__RPC_STUB_BRAND";
|
|
4240
|
+
export const __RPC_TARGET_BRAND: "__RPC_TARGET_BRAND";
|
|
4241
|
+
export const __WORKER_ENTRYPOINT_BRAND: "__WORKER_ENTRYPOINT_BRAND";
|
|
4242
|
+
export const __DURABLE_OBJECT_BRAND: "__DURABLE_OBJECT_BRAND";
|
|
4238
4243
|
export interface RpcTargetBranded {
|
|
4239
4244
|
[__RPC_TARGET_BRAND]: never;
|
|
4240
4245
|
}
|
package/2022-11-30/index.d.ts
CHANGED
|
@@ -2084,15 +2084,20 @@ declare class DecompressionStream extends TransformStream<
|
|
|
2084
2084
|
}
|
|
2085
2085
|
declare class TextEncoderStream extends TransformStream<string, Uint8Array> {
|
|
2086
2086
|
constructor();
|
|
2087
|
+
get encoding(): string;
|
|
2087
2088
|
}
|
|
2088
2089
|
declare class TextDecoderStream extends TransformStream<
|
|
2089
2090
|
ArrayBuffer | ArrayBufferView,
|
|
2090
2091
|
string
|
|
2091
2092
|
> {
|
|
2092
2093
|
constructor(label?: string, options?: TextDecoderStreamTextDecoderStreamInit);
|
|
2094
|
+
get encoding(): string;
|
|
2095
|
+
get fatal(): boolean;
|
|
2096
|
+
get ignoreBOM(): boolean;
|
|
2093
2097
|
}
|
|
2094
2098
|
declare interface TextDecoderStreamTextDecoderStreamInit {
|
|
2095
2099
|
fatal?: boolean;
|
|
2100
|
+
ignoreBOM?: boolean;
|
|
2096
2101
|
}
|
|
2097
2102
|
declare class ByteLengthQueuingStrategy
|
|
2098
2103
|
implements QueuingStrategy<ArrayBufferView>
|
|
@@ -4232,10 +4237,10 @@ declare namespace Rpc {
|
|
|
4232
4237
|
// TypeScript uses *structural* typing meaning anything with the same shape as type `T` is a `T`.
|
|
4233
4238
|
// For the classes exported by `cloudflare:workers` we want *nominal* typing (i.e. we only want to
|
|
4234
4239
|
// accept `WorkerEntrypoint` from `cloudflare:workers`, not any other class with the same shape)
|
|
4235
|
-
export const __RPC_STUB_BRAND:
|
|
4236
|
-
export const __RPC_TARGET_BRAND:
|
|
4237
|
-
export const __WORKER_ENTRYPOINT_BRAND:
|
|
4238
|
-
export const __DURABLE_OBJECT_BRAND:
|
|
4240
|
+
export const __RPC_STUB_BRAND: "__RPC_STUB_BRAND";
|
|
4241
|
+
export const __RPC_TARGET_BRAND: "__RPC_TARGET_BRAND";
|
|
4242
|
+
export const __WORKER_ENTRYPOINT_BRAND: "__WORKER_ENTRYPOINT_BRAND";
|
|
4243
|
+
export const __DURABLE_OBJECT_BRAND: "__DURABLE_OBJECT_BRAND";
|
|
4239
4244
|
export interface RpcTargetBranded {
|
|
4240
4245
|
[__RPC_TARGET_BRAND]: never;
|
|
4241
4246
|
}
|
package/2022-11-30/index.ts
CHANGED
|
@@ -2089,15 +2089,20 @@ export declare class TextEncoderStream extends TransformStream<
|
|
|
2089
2089
|
Uint8Array
|
|
2090
2090
|
> {
|
|
2091
2091
|
constructor();
|
|
2092
|
+
get encoding(): string;
|
|
2092
2093
|
}
|
|
2093
2094
|
export declare class TextDecoderStream extends TransformStream<
|
|
2094
2095
|
ArrayBuffer | ArrayBufferView,
|
|
2095
2096
|
string
|
|
2096
2097
|
> {
|
|
2097
2098
|
constructor(label?: string, options?: TextDecoderStreamTextDecoderStreamInit);
|
|
2099
|
+
get encoding(): string;
|
|
2100
|
+
get fatal(): boolean;
|
|
2101
|
+
get ignoreBOM(): boolean;
|
|
2098
2102
|
}
|
|
2099
2103
|
export interface TextDecoderStreamTextDecoderStreamInit {
|
|
2100
2104
|
fatal?: boolean;
|
|
2105
|
+
ignoreBOM?: boolean;
|
|
2101
2106
|
}
|
|
2102
2107
|
export declare class ByteLengthQueuingStrategy
|
|
2103
2108
|
implements QueuingStrategy<ArrayBufferView>
|
|
@@ -4227,10 +4232,10 @@ export declare namespace Rpc {
|
|
|
4227
4232
|
// TypeScript uses *structural* typing meaning anything with the same shape as type `T` is a `T`.
|
|
4228
4233
|
// For the classes exported by `cloudflare:workers` we want *nominal* typing (i.e. we only want to
|
|
4229
4234
|
// accept `WorkerEntrypoint` from `cloudflare:workers`, not any other class with the same shape)
|
|
4230
|
-
export const __RPC_STUB_BRAND:
|
|
4231
|
-
export const __RPC_TARGET_BRAND:
|
|
4232
|
-
export const __WORKER_ENTRYPOINT_BRAND:
|
|
4233
|
-
export const __DURABLE_OBJECT_BRAND:
|
|
4235
|
+
export const __RPC_STUB_BRAND: "__RPC_STUB_BRAND";
|
|
4236
|
+
export const __RPC_TARGET_BRAND: "__RPC_TARGET_BRAND";
|
|
4237
|
+
export const __WORKER_ENTRYPOINT_BRAND: "__WORKER_ENTRYPOINT_BRAND";
|
|
4238
|
+
export const __DURABLE_OBJECT_BRAND: "__DURABLE_OBJECT_BRAND";
|
|
4234
4239
|
export interface RpcTargetBranded {
|
|
4235
4240
|
[__RPC_TARGET_BRAND]: never;
|
|
4236
4241
|
}
|
package/2023-03-01/index.d.ts
CHANGED
|
@@ -2085,15 +2085,20 @@ declare class DecompressionStream extends TransformStream<
|
|
|
2085
2085
|
}
|
|
2086
2086
|
declare class TextEncoderStream extends TransformStream<string, Uint8Array> {
|
|
2087
2087
|
constructor();
|
|
2088
|
+
get encoding(): string;
|
|
2088
2089
|
}
|
|
2089
2090
|
declare class TextDecoderStream extends TransformStream<
|
|
2090
2091
|
ArrayBuffer | ArrayBufferView,
|
|
2091
2092
|
string
|
|
2092
2093
|
> {
|
|
2093
2094
|
constructor(label?: string, options?: TextDecoderStreamTextDecoderStreamInit);
|
|
2095
|
+
get encoding(): string;
|
|
2096
|
+
get fatal(): boolean;
|
|
2097
|
+
get ignoreBOM(): boolean;
|
|
2094
2098
|
}
|
|
2095
2099
|
declare interface TextDecoderStreamTextDecoderStreamInit {
|
|
2096
2100
|
fatal?: boolean;
|
|
2101
|
+
ignoreBOM?: boolean;
|
|
2097
2102
|
}
|
|
2098
2103
|
declare class ByteLengthQueuingStrategy
|
|
2099
2104
|
implements QueuingStrategy<ArrayBufferView>
|
|
@@ -4233,10 +4238,10 @@ declare namespace Rpc {
|
|
|
4233
4238
|
// TypeScript uses *structural* typing meaning anything with the same shape as type `T` is a `T`.
|
|
4234
4239
|
// For the classes exported by `cloudflare:workers` we want *nominal* typing (i.e. we only want to
|
|
4235
4240
|
// accept `WorkerEntrypoint` from `cloudflare:workers`, not any other class with the same shape)
|
|
4236
|
-
export const __RPC_STUB_BRAND:
|
|
4237
|
-
export const __RPC_TARGET_BRAND:
|
|
4238
|
-
export const __WORKER_ENTRYPOINT_BRAND:
|
|
4239
|
-
export const __DURABLE_OBJECT_BRAND:
|
|
4241
|
+
export const __RPC_STUB_BRAND: "__RPC_STUB_BRAND";
|
|
4242
|
+
export const __RPC_TARGET_BRAND: "__RPC_TARGET_BRAND";
|
|
4243
|
+
export const __WORKER_ENTRYPOINT_BRAND: "__WORKER_ENTRYPOINT_BRAND";
|
|
4244
|
+
export const __DURABLE_OBJECT_BRAND: "__DURABLE_OBJECT_BRAND";
|
|
4240
4245
|
export interface RpcTargetBranded {
|
|
4241
4246
|
[__RPC_TARGET_BRAND]: never;
|
|
4242
4247
|
}
|
package/2023-03-01/index.ts
CHANGED
|
@@ -2090,15 +2090,20 @@ export declare class TextEncoderStream extends TransformStream<
|
|
|
2090
2090
|
Uint8Array
|
|
2091
2091
|
> {
|
|
2092
2092
|
constructor();
|
|
2093
|
+
get encoding(): string;
|
|
2093
2094
|
}
|
|
2094
2095
|
export declare class TextDecoderStream extends TransformStream<
|
|
2095
2096
|
ArrayBuffer | ArrayBufferView,
|
|
2096
2097
|
string
|
|
2097
2098
|
> {
|
|
2098
2099
|
constructor(label?: string, options?: TextDecoderStreamTextDecoderStreamInit);
|
|
2100
|
+
get encoding(): string;
|
|
2101
|
+
get fatal(): boolean;
|
|
2102
|
+
get ignoreBOM(): boolean;
|
|
2099
2103
|
}
|
|
2100
2104
|
export interface TextDecoderStreamTextDecoderStreamInit {
|
|
2101
2105
|
fatal?: boolean;
|
|
2106
|
+
ignoreBOM?: boolean;
|
|
2102
2107
|
}
|
|
2103
2108
|
export declare class ByteLengthQueuingStrategy
|
|
2104
2109
|
implements QueuingStrategy<ArrayBufferView>
|
|
@@ -4228,10 +4233,10 @@ export declare namespace Rpc {
|
|
|
4228
4233
|
// TypeScript uses *structural* typing meaning anything with the same shape as type `T` is a `T`.
|
|
4229
4234
|
// For the classes exported by `cloudflare:workers` we want *nominal* typing (i.e. we only want to
|
|
4230
4235
|
// accept `WorkerEntrypoint` from `cloudflare:workers`, not any other class with the same shape)
|
|
4231
|
-
export const __RPC_STUB_BRAND:
|
|
4232
|
-
export const __RPC_TARGET_BRAND:
|
|
4233
|
-
export const __WORKER_ENTRYPOINT_BRAND:
|
|
4234
|
-
export const __DURABLE_OBJECT_BRAND:
|
|
4236
|
+
export const __RPC_STUB_BRAND: "__RPC_STUB_BRAND";
|
|
4237
|
+
export const __RPC_TARGET_BRAND: "__RPC_TARGET_BRAND";
|
|
4238
|
+
export const __WORKER_ENTRYPOINT_BRAND: "__WORKER_ENTRYPOINT_BRAND";
|
|
4239
|
+
export const __DURABLE_OBJECT_BRAND: "__DURABLE_OBJECT_BRAND";
|
|
4235
4240
|
export interface RpcTargetBranded {
|
|
4236
4241
|
[__RPC_TARGET_BRAND]: never;
|
|
4237
4242
|
}
|
package/2023-07-01/index.d.ts
CHANGED
|
@@ -2085,15 +2085,20 @@ declare class DecompressionStream extends TransformStream<
|
|
|
2085
2085
|
}
|
|
2086
2086
|
declare class TextEncoderStream extends TransformStream<string, Uint8Array> {
|
|
2087
2087
|
constructor();
|
|
2088
|
+
get encoding(): string;
|
|
2088
2089
|
}
|
|
2089
2090
|
declare class TextDecoderStream extends TransformStream<
|
|
2090
2091
|
ArrayBuffer | ArrayBufferView,
|
|
2091
2092
|
string
|
|
2092
2093
|
> {
|
|
2093
2094
|
constructor(label?: string, options?: TextDecoderStreamTextDecoderStreamInit);
|
|
2095
|
+
get encoding(): string;
|
|
2096
|
+
get fatal(): boolean;
|
|
2097
|
+
get ignoreBOM(): boolean;
|
|
2094
2098
|
}
|
|
2095
2099
|
declare interface TextDecoderStreamTextDecoderStreamInit {
|
|
2096
2100
|
fatal?: boolean;
|
|
2101
|
+
ignoreBOM?: boolean;
|
|
2097
2102
|
}
|
|
2098
2103
|
declare class ByteLengthQueuingStrategy
|
|
2099
2104
|
implements QueuingStrategy<ArrayBufferView>
|
|
@@ -4233,10 +4238,10 @@ declare namespace Rpc {
|
|
|
4233
4238
|
// TypeScript uses *structural* typing meaning anything with the same shape as type `T` is a `T`.
|
|
4234
4239
|
// For the classes exported by `cloudflare:workers` we want *nominal* typing (i.e. we only want to
|
|
4235
4240
|
// accept `WorkerEntrypoint` from `cloudflare:workers`, not any other class with the same shape)
|
|
4236
|
-
export const __RPC_STUB_BRAND:
|
|
4237
|
-
export const __RPC_TARGET_BRAND:
|
|
4238
|
-
export const __WORKER_ENTRYPOINT_BRAND:
|
|
4239
|
-
export const __DURABLE_OBJECT_BRAND:
|
|
4241
|
+
export const __RPC_STUB_BRAND: "__RPC_STUB_BRAND";
|
|
4242
|
+
export const __RPC_TARGET_BRAND: "__RPC_TARGET_BRAND";
|
|
4243
|
+
export const __WORKER_ENTRYPOINT_BRAND: "__WORKER_ENTRYPOINT_BRAND";
|
|
4244
|
+
export const __DURABLE_OBJECT_BRAND: "__DURABLE_OBJECT_BRAND";
|
|
4240
4245
|
export interface RpcTargetBranded {
|
|
4241
4246
|
[__RPC_TARGET_BRAND]: never;
|
|
4242
4247
|
}
|
package/2023-07-01/index.ts
CHANGED
|
@@ -2090,15 +2090,20 @@ export declare class TextEncoderStream extends TransformStream<
|
|
|
2090
2090
|
Uint8Array
|
|
2091
2091
|
> {
|
|
2092
2092
|
constructor();
|
|
2093
|
+
get encoding(): string;
|
|
2093
2094
|
}
|
|
2094
2095
|
export declare class TextDecoderStream extends TransformStream<
|
|
2095
2096
|
ArrayBuffer | ArrayBufferView,
|
|
2096
2097
|
string
|
|
2097
2098
|
> {
|
|
2098
2099
|
constructor(label?: string, options?: TextDecoderStreamTextDecoderStreamInit);
|
|
2100
|
+
get encoding(): string;
|
|
2101
|
+
get fatal(): boolean;
|
|
2102
|
+
get ignoreBOM(): boolean;
|
|
2099
2103
|
}
|
|
2100
2104
|
export interface TextDecoderStreamTextDecoderStreamInit {
|
|
2101
2105
|
fatal?: boolean;
|
|
2106
|
+
ignoreBOM?: boolean;
|
|
2102
2107
|
}
|
|
2103
2108
|
export declare class ByteLengthQueuingStrategy
|
|
2104
2109
|
implements QueuingStrategy<ArrayBufferView>
|
|
@@ -4228,10 +4233,10 @@ export declare namespace Rpc {
|
|
|
4228
4233
|
// TypeScript uses *structural* typing meaning anything with the same shape as type `T` is a `T`.
|
|
4229
4234
|
// For the classes exported by `cloudflare:workers` we want *nominal* typing (i.e. we only want to
|
|
4230
4235
|
// accept `WorkerEntrypoint` from `cloudflare:workers`, not any other class with the same shape)
|
|
4231
|
-
export const __RPC_STUB_BRAND:
|
|
4232
|
-
export const __RPC_TARGET_BRAND:
|
|
4233
|
-
export const __WORKER_ENTRYPOINT_BRAND:
|
|
4234
|
-
export const __DURABLE_OBJECT_BRAND:
|
|
4236
|
+
export const __RPC_STUB_BRAND: "__RPC_STUB_BRAND";
|
|
4237
|
+
export const __RPC_TARGET_BRAND: "__RPC_TARGET_BRAND";
|
|
4238
|
+
export const __WORKER_ENTRYPOINT_BRAND: "__WORKER_ENTRYPOINT_BRAND";
|
|
4239
|
+
export const __DURABLE_OBJECT_BRAND: "__DURABLE_OBJECT_BRAND";
|
|
4235
4240
|
export interface RpcTargetBranded {
|
|
4236
4241
|
[__RPC_TARGET_BRAND]: never;
|
|
4237
4242
|
}
|
package/experimental/index.d.ts
CHANGED
|
@@ -2136,15 +2136,20 @@ declare class DecompressionStream extends TransformStream<
|
|
|
2136
2136
|
}
|
|
2137
2137
|
declare class TextEncoderStream extends TransformStream<string, Uint8Array> {
|
|
2138
2138
|
constructor();
|
|
2139
|
+
get encoding(): string;
|
|
2139
2140
|
}
|
|
2140
2141
|
declare class TextDecoderStream extends TransformStream<
|
|
2141
2142
|
ArrayBuffer | ArrayBufferView,
|
|
2142
2143
|
string
|
|
2143
2144
|
> {
|
|
2144
2145
|
constructor(label?: string, options?: TextDecoderStreamTextDecoderStreamInit);
|
|
2146
|
+
get encoding(): string;
|
|
2147
|
+
get fatal(): boolean;
|
|
2148
|
+
get ignoreBOM(): boolean;
|
|
2145
2149
|
}
|
|
2146
2150
|
declare interface TextDecoderStreamTextDecoderStreamInit {
|
|
2147
2151
|
fatal?: boolean;
|
|
2152
|
+
ignoreBOM?: boolean;
|
|
2148
2153
|
}
|
|
2149
2154
|
declare class ByteLengthQueuingStrategy
|
|
2150
2155
|
implements QueuingStrategy<ArrayBufferView>
|
|
@@ -4302,10 +4307,10 @@ declare namespace Rpc {
|
|
|
4302
4307
|
// TypeScript uses *structural* typing meaning anything with the same shape as type `T` is a `T`.
|
|
4303
4308
|
// For the classes exported by `cloudflare:workers` we want *nominal* typing (i.e. we only want to
|
|
4304
4309
|
// accept `WorkerEntrypoint` from `cloudflare:workers`, not any other class with the same shape)
|
|
4305
|
-
export const __RPC_STUB_BRAND:
|
|
4306
|
-
export const __RPC_TARGET_BRAND:
|
|
4307
|
-
export const __WORKER_ENTRYPOINT_BRAND:
|
|
4308
|
-
export const __DURABLE_OBJECT_BRAND:
|
|
4310
|
+
export const __RPC_STUB_BRAND: "__RPC_STUB_BRAND";
|
|
4311
|
+
export const __RPC_TARGET_BRAND: "__RPC_TARGET_BRAND";
|
|
4312
|
+
export const __WORKER_ENTRYPOINT_BRAND: "__WORKER_ENTRYPOINT_BRAND";
|
|
4313
|
+
export const __DURABLE_OBJECT_BRAND: "__DURABLE_OBJECT_BRAND";
|
|
4309
4314
|
export interface RpcTargetBranded {
|
|
4310
4315
|
[__RPC_TARGET_BRAND]: never;
|
|
4311
4316
|
}
|
package/experimental/index.ts
CHANGED
|
@@ -2141,15 +2141,20 @@ export declare class TextEncoderStream extends TransformStream<
|
|
|
2141
2141
|
Uint8Array
|
|
2142
2142
|
> {
|
|
2143
2143
|
constructor();
|
|
2144
|
+
get encoding(): string;
|
|
2144
2145
|
}
|
|
2145
2146
|
export declare class TextDecoderStream extends TransformStream<
|
|
2146
2147
|
ArrayBuffer | ArrayBufferView,
|
|
2147
2148
|
string
|
|
2148
2149
|
> {
|
|
2149
2150
|
constructor(label?: string, options?: TextDecoderStreamTextDecoderStreamInit);
|
|
2151
|
+
get encoding(): string;
|
|
2152
|
+
get fatal(): boolean;
|
|
2153
|
+
get ignoreBOM(): boolean;
|
|
2150
2154
|
}
|
|
2151
2155
|
export interface TextDecoderStreamTextDecoderStreamInit {
|
|
2152
2156
|
fatal?: boolean;
|
|
2157
|
+
ignoreBOM?: boolean;
|
|
2153
2158
|
}
|
|
2154
2159
|
export declare class ByteLengthQueuingStrategy
|
|
2155
2160
|
implements QueuingStrategy<ArrayBufferView>
|
|
@@ -4297,10 +4302,10 @@ export declare namespace Rpc {
|
|
|
4297
4302
|
// TypeScript uses *structural* typing meaning anything with the same shape as type `T` is a `T`.
|
|
4298
4303
|
// For the classes exported by `cloudflare:workers` we want *nominal* typing (i.e. we only want to
|
|
4299
4304
|
// accept `WorkerEntrypoint` from `cloudflare:workers`, not any other class with the same shape)
|
|
4300
|
-
export const __RPC_STUB_BRAND:
|
|
4301
|
-
export const __RPC_TARGET_BRAND:
|
|
4302
|
-
export const __WORKER_ENTRYPOINT_BRAND:
|
|
4303
|
-
export const __DURABLE_OBJECT_BRAND:
|
|
4305
|
+
export const __RPC_STUB_BRAND: "__RPC_STUB_BRAND";
|
|
4306
|
+
export const __RPC_TARGET_BRAND: "__RPC_TARGET_BRAND";
|
|
4307
|
+
export const __WORKER_ENTRYPOINT_BRAND: "__WORKER_ENTRYPOINT_BRAND";
|
|
4308
|
+
export const __DURABLE_OBJECT_BRAND: "__DURABLE_OBJECT_BRAND";
|
|
4304
4309
|
export interface RpcTargetBranded {
|
|
4305
4310
|
[__RPC_TARGET_BRAND]: never;
|
|
4306
4311
|
}
|
package/index.d.ts
CHANGED
|
@@ -2064,15 +2064,20 @@ declare class DecompressionStream extends TransformStream<
|
|
|
2064
2064
|
}
|
|
2065
2065
|
declare class TextEncoderStream extends TransformStream<string, Uint8Array> {
|
|
2066
2066
|
constructor();
|
|
2067
|
+
get encoding(): string;
|
|
2067
2068
|
}
|
|
2068
2069
|
declare class TextDecoderStream extends TransformStream<
|
|
2069
2070
|
ArrayBuffer | ArrayBufferView,
|
|
2070
2071
|
string
|
|
2071
2072
|
> {
|
|
2072
2073
|
constructor(label?: string, options?: TextDecoderStreamTextDecoderStreamInit);
|
|
2074
|
+
get encoding(): string;
|
|
2075
|
+
get fatal(): boolean;
|
|
2076
|
+
get ignoreBOM(): boolean;
|
|
2073
2077
|
}
|
|
2074
2078
|
declare interface TextDecoderStreamTextDecoderStreamInit {
|
|
2075
2079
|
fatal?: boolean;
|
|
2080
|
+
ignoreBOM?: boolean;
|
|
2076
2081
|
}
|
|
2077
2082
|
declare class ByteLengthQueuingStrategy
|
|
2078
2083
|
implements QueuingStrategy<ArrayBufferView>
|
|
@@ -4184,10 +4189,10 @@ declare namespace Rpc {
|
|
|
4184
4189
|
// TypeScript uses *structural* typing meaning anything with the same shape as type `T` is a `T`.
|
|
4185
4190
|
// For the classes exported by `cloudflare:workers` we want *nominal* typing (i.e. we only want to
|
|
4186
4191
|
// accept `WorkerEntrypoint` from `cloudflare:workers`, not any other class with the same shape)
|
|
4187
|
-
export const __RPC_STUB_BRAND:
|
|
4188
|
-
export const __RPC_TARGET_BRAND:
|
|
4189
|
-
export const __WORKER_ENTRYPOINT_BRAND:
|
|
4190
|
-
export const __DURABLE_OBJECT_BRAND:
|
|
4192
|
+
export const __RPC_STUB_BRAND: "__RPC_STUB_BRAND";
|
|
4193
|
+
export const __RPC_TARGET_BRAND: "__RPC_TARGET_BRAND";
|
|
4194
|
+
export const __WORKER_ENTRYPOINT_BRAND: "__WORKER_ENTRYPOINT_BRAND";
|
|
4195
|
+
export const __DURABLE_OBJECT_BRAND: "__DURABLE_OBJECT_BRAND";
|
|
4191
4196
|
export interface RpcTargetBranded {
|
|
4192
4197
|
[__RPC_TARGET_BRAND]: never;
|
|
4193
4198
|
}
|
package/index.ts
CHANGED
|
@@ -2069,15 +2069,20 @@ export declare class TextEncoderStream extends TransformStream<
|
|
|
2069
2069
|
Uint8Array
|
|
2070
2070
|
> {
|
|
2071
2071
|
constructor();
|
|
2072
|
+
get encoding(): string;
|
|
2072
2073
|
}
|
|
2073
2074
|
export declare class TextDecoderStream extends TransformStream<
|
|
2074
2075
|
ArrayBuffer | ArrayBufferView,
|
|
2075
2076
|
string
|
|
2076
2077
|
> {
|
|
2077
2078
|
constructor(label?: string, options?: TextDecoderStreamTextDecoderStreamInit);
|
|
2079
|
+
get encoding(): string;
|
|
2080
|
+
get fatal(): boolean;
|
|
2081
|
+
get ignoreBOM(): boolean;
|
|
2078
2082
|
}
|
|
2079
2083
|
export interface TextDecoderStreamTextDecoderStreamInit {
|
|
2080
2084
|
fatal?: boolean;
|
|
2085
|
+
ignoreBOM?: boolean;
|
|
2081
2086
|
}
|
|
2082
2087
|
export declare class ByteLengthQueuingStrategy
|
|
2083
2088
|
implements QueuingStrategy<ArrayBufferView>
|
|
@@ -4179,10 +4184,10 @@ export declare namespace Rpc {
|
|
|
4179
4184
|
// TypeScript uses *structural* typing meaning anything with the same shape as type `T` is a `T`.
|
|
4180
4185
|
// For the classes exported by `cloudflare:workers` we want *nominal* typing (i.e. we only want to
|
|
4181
4186
|
// accept `WorkerEntrypoint` from `cloudflare:workers`, not any other class with the same shape)
|
|
4182
|
-
export const __RPC_STUB_BRAND:
|
|
4183
|
-
export const __RPC_TARGET_BRAND:
|
|
4184
|
-
export const __WORKER_ENTRYPOINT_BRAND:
|
|
4185
|
-
export const __DURABLE_OBJECT_BRAND:
|
|
4187
|
+
export const __RPC_STUB_BRAND: "__RPC_STUB_BRAND";
|
|
4188
|
+
export const __RPC_TARGET_BRAND: "__RPC_TARGET_BRAND";
|
|
4189
|
+
export const __WORKER_ENTRYPOINT_BRAND: "__WORKER_ENTRYPOINT_BRAND";
|
|
4190
|
+
export const __DURABLE_OBJECT_BRAND: "__DURABLE_OBJECT_BRAND";
|
|
4186
4191
|
export interface RpcTargetBranded {
|
|
4187
4192
|
[__RPC_TARGET_BRAND]: never;
|
|
4188
4193
|
}
|
package/oldest/index.d.ts
CHANGED
|
@@ -2064,15 +2064,20 @@ declare class DecompressionStream extends TransformStream<
|
|
|
2064
2064
|
}
|
|
2065
2065
|
declare class TextEncoderStream extends TransformStream<string, Uint8Array> {
|
|
2066
2066
|
constructor();
|
|
2067
|
+
get encoding(): string;
|
|
2067
2068
|
}
|
|
2068
2069
|
declare class TextDecoderStream extends TransformStream<
|
|
2069
2070
|
ArrayBuffer | ArrayBufferView,
|
|
2070
2071
|
string
|
|
2071
2072
|
> {
|
|
2072
2073
|
constructor(label?: string, options?: TextDecoderStreamTextDecoderStreamInit);
|
|
2074
|
+
get encoding(): string;
|
|
2075
|
+
get fatal(): boolean;
|
|
2076
|
+
get ignoreBOM(): boolean;
|
|
2073
2077
|
}
|
|
2074
2078
|
declare interface TextDecoderStreamTextDecoderStreamInit {
|
|
2075
2079
|
fatal?: boolean;
|
|
2080
|
+
ignoreBOM?: boolean;
|
|
2076
2081
|
}
|
|
2077
2082
|
declare class ByteLengthQueuingStrategy
|
|
2078
2083
|
implements QueuingStrategy<ArrayBufferView>
|
|
@@ -4184,10 +4189,10 @@ declare namespace Rpc {
|
|
|
4184
4189
|
// TypeScript uses *structural* typing meaning anything with the same shape as type `T` is a `T`.
|
|
4185
4190
|
// For the classes exported by `cloudflare:workers` we want *nominal* typing (i.e. we only want to
|
|
4186
4191
|
// accept `WorkerEntrypoint` from `cloudflare:workers`, not any other class with the same shape)
|
|
4187
|
-
export const __RPC_STUB_BRAND:
|
|
4188
|
-
export const __RPC_TARGET_BRAND:
|
|
4189
|
-
export const __WORKER_ENTRYPOINT_BRAND:
|
|
4190
|
-
export const __DURABLE_OBJECT_BRAND:
|
|
4192
|
+
export const __RPC_STUB_BRAND: "__RPC_STUB_BRAND";
|
|
4193
|
+
export const __RPC_TARGET_BRAND: "__RPC_TARGET_BRAND";
|
|
4194
|
+
export const __WORKER_ENTRYPOINT_BRAND: "__WORKER_ENTRYPOINT_BRAND";
|
|
4195
|
+
export const __DURABLE_OBJECT_BRAND: "__DURABLE_OBJECT_BRAND";
|
|
4191
4196
|
export interface RpcTargetBranded {
|
|
4192
4197
|
[__RPC_TARGET_BRAND]: never;
|
|
4193
4198
|
}
|
package/oldest/index.ts
CHANGED
|
@@ -2069,15 +2069,20 @@ export declare class TextEncoderStream extends TransformStream<
|
|
|
2069
2069
|
Uint8Array
|
|
2070
2070
|
> {
|
|
2071
2071
|
constructor();
|
|
2072
|
+
get encoding(): string;
|
|
2072
2073
|
}
|
|
2073
2074
|
export declare class TextDecoderStream extends TransformStream<
|
|
2074
2075
|
ArrayBuffer | ArrayBufferView,
|
|
2075
2076
|
string
|
|
2076
2077
|
> {
|
|
2077
2078
|
constructor(label?: string, options?: TextDecoderStreamTextDecoderStreamInit);
|
|
2079
|
+
get encoding(): string;
|
|
2080
|
+
get fatal(): boolean;
|
|
2081
|
+
get ignoreBOM(): boolean;
|
|
2078
2082
|
}
|
|
2079
2083
|
export interface TextDecoderStreamTextDecoderStreamInit {
|
|
2080
2084
|
fatal?: boolean;
|
|
2085
|
+
ignoreBOM?: boolean;
|
|
2081
2086
|
}
|
|
2082
2087
|
export declare class ByteLengthQueuingStrategy
|
|
2083
2088
|
implements QueuingStrategy<ArrayBufferView>
|
|
@@ -4179,10 +4184,10 @@ export declare namespace Rpc {
|
|
|
4179
4184
|
// TypeScript uses *structural* typing meaning anything with the same shape as type `T` is a `T`.
|
|
4180
4185
|
// For the classes exported by `cloudflare:workers` we want *nominal* typing (i.e. we only want to
|
|
4181
4186
|
// accept `WorkerEntrypoint` from `cloudflare:workers`, not any other class with the same shape)
|
|
4182
|
-
export const __RPC_STUB_BRAND:
|
|
4183
|
-
export const __RPC_TARGET_BRAND:
|
|
4184
|
-
export const __WORKER_ENTRYPOINT_BRAND:
|
|
4185
|
-
export const __DURABLE_OBJECT_BRAND:
|
|
4187
|
+
export const __RPC_STUB_BRAND: "__RPC_STUB_BRAND";
|
|
4188
|
+
export const __RPC_TARGET_BRAND: "__RPC_TARGET_BRAND";
|
|
4189
|
+
export const __WORKER_ENTRYPOINT_BRAND: "__WORKER_ENTRYPOINT_BRAND";
|
|
4190
|
+
export const __DURABLE_OBJECT_BRAND: "__DURABLE_OBJECT_BRAND";
|
|
4186
4191
|
export interface RpcTargetBranded {
|
|
4187
4192
|
[__RPC_TARGET_BRAND]: never;
|
|
4188
4193
|
}
|
package/package.json
CHANGED