@workers-community/workers-types 4.20260127.0 → 4.20260128.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.
Files changed (3) hide show
  1. package/index.d.ts +20 -8
  2. package/index.ts +22 -12
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -1637,6 +1637,12 @@ declare abstract class PromiseRejectionEvent extends Event {
1637
1637
  */
1638
1638
  declare class FormData {
1639
1639
  constructor();
1640
+ /**
1641
+ * The **`append()`** method of the FormData interface appends a new value onto an existing key inside a `FormData` object, or adds the key if it does not already exist.
1642
+ *
1643
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/append)
1644
+ */
1645
+ append(name: string, value: string | Blob): void;
1640
1646
  /**
1641
1647
  * The **`append()`** method of the FormData interface appends a new value onto an existing key inside a `FormData` object, or adds the key if it does not already exist.
1642
1648
  *
@@ -1673,6 +1679,12 @@ declare class FormData {
1673
1679
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/has)
1674
1680
  */
1675
1681
  has(name: string): boolean;
1682
+ /**
1683
+ * The **`set()`** method of the FormData interface sets a new value for an existing key inside a `FormData` object, or adds the key/value if it does not already exist.
1684
+ *
1685
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/set)
1686
+ */
1687
+ set(name: string, value: string | Blob): void;
1676
1688
  /**
1677
1689
  * The **`set()`** method of the FormData interface sets a new value for an existing key inside a `FormData` object, or adds the key/value if it does not already exist.
1678
1690
  *
@@ -2011,8 +2023,10 @@ declare var Request: {
2011
2023
  *
2012
2024
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request)
2013
2025
  */
2014
- interface Request<CfHostMetadata = unknown, Cf = CfProperties<CfHostMetadata>>
2015
- extends Body {
2026
+ interface Request<
2027
+ CfHostMetadata = unknown,
2028
+ Cf = CfProperties<CfHostMetadata>,
2029
+ > extends Body {
2016
2030
  /**
2017
2031
  * The **`clone()`** method of the Request interface creates a copy of the current `Request` object.
2018
2032
  *
@@ -3036,9 +3050,7 @@ interface TextDecoderStreamTextDecoderStreamInit {
3036
3050
  *
3037
3051
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy)
3038
3052
  */
3039
- declare class ByteLengthQueuingStrategy
3040
- implements QueuingStrategy<ArrayBufferView>
3041
- {
3053
+ declare class ByteLengthQueuingStrategy implements QueuingStrategy<ArrayBufferView> {
3042
3054
  constructor(init: QueuingStrategyInit);
3043
3055
  /**
3044
3056
  * The read-only **`ByteLengthQueuingStrategy.highWaterMark`** property returns the total number of bytes that can be contained in the internal queue before backpressure is applied.
@@ -10044,8 +10056,7 @@ interface IncomingRequestCfPropertiesBotManagement {
10044
10056
  */
10045
10057
  clientTrustScore: number;
10046
10058
  }
10047
- interface IncomingRequestCfPropertiesBotManagementEnterprise
10048
- extends IncomingRequestCfPropertiesBotManagement {
10059
+ interface IncomingRequestCfPropertiesBotManagementEnterprise extends IncomingRequestCfPropertiesBotManagement {
10049
10060
  /**
10050
10061
  * Results of Cloudflare's Bot Management analysis
10051
10062
  */
@@ -11594,7 +11605,8 @@ declare namespace CloudflareWorkersModule {
11594
11605
  export abstract class WorkflowEntrypoint<
11595
11606
  Env = unknown,
11596
11607
  T extends Rpc.Serializable<T> | unknown = unknown,
11597
- > implements Rpc.WorkflowEntrypointBranded
11608
+ >
11609
+ implements Rpc.WorkflowEntrypointBranded
11598
11610
  {
11599
11611
  [Rpc.__WORKFLOW_ENTRYPOINT_BRAND]: never;
11600
11612
  protected ctx: ExecutionContext;
package/index.ts CHANGED
@@ -1642,6 +1642,12 @@ export declare abstract class PromiseRejectionEvent extends Event {
1642
1642
  */
1643
1643
  export declare class FormData {
1644
1644
  constructor();
1645
+ /**
1646
+ * The **`append()`** method of the FormData interface appends a new value onto an existing key inside a `FormData` object, or adds the key if it does not already exist.
1647
+ *
1648
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/append)
1649
+ */
1650
+ append(name: string, value: string | Blob): void;
1645
1651
  /**
1646
1652
  * The **`append()`** method of the FormData interface appends a new value onto an existing key inside a `FormData` object, or adds the key if it does not already exist.
1647
1653
  *
@@ -1678,6 +1684,12 @@ export declare class FormData {
1678
1684
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/has)
1679
1685
  */
1680
1686
  has(name: string): boolean;
1687
+ /**
1688
+ * The **`set()`** method of the FormData interface sets a new value for an existing key inside a `FormData` object, or adds the key/value if it does not already exist.
1689
+ *
1690
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/set)
1691
+ */
1692
+ set(name: string, value: string | Blob): void;
1681
1693
  /**
1682
1694
  * The **`set()`** method of the FormData interface sets a new value for an existing key inside a `FormData` object, or adds the key/value if it does not already exist.
1683
1695
  *
@@ -3047,9 +3059,7 @@ export interface TextDecoderStreamTextDecoderStreamInit {
3047
3059
  *
3048
3060
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy)
3049
3061
  */
3050
- export declare class ByteLengthQueuingStrategy
3051
- implements QueuingStrategy<ArrayBufferView>
3052
- {
3062
+ export declare class ByteLengthQueuingStrategy implements QueuingStrategy<ArrayBufferView> {
3053
3063
  constructor(init: QueuingStrategyInit);
3054
3064
  /**
3055
3065
  * The read-only **`ByteLengthQueuingStrategy.highWaterMark`** property returns the total number of bytes that can be contained in the internal queue before backpressure is applied.
@@ -9719,8 +9729,7 @@ export interface RequestInitCfProperties extends Record<string, unknown> {
9719
9729
  */
9720
9730
  resolveOverride?: string;
9721
9731
  }
9722
- export interface RequestInitCfPropertiesImageDraw
9723
- extends BasicImageTransformations {
9732
+ export interface RequestInitCfPropertiesImageDraw extends BasicImageTransformations {
9724
9733
  /**
9725
9734
  * Absolute URL of the image file to use for the drawing. It can be any of
9726
9735
  * the supported file formats. For drawing of watermarks or non-rectangular
@@ -9757,8 +9766,7 @@ export interface RequestInitCfPropertiesImageDraw
9757
9766
  bottom?: number;
9758
9767
  right?: number;
9759
9768
  }
9760
- export interface RequestInitCfPropertiesImage
9761
- extends BasicImageTransformations {
9769
+ export interface RequestInitCfPropertiesImage extends BasicImageTransformations {
9762
9770
  /**
9763
9771
  * Device Pixel Ratio. Default 1. Multiplier for width/height that makes it
9764
9772
  * easier to specify higher-DPI sizes in <img srcset>.
@@ -9943,8 +9951,10 @@ export type IncomingRequestCfProperties<HostMetadata = unknown> =
9943
9951
  IncomingRequestCfPropertiesCloudflareForSaaSEnterprise<HostMetadata> &
9944
9952
  IncomingRequestCfPropertiesGeographicInformation &
9945
9953
  IncomingRequestCfPropertiesCloudflareAccessOrApiShield;
9946
- export interface IncomingRequestCfPropertiesBase
9947
- extends Record<string, unknown> {
9954
+ export interface IncomingRequestCfPropertiesBase extends Record<
9955
+ string,
9956
+ unknown
9957
+ > {
9948
9958
  /**
9949
9959
  * [ASN](https://www.iana.org/assignments/as-numbers/as-numbers.xhtml) of the incoming request.
9950
9960
  *
@@ -10061,8 +10071,7 @@ export interface IncomingRequestCfPropertiesBotManagement {
10061
10071
  */
10062
10072
  clientTrustScore: number;
10063
10073
  }
10064
- export interface IncomingRequestCfPropertiesBotManagementEnterprise
10065
- extends IncomingRequestCfPropertiesBotManagement {
10074
+ export interface IncomingRequestCfPropertiesBotManagementEnterprise extends IncomingRequestCfPropertiesBotManagement {
10066
10075
  /**
10067
10076
  * Results of Cloudflare's Bot Management analysis
10068
10077
  */
@@ -11564,7 +11573,8 @@ export declare namespace CloudflareWorkersModule {
11564
11573
  export abstract class WorkflowEntrypoint<
11565
11574
  Env = unknown,
11566
11575
  T extends Rpc.Serializable<T> | unknown = unknown,
11567
- > implements Rpc.WorkflowEntrypointBranded
11576
+ >
11577
+ implements Rpc.WorkflowEntrypointBranded
11568
11578
  {
11569
11579
  [Rpc.__WORKFLOW_ENTRYPOINT_BRAND]: never;
11570
11580
  protected ctx: ExecutionContext;
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  },
8
8
  "author": "Workers Community",
9
9
  "license": "MIT OR Apache-2.0",
10
- "version": "4.20260127.0",
10
+ "version": "4.20260128.0",
11
11
  "exports": {
12
12
  ".": {
13
13
  "types": "./index.d.ts",