@cloudflare/workers-types 5.20261106.1 → 5.20261108.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.
@@ -1156,39 +1156,6 @@ interface Scheduler {
1156
1156
  interface SchedulerWaitOptions {
1157
1157
  signal?: AbortSignal;
1158
1158
  }
1159
- /**
1160
- * The **`ExtendableEvent`** interface extends the lifetime of the install and activate events dispatched on the global scope as part of the service worker lifecycle. This ensures that any functional events (like FetchEvent) are not dispatched until it upgrades database schemas and deletes the outdated cache entries.
1161
- *
1162
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableEvent)
1163
- */
1164
- declare abstract class ExtendableEvent extends Event {
1165
- /**
1166
- * The **`ExtendableEvent.waitUntil()`** method tells the event dispatcher that work is ongoing. It can also be used to detect whether that work was successful. In service workers, waitUntil() tells the browser that work is ongoing until the promise settles, and it shouldn't terminate the service worker if it wants that work to complete.
1167
- *
1168
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableEvent/waitUntil)
1169
- */
1170
- waitUntil(promise: Promise<any>): void;
1171
- }
1172
- /**
1173
- * The **`CustomEvent`** interface can be used to attach custom data to an event generated by an application.
1174
- *
1175
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent)
1176
- */
1177
- declare class CustomEvent<T = any> extends Event {
1178
- constructor(type: string, init?: CustomEventCustomEventInit);
1179
- /**
1180
- * The read-only **`detail`** property of the CustomEvent interface returns any data passed when initializing the event.
1181
- *
1182
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/detail)
1183
- */
1184
- get detail(): T;
1185
- }
1186
- interface CustomEventCustomEventInit {
1187
- bubbles?: boolean;
1188
- cancelable?: boolean;
1189
- composed?: boolean;
1190
- detail?: any;
1191
- }
1192
1159
  /**
1193
1160
  * The **`Blob`** interface represents a blob, which is a file-like object of immutable, raw data; they can be read as text or binary data, or converted into a ReadableStream so its methods can be used for processing the data.
1194
1161
  *
@@ -1748,6 +1715,39 @@ interface TextEncoderEncodeIntoResult {
1748
1715
  read: number;
1749
1716
  written: number;
1750
1717
  }
1718
+ /**
1719
+ * The **`ExtendableEvent`** interface extends the lifetime of the install and activate events dispatched on the global scope as part of the service worker lifecycle. This ensures that any functional events (like FetchEvent) are not dispatched until it upgrades database schemas and deletes the outdated cache entries.
1720
+ *
1721
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableEvent)
1722
+ */
1723
+ declare abstract class ExtendableEvent extends Event {
1724
+ /**
1725
+ * The **`ExtendableEvent.waitUntil()`** method tells the event dispatcher that work is ongoing. It can also be used to detect whether that work was successful. In service workers, waitUntil() tells the browser that work is ongoing until the promise settles, and it shouldn't terminate the service worker if it wants that work to complete.
1726
+ *
1727
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableEvent/waitUntil)
1728
+ */
1729
+ waitUntil(promise: Promise<any>): void;
1730
+ }
1731
+ /**
1732
+ * The **`CustomEvent`** interface can be used to attach custom data to an event generated by an application.
1733
+ *
1734
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent)
1735
+ */
1736
+ declare class CustomEvent<T = any> extends Event {
1737
+ constructor(type: string, init?: CustomEventCustomEventInit);
1738
+ /**
1739
+ * The read-only **`detail`** property of the CustomEvent interface returns any data passed when initializing the event.
1740
+ *
1741
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/detail)
1742
+ */
1743
+ get detail(): T;
1744
+ }
1745
+ interface CustomEventCustomEventInit {
1746
+ bubbles?: boolean;
1747
+ cancelable?: boolean;
1748
+ composed?: boolean;
1749
+ detail?: any;
1750
+ }
1751
1751
  /**
1752
1752
  * The **`ErrorEvent`** interface represents events providing information related to errors in scripts or in files.
1753
1753
  *
@@ -1863,6 +1863,40 @@ declare abstract class PromiseRejectionEvent extends Event {
1863
1863
  */
1864
1864
  readonly reason: any;
1865
1865
  }
1866
+ /**
1867
+ * A **`CloseEvent`** is sent to clients using WebSockets when the connection is closed. This is delivered to the listener indicated by the WebSocket object's onclose attribute.
1868
+ *
1869
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent)
1870
+ */
1871
+ declare class CloseEvent extends Event {
1872
+ constructor(type: string, initializer?: CloseEventInit);
1873
+ /**
1874
+ * The **`code`** read-only property of the CloseEvent interface returns a WebSocket connection close code indicating the reason the connection was closed.
1875
+ *
1876
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/code)
1877
+ */
1878
+ readonly code: number;
1879
+ /**
1880
+ * The **`reason`** read-only property of the CloseEvent interface returns the WebSocket connection close reason the server gave for closing the connection; that is, a concise human-readable prose explanation for the closure.
1881
+ *
1882
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/reason)
1883
+ */
1884
+ readonly reason: string;
1885
+ /**
1886
+ * The **`wasClean`** read-only property of the CloseEvent interface returns true if the connection closed cleanly.
1887
+ *
1888
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/wasClean)
1889
+ */
1890
+ readonly wasClean: boolean;
1891
+ }
1892
+ interface CloseEventInit {
1893
+ bubbles?: boolean;
1894
+ cancelable?: boolean;
1895
+ composed?: boolean;
1896
+ code?: number;
1897
+ reason?: string;
1898
+ wasClean?: boolean;
1899
+ }
1866
1900
  /**
1867
1901
  * The **`FormData`** interface provides a way to construct a set of key/value pairs representing form fields and their values, which can be sent using the fetch(), XMLHttpRequest.send() or navigator.sendBeacon() methods. It uses the same format a form would use if the encoding type were set to "multipart/form-data".
1868
1902
  *
@@ -3889,40 +3923,6 @@ interface URLPatternResult {
3889
3923
  interface URLPatternOptions {
3890
3924
  ignoreCase?: boolean;
3891
3925
  }
3892
- /**
3893
- * A **`CloseEvent`** is sent to clients using WebSockets when the connection is closed. This is delivered to the listener indicated by the WebSocket object's onclose attribute.
3894
- *
3895
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent)
3896
- */
3897
- declare class CloseEvent extends Event {
3898
- constructor(type: string, initializer?: CloseEventInit);
3899
- /**
3900
- * The **`code`** read-only property of the CloseEvent interface returns a WebSocket connection close code indicating the reason the connection was closed.
3901
- *
3902
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/code)
3903
- */
3904
- readonly code: number;
3905
- /**
3906
- * The **`reason`** read-only property of the CloseEvent interface returns the WebSocket connection close reason the server gave for closing the connection; that is, a concise human-readable prose explanation for the closure.
3907
- *
3908
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/reason)
3909
- */
3910
- readonly reason: string;
3911
- /**
3912
- * The **`wasClean`** read-only property of the CloseEvent interface returns true if the connection closed cleanly.
3913
- *
3914
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/wasClean)
3915
- */
3916
- readonly wasClean: boolean;
3917
- }
3918
- interface CloseEventInit {
3919
- bubbles?: boolean;
3920
- cancelable?: boolean;
3921
- composed?: boolean;
3922
- code?: number;
3923
- reason?: string;
3924
- wasClean?: boolean;
3925
- }
3926
3926
  type WebSocketEventMap = {
3927
3927
  close: CloseEvent;
3928
3928
  message: MessageEvent;
@@ -1157,39 +1157,6 @@ export interface Scheduler {
1157
1157
  export interface SchedulerWaitOptions {
1158
1158
  signal?: AbortSignal;
1159
1159
  }
1160
- /**
1161
- * The **`ExtendableEvent`** interface extends the lifetime of the install and activate events dispatched on the global scope as part of the service worker lifecycle. This ensures that any functional events (like FetchEvent) are not dispatched until it upgrades database schemas and deletes the outdated cache entries.
1162
- *
1163
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableEvent)
1164
- */
1165
- export declare abstract class ExtendableEvent extends Event {
1166
- /**
1167
- * The **`ExtendableEvent.waitUntil()`** method tells the event dispatcher that work is ongoing. It can also be used to detect whether that work was successful. In service workers, waitUntil() tells the browser that work is ongoing until the promise settles, and it shouldn't terminate the service worker if it wants that work to complete.
1168
- *
1169
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableEvent/waitUntil)
1170
- */
1171
- waitUntil(promise: Promise<any>): void;
1172
- }
1173
- /**
1174
- * The **`CustomEvent`** interface can be used to attach custom data to an event generated by an application.
1175
- *
1176
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent)
1177
- */
1178
- export declare class CustomEvent<T = any> extends Event {
1179
- constructor(type: string, init?: CustomEventCustomEventInit);
1180
- /**
1181
- * The read-only **`detail`** property of the CustomEvent interface returns any data passed when initializing the event.
1182
- *
1183
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/detail)
1184
- */
1185
- get detail(): T;
1186
- }
1187
- export interface CustomEventCustomEventInit {
1188
- bubbles?: boolean;
1189
- cancelable?: boolean;
1190
- composed?: boolean;
1191
- detail?: any;
1192
- }
1193
1160
  /**
1194
1161
  * The **`Blob`** interface represents a blob, which is a file-like object of immutable, raw data; they can be read as text or binary data, or converted into a ReadableStream so its methods can be used for processing the data.
1195
1162
  *
@@ -1749,6 +1716,39 @@ export interface TextEncoderEncodeIntoResult {
1749
1716
  read: number;
1750
1717
  written: number;
1751
1718
  }
1719
+ /**
1720
+ * The **`ExtendableEvent`** interface extends the lifetime of the install and activate events dispatched on the global scope as part of the service worker lifecycle. This ensures that any functional events (like FetchEvent) are not dispatched until it upgrades database schemas and deletes the outdated cache entries.
1721
+ *
1722
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableEvent)
1723
+ */
1724
+ export declare abstract class ExtendableEvent extends Event {
1725
+ /**
1726
+ * The **`ExtendableEvent.waitUntil()`** method tells the event dispatcher that work is ongoing. It can also be used to detect whether that work was successful. In service workers, waitUntil() tells the browser that work is ongoing until the promise settles, and it shouldn't terminate the service worker if it wants that work to complete.
1727
+ *
1728
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableEvent/waitUntil)
1729
+ */
1730
+ waitUntil(promise: Promise<any>): void;
1731
+ }
1732
+ /**
1733
+ * The **`CustomEvent`** interface can be used to attach custom data to an event generated by an application.
1734
+ *
1735
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent)
1736
+ */
1737
+ export declare class CustomEvent<T = any> extends Event {
1738
+ constructor(type: string, init?: CustomEventCustomEventInit);
1739
+ /**
1740
+ * The read-only **`detail`** property of the CustomEvent interface returns any data passed when initializing the event.
1741
+ *
1742
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/detail)
1743
+ */
1744
+ get detail(): T;
1745
+ }
1746
+ export interface CustomEventCustomEventInit {
1747
+ bubbles?: boolean;
1748
+ cancelable?: boolean;
1749
+ composed?: boolean;
1750
+ detail?: any;
1751
+ }
1752
1752
  /**
1753
1753
  * The **`ErrorEvent`** interface represents events providing information related to errors in scripts or in files.
1754
1754
  *
@@ -1864,6 +1864,40 @@ export declare abstract class PromiseRejectionEvent extends Event {
1864
1864
  */
1865
1865
  readonly reason: any;
1866
1866
  }
1867
+ /**
1868
+ * A **`CloseEvent`** is sent to clients using WebSockets when the connection is closed. This is delivered to the listener indicated by the WebSocket object's onclose attribute.
1869
+ *
1870
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent)
1871
+ */
1872
+ export declare class CloseEvent extends Event {
1873
+ constructor(type: string, initializer?: CloseEventInit);
1874
+ /**
1875
+ * The **`code`** read-only property of the CloseEvent interface returns a WebSocket connection close code indicating the reason the connection was closed.
1876
+ *
1877
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/code)
1878
+ */
1879
+ readonly code: number;
1880
+ /**
1881
+ * The **`reason`** read-only property of the CloseEvent interface returns the WebSocket connection close reason the server gave for closing the connection; that is, a concise human-readable prose explanation for the closure.
1882
+ *
1883
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/reason)
1884
+ */
1885
+ readonly reason: string;
1886
+ /**
1887
+ * The **`wasClean`** read-only property of the CloseEvent interface returns true if the connection closed cleanly.
1888
+ *
1889
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/wasClean)
1890
+ */
1891
+ readonly wasClean: boolean;
1892
+ }
1893
+ export interface CloseEventInit {
1894
+ bubbles?: boolean;
1895
+ cancelable?: boolean;
1896
+ composed?: boolean;
1897
+ code?: number;
1898
+ reason?: string;
1899
+ wasClean?: boolean;
1900
+ }
1867
1901
  /**
1868
1902
  * The **`FormData`** interface provides a way to construct a set of key/value pairs representing form fields and their values, which can be sent using the fetch(), XMLHttpRequest.send() or navigator.sendBeacon() methods. It uses the same format a form would use if the encoding type were set to "multipart/form-data".
1869
1903
  *
@@ -3895,40 +3929,6 @@ export interface URLPatternResult {
3895
3929
  export interface URLPatternOptions {
3896
3930
  ignoreCase?: boolean;
3897
3931
  }
3898
- /**
3899
- * A **`CloseEvent`** is sent to clients using WebSockets when the connection is closed. This is delivered to the listener indicated by the WebSocket object's onclose attribute.
3900
- *
3901
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent)
3902
- */
3903
- export declare class CloseEvent extends Event {
3904
- constructor(type: string, initializer?: CloseEventInit);
3905
- /**
3906
- * The **`code`** read-only property of the CloseEvent interface returns a WebSocket connection close code indicating the reason the connection was closed.
3907
- *
3908
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/code)
3909
- */
3910
- readonly code: number;
3911
- /**
3912
- * The **`reason`** read-only property of the CloseEvent interface returns the WebSocket connection close reason the server gave for closing the connection; that is, a concise human-readable prose explanation for the closure.
3913
- *
3914
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/reason)
3915
- */
3916
- readonly reason: string;
3917
- /**
3918
- * The **`wasClean`** read-only property of the CloseEvent interface returns true if the connection closed cleanly.
3919
- *
3920
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/wasClean)
3921
- */
3922
- readonly wasClean: boolean;
3923
- }
3924
- export interface CloseEventInit {
3925
- bubbles?: boolean;
3926
- cancelable?: boolean;
3927
- composed?: boolean;
3928
- code?: number;
3929
- reason?: string;
3930
- wasClean?: boolean;
3931
- }
3932
3932
  export type WebSocketEventMap = {
3933
3933
  close: CloseEvent;
3934
3934
  message: MessageEvent;
package/index.d.ts CHANGED
@@ -1111,39 +1111,6 @@ interface Scheduler {
1111
1111
  interface SchedulerWaitOptions {
1112
1112
  signal?: AbortSignal;
1113
1113
  }
1114
- /**
1115
- * The **`ExtendableEvent`** interface extends the lifetime of the install and activate events dispatched on the global scope as part of the service worker lifecycle. This ensures that any functional events (like FetchEvent) are not dispatched until it upgrades database schemas and deletes the outdated cache entries.
1116
- *
1117
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableEvent)
1118
- */
1119
- declare abstract class ExtendableEvent extends Event {
1120
- /**
1121
- * The **`ExtendableEvent.waitUntil()`** method tells the event dispatcher that work is ongoing. It can also be used to detect whether that work was successful. In service workers, waitUntil() tells the browser that work is ongoing until the promise settles, and it shouldn't terminate the service worker if it wants that work to complete.
1122
- *
1123
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableEvent/waitUntil)
1124
- */
1125
- waitUntil(promise: Promise<any>): void;
1126
- }
1127
- /**
1128
- * The **`CustomEvent`** interface can be used to attach custom data to an event generated by an application.
1129
- *
1130
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent)
1131
- */
1132
- declare class CustomEvent<T = any> extends Event {
1133
- constructor(type: string, init?: CustomEventCustomEventInit);
1134
- /**
1135
- * The read-only **`detail`** property of the CustomEvent interface returns any data passed when initializing the event.
1136
- *
1137
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/detail)
1138
- */
1139
- get detail(): T;
1140
- }
1141
- interface CustomEventCustomEventInit {
1142
- bubbles?: boolean;
1143
- cancelable?: boolean;
1144
- composed?: boolean;
1145
- detail?: any;
1146
- }
1147
1114
  /**
1148
1115
  * The **`Blob`** interface represents a blob, which is a file-like object of immutable, raw data; they can be read as text or binary data, or converted into a ReadableStream so its methods can be used for processing the data.
1149
1116
  *
@@ -1646,6 +1613,39 @@ interface TextEncoderEncodeIntoResult {
1646
1613
  read: number;
1647
1614
  written: number;
1648
1615
  }
1616
+ /**
1617
+ * The **`ExtendableEvent`** interface extends the lifetime of the install and activate events dispatched on the global scope as part of the service worker lifecycle. This ensures that any functional events (like FetchEvent) are not dispatched until it upgrades database schemas and deletes the outdated cache entries.
1618
+ *
1619
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableEvent)
1620
+ */
1621
+ declare abstract class ExtendableEvent extends Event {
1622
+ /**
1623
+ * The **`ExtendableEvent.waitUntil()`** method tells the event dispatcher that work is ongoing. It can also be used to detect whether that work was successful. In service workers, waitUntil() tells the browser that work is ongoing until the promise settles, and it shouldn't terminate the service worker if it wants that work to complete.
1624
+ *
1625
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableEvent/waitUntil)
1626
+ */
1627
+ waitUntil(promise: Promise<any>): void;
1628
+ }
1629
+ /**
1630
+ * The **`CustomEvent`** interface can be used to attach custom data to an event generated by an application.
1631
+ *
1632
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent)
1633
+ */
1634
+ declare class CustomEvent<T = any> extends Event {
1635
+ constructor(type: string, init?: CustomEventCustomEventInit);
1636
+ /**
1637
+ * The read-only **`detail`** property of the CustomEvent interface returns any data passed when initializing the event.
1638
+ *
1639
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/detail)
1640
+ */
1641
+ get detail(): T;
1642
+ }
1643
+ interface CustomEventCustomEventInit {
1644
+ bubbles?: boolean;
1645
+ cancelable?: boolean;
1646
+ composed?: boolean;
1647
+ detail?: any;
1648
+ }
1649
1649
  /**
1650
1650
  * The **`ErrorEvent`** interface represents events providing information related to errors in scripts or in files.
1651
1651
  *
@@ -1761,6 +1761,40 @@ declare abstract class PromiseRejectionEvent extends Event {
1761
1761
  */
1762
1762
  readonly reason: any;
1763
1763
  }
1764
+ /**
1765
+ * A **`CloseEvent`** is sent to clients using WebSockets when the connection is closed. This is delivered to the listener indicated by the WebSocket object's onclose attribute.
1766
+ *
1767
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent)
1768
+ */
1769
+ declare class CloseEvent extends Event {
1770
+ constructor(type: string, initializer?: CloseEventInit);
1771
+ /**
1772
+ * The **`code`** read-only property of the CloseEvent interface returns a WebSocket connection close code indicating the reason the connection was closed.
1773
+ *
1774
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/code)
1775
+ */
1776
+ readonly code: number;
1777
+ /**
1778
+ * The **`reason`** read-only property of the CloseEvent interface returns the WebSocket connection close reason the server gave for closing the connection; that is, a concise human-readable prose explanation for the closure.
1779
+ *
1780
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/reason)
1781
+ */
1782
+ readonly reason: string;
1783
+ /**
1784
+ * The **`wasClean`** read-only property of the CloseEvent interface returns true if the connection closed cleanly.
1785
+ *
1786
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/wasClean)
1787
+ */
1788
+ readonly wasClean: boolean;
1789
+ }
1790
+ interface CloseEventInit {
1791
+ bubbles?: boolean;
1792
+ cancelable?: boolean;
1793
+ composed?: boolean;
1794
+ code?: number;
1795
+ reason?: string;
1796
+ wasClean?: boolean;
1797
+ }
1764
1798
  /**
1765
1799
  * The **`FormData`** interface provides a way to construct a set of key/value pairs representing form fields and their values, which can be sent using the fetch(), XMLHttpRequest.send() or navigator.sendBeacon() methods. It uses the same format a form would use if the encoding type were set to "multipart/form-data".
1766
1800
  *
@@ -3734,40 +3768,6 @@ interface URLPatternResult {
3734
3768
  interface URLPatternOptions {
3735
3769
  ignoreCase?: boolean;
3736
3770
  }
3737
- /**
3738
- * A **`CloseEvent`** is sent to clients using WebSockets when the connection is closed. This is delivered to the listener indicated by the WebSocket object's onclose attribute.
3739
- *
3740
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent)
3741
- */
3742
- declare class CloseEvent extends Event {
3743
- constructor(type: string, initializer?: CloseEventInit);
3744
- /**
3745
- * The **`code`** read-only property of the CloseEvent interface returns a WebSocket connection close code indicating the reason the connection was closed.
3746
- *
3747
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/code)
3748
- */
3749
- readonly code: number;
3750
- /**
3751
- * The **`reason`** read-only property of the CloseEvent interface returns the WebSocket connection close reason the server gave for closing the connection; that is, a concise human-readable prose explanation for the closure.
3752
- *
3753
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/reason)
3754
- */
3755
- readonly reason: string;
3756
- /**
3757
- * The **`wasClean`** read-only property of the CloseEvent interface returns true if the connection closed cleanly.
3758
- *
3759
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/wasClean)
3760
- */
3761
- readonly wasClean: boolean;
3762
- }
3763
- interface CloseEventInit {
3764
- bubbles?: boolean;
3765
- cancelable?: boolean;
3766
- composed?: boolean;
3767
- code?: number;
3768
- reason?: string;
3769
- wasClean?: boolean;
3770
- }
3771
3771
  type WebSocketEventMap = {
3772
3772
  close: CloseEvent;
3773
3773
  message: MessageEvent;
package/index.ts CHANGED
@@ -1115,39 +1115,6 @@ export interface Scheduler {
1115
1115
  export interface SchedulerWaitOptions {
1116
1116
  signal?: AbortSignal;
1117
1117
  }
1118
- /**
1119
- * The **`ExtendableEvent`** interface extends the lifetime of the install and activate events dispatched on the global scope as part of the service worker lifecycle. This ensures that any functional events (like FetchEvent) are not dispatched until it upgrades database schemas and deletes the outdated cache entries.
1120
- *
1121
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableEvent)
1122
- */
1123
- export declare abstract class ExtendableEvent extends Event {
1124
- /**
1125
- * The **`ExtendableEvent.waitUntil()`** method tells the event dispatcher that work is ongoing. It can also be used to detect whether that work was successful. In service workers, waitUntil() tells the browser that work is ongoing until the promise settles, and it shouldn't terminate the service worker if it wants that work to complete.
1126
- *
1127
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableEvent/waitUntil)
1128
- */
1129
- waitUntil(promise: Promise<any>): void;
1130
- }
1131
- /**
1132
- * The **`CustomEvent`** interface can be used to attach custom data to an event generated by an application.
1133
- *
1134
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent)
1135
- */
1136
- export declare class CustomEvent<T = any> extends Event {
1137
- constructor(type: string, init?: CustomEventCustomEventInit);
1138
- /**
1139
- * The read-only **`detail`** property of the CustomEvent interface returns any data passed when initializing the event.
1140
- *
1141
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/detail)
1142
- */
1143
- get detail(): T;
1144
- }
1145
- export interface CustomEventCustomEventInit {
1146
- bubbles?: boolean;
1147
- cancelable?: boolean;
1148
- composed?: boolean;
1149
- detail?: any;
1150
- }
1151
1118
  /**
1152
1119
  * The **`Blob`** interface represents a blob, which is a file-like object of immutable, raw data; they can be read as text or binary data, or converted into a ReadableStream so its methods can be used for processing the data.
1153
1120
  *
@@ -1650,6 +1617,39 @@ export interface TextEncoderEncodeIntoResult {
1650
1617
  read: number;
1651
1618
  written: number;
1652
1619
  }
1620
+ /**
1621
+ * The **`ExtendableEvent`** interface extends the lifetime of the install and activate events dispatched on the global scope as part of the service worker lifecycle. This ensures that any functional events (like FetchEvent) are not dispatched until it upgrades database schemas and deletes the outdated cache entries.
1622
+ *
1623
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableEvent)
1624
+ */
1625
+ export declare abstract class ExtendableEvent extends Event {
1626
+ /**
1627
+ * The **`ExtendableEvent.waitUntil()`** method tells the event dispatcher that work is ongoing. It can also be used to detect whether that work was successful. In service workers, waitUntil() tells the browser that work is ongoing until the promise settles, and it shouldn't terminate the service worker if it wants that work to complete.
1628
+ *
1629
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableEvent/waitUntil)
1630
+ */
1631
+ waitUntil(promise: Promise<any>): void;
1632
+ }
1633
+ /**
1634
+ * The **`CustomEvent`** interface can be used to attach custom data to an event generated by an application.
1635
+ *
1636
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent)
1637
+ */
1638
+ export declare class CustomEvent<T = any> extends Event {
1639
+ constructor(type: string, init?: CustomEventCustomEventInit);
1640
+ /**
1641
+ * The read-only **`detail`** property of the CustomEvent interface returns any data passed when initializing the event.
1642
+ *
1643
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/detail)
1644
+ */
1645
+ get detail(): T;
1646
+ }
1647
+ export interface CustomEventCustomEventInit {
1648
+ bubbles?: boolean;
1649
+ cancelable?: boolean;
1650
+ composed?: boolean;
1651
+ detail?: any;
1652
+ }
1653
1653
  /**
1654
1654
  * The **`ErrorEvent`** interface represents events providing information related to errors in scripts or in files.
1655
1655
  *
@@ -1765,6 +1765,40 @@ export declare abstract class PromiseRejectionEvent extends Event {
1765
1765
  */
1766
1766
  readonly reason: any;
1767
1767
  }
1768
+ /**
1769
+ * A **`CloseEvent`** is sent to clients using WebSockets when the connection is closed. This is delivered to the listener indicated by the WebSocket object's onclose attribute.
1770
+ *
1771
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent)
1772
+ */
1773
+ export declare class CloseEvent extends Event {
1774
+ constructor(type: string, initializer?: CloseEventInit);
1775
+ /**
1776
+ * The **`code`** read-only property of the CloseEvent interface returns a WebSocket connection close code indicating the reason the connection was closed.
1777
+ *
1778
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/code)
1779
+ */
1780
+ readonly code: number;
1781
+ /**
1782
+ * The **`reason`** read-only property of the CloseEvent interface returns the WebSocket connection close reason the server gave for closing the connection; that is, a concise human-readable prose explanation for the closure.
1783
+ *
1784
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/reason)
1785
+ */
1786
+ readonly reason: string;
1787
+ /**
1788
+ * The **`wasClean`** read-only property of the CloseEvent interface returns true if the connection closed cleanly.
1789
+ *
1790
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/wasClean)
1791
+ */
1792
+ readonly wasClean: boolean;
1793
+ }
1794
+ export interface CloseEventInit {
1795
+ bubbles?: boolean;
1796
+ cancelable?: boolean;
1797
+ composed?: boolean;
1798
+ code?: number;
1799
+ reason?: string;
1800
+ wasClean?: boolean;
1801
+ }
1768
1802
  /**
1769
1803
  * The **`FormData`** interface provides a way to construct a set of key/value pairs representing form fields and their values, which can be sent using the fetch(), XMLHttpRequest.send() or navigator.sendBeacon() methods. It uses the same format a form would use if the encoding type were set to "multipart/form-data".
1770
1804
  *
@@ -3743,40 +3777,6 @@ export interface URLPatternResult {
3743
3777
  export interface URLPatternOptions {
3744
3778
  ignoreCase?: boolean;
3745
3779
  }
3746
- /**
3747
- * A **`CloseEvent`** is sent to clients using WebSockets when the connection is closed. This is delivered to the listener indicated by the WebSocket object's onclose attribute.
3748
- *
3749
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent)
3750
- */
3751
- export declare class CloseEvent extends Event {
3752
- constructor(type: string, initializer?: CloseEventInit);
3753
- /**
3754
- * The **`code`** read-only property of the CloseEvent interface returns a WebSocket connection close code indicating the reason the connection was closed.
3755
- *
3756
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/code)
3757
- */
3758
- readonly code: number;
3759
- /**
3760
- * The **`reason`** read-only property of the CloseEvent interface returns the WebSocket connection close reason the server gave for closing the connection; that is, a concise human-readable prose explanation for the closure.
3761
- *
3762
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/reason)
3763
- */
3764
- readonly reason: string;
3765
- /**
3766
- * The **`wasClean`** read-only property of the CloseEvent interface returns true if the connection closed cleanly.
3767
- *
3768
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/wasClean)
3769
- */
3770
- readonly wasClean: boolean;
3771
- }
3772
- export interface CloseEventInit {
3773
- bubbles?: boolean;
3774
- cancelable?: boolean;
3775
- composed?: boolean;
3776
- code?: number;
3777
- reason?: string;
3778
- wasClean?: boolean;
3779
- }
3780
3780
  export type WebSocketEventMap = {
3781
3781
  close: CloseEvent;
3782
3782
  message: MessageEvent;
package/package.json CHANGED
@@ -7,5 +7,5 @@
7
7
  },
8
8
  "author": "Cloudflare Workers DevProd Team <workers-devprod@cloudflare.com> (https://workers.cloudflare.com)",
9
9
  "license": "MIT OR Apache-2.0",
10
- "version": "5.20261106.1"
10
+ "version": "5.20261108.1"
11
11
  }