Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.

Commit

Permalink
Updated types for 2022-02-08
Browse files Browse the repository at this point in the history
  • Loading branch information
autodecl-bot[bot] authored and vlovich committed Feb 9, 2022
1 parent db292c4 commit 74c94f8
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/2022-02-08.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@cloudflare/workers-types": minor
---

Updated auto-generated types @ 2022-02-08
9 changes: 8 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,8 @@ declare abstract class Crypto {
| Uint16Array
| Int32Array
| Uint32Array
| BigInt64Array
| BigUint64Array
>(buffer: T): T;
randomUUID(): string;
}
Expand Down Expand Up @@ -463,7 +465,7 @@ interface Element {
remove(): Element;
removeAndKeepContent(): Element;
setInnerContent(content: Content, options?: ContentOptions): Element;
onEndTag(handler: Function): void;
onEndTag(handler: (tag: EndTag) => void | Promise<void>): void;
}

interface EndTag {
Expand Down Expand Up @@ -1574,6 +1576,11 @@ declare abstract class WebSocket extends EventTarget<WebSocketEventMap> {
accept(): void;
send(message: ArrayBuffer | string): void;
close(code?: number, reason?: string): void;
static readonly READY_STATE_CONNECTING: number;
static readonly READY_STATE_OPEN: number;
static readonly READY_STATE_CLOSING: number;
static readonly READY_STATE_CLOSED: number;
readonly readyState: number;
}

declare type WebSocketEventMap = {
Expand Down
74 changes: 71 additions & 3 deletions src/workers.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
{
"name": "delay",
"type": {
"name": "integer"
"name": "double"
}
}
],
Expand Down Expand Up @@ -1117,6 +1117,12 @@
},
{
"name": "Uint32Array"
},
{
"name": "BigInt64Array"
},
{
"name": "BigUint64Array"
}
]
}
Expand Down Expand Up @@ -3038,7 +3044,30 @@
{
"name": "handler",
"type": {
"name": "Function"
"params": [
{
"name": "tag",
"type": {
"name": "EndTag"
}
}
],
"returns": {
"name": "|",
"args": [
{
"name": "void"
},
{
"name": "Promise",
"args": [
{
"name": "void"
}
]
}
]
}
}
}
],
Expand Down Expand Up @@ -8457,7 +8486,7 @@
{
"name": "delay",
"type": {
"name": "integer"
"name": "double"
}
},
{
Expand Down Expand Up @@ -11138,6 +11167,45 @@
"name": "void"
}
}
},
{
"name": "READY_STATE_CONNECTING",
"type": {
"name": "integer"
},
"static": true,
"readonly": true
},
{
"name": "READY_STATE_OPEN",
"type": {
"name": "integer"
},
"static": true,
"readonly": true
},
{
"name": "READY_STATE_CLOSING",
"type": {
"name": "integer"
},
"static": true,
"readonly": true
},
{
"name": "READY_STATE_CLOSED",
"type": {
"name": "integer"
},
"static": true,
"readonly": true
},
{
"name": "readyState",
"type": {
"name": "integer"
},
"readonly": true
}
],
"extends": [
Expand Down

0 comments on commit 74c94f8

Please sign in to comment.