@cloudflare/workers-types 3.3.1 → 3.4.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/index.d.ts +11 -4
- package/package.json +3 -3
package/index.d.ts
CHANGED
|
@@ -211,6 +211,8 @@ declare abstract class Crypto {
|
|
|
211
211
|
| Uint16Array
|
|
212
212
|
| Int32Array
|
|
213
213
|
| Uint32Array
|
|
214
|
+
| BigInt64Array
|
|
215
|
+
| BigUint64Array
|
|
214
216
|
>(buffer: T): T;
|
|
215
217
|
randomUUID(): string;
|
|
216
218
|
}
|
|
@@ -463,7 +465,7 @@ interface Element {
|
|
|
463
465
|
remove(): Element;
|
|
464
466
|
removeAndKeepContent(): Element;
|
|
465
467
|
setInnerContent(content: Content, options?: ContentOptions): Element;
|
|
466
|
-
onEndTag(handler:
|
|
468
|
+
onEndTag(handler: (tag: EndTag) => void | Promise<void>): void;
|
|
467
469
|
}
|
|
468
470
|
|
|
469
471
|
interface EndTag {
|
|
@@ -604,7 +606,7 @@ declare class FormData {
|
|
|
604
606
|
has(name: string): boolean;
|
|
605
607
|
set(name: string, value: string): void;
|
|
606
608
|
set(name: string, value: Blob, filename?: string): void;
|
|
607
|
-
entries(): IterableIterator<[key: string, value: File | string]
|
|
609
|
+
entries(): IterableIterator<[key: string, value: File | string]>;
|
|
608
610
|
keys(): IterableIterator<string>;
|
|
609
611
|
values(): IterableIterator<File | string>;
|
|
610
612
|
forEach<This = unknown>(
|
|
@@ -616,7 +618,7 @@ declare class FormData {
|
|
|
616
618
|
) => void,
|
|
617
619
|
thisArg?: This
|
|
618
620
|
): void;
|
|
619
|
-
[Symbol.iterator](): IterableIterator<[key: string, value: File | string]
|
|
621
|
+
[Symbol.iterator](): IterableIterator<[key: string, value: File | string]>;
|
|
620
622
|
}
|
|
621
623
|
|
|
622
624
|
declare class HTMLRewriter {
|
|
@@ -820,7 +822,7 @@ interface KVNamespace<K extends string = string> {
|
|
|
820
822
|
* @param value value to store. The type is inferred. The maximum size of a value is 25MB.
|
|
821
823
|
* @returns Returns a `Promise` that you should `await` on in order to verify a successful update.
|
|
822
824
|
* @example
|
|
823
|
-
* await NAMESPACE.put(key, value)
|
|
825
|
+
* await NAMESPACE.put(key, value);
|
|
824
826
|
*/
|
|
825
827
|
put(
|
|
826
828
|
key: K,
|
|
@@ -1574,6 +1576,11 @@ declare abstract class WebSocket extends EventTarget<WebSocketEventMap> {
|
|
|
1574
1576
|
accept(): void;
|
|
1575
1577
|
send(message: ArrayBuffer | string): void;
|
|
1576
1578
|
close(code?: number, reason?: string): void;
|
|
1579
|
+
static readonly READY_STATE_CONNECTING: number;
|
|
1580
|
+
static readonly READY_STATE_OPEN: number;
|
|
1581
|
+
static readonly READY_STATE_CLOSING: number;
|
|
1582
|
+
static readonly READY_STATE_CLOSED: number;
|
|
1583
|
+
readonly readyState: number;
|
|
1577
1584
|
}
|
|
1578
1585
|
|
|
1579
1586
|
declare type WebSocketEventMap = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudflare/workers-types",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.0",
|
|
4
4
|
"description": "TypeScript typings for Cloudflare Workers",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@changesets/changelog-github": "^0.4.2",
|
|
24
24
|
"@changesets/cli": "^2.18.1",
|
|
25
|
-
"@types/marked": "^
|
|
25
|
+
"@types/marked": "^4.0.1",
|
|
26
26
|
"@types/node": "^16.6.1",
|
|
27
27
|
"esbuild": "^0.12.22",
|
|
28
28
|
"esbuild-register": "^3.0.0",
|
|
29
|
-
"marked": "^
|
|
29
|
+
"marked": "^4.0.10",
|
|
30
30
|
"prettier": "^2.5.1",
|
|
31
31
|
"typescript": "^4.3.5"
|
|
32
32
|
}
|