Skip to content

Commit 3308122

Browse files
tpictsaschanaz
andauthored
feat: Increase specificity of WebSocket.readyState (#2109)
Co-authored-by: saschanaz <[email protected]>
1 parent 13f46c7 commit 3308122

13 files changed

+20
-12
lines changed

baselines/dom.generated.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36680,7 +36680,7 @@ interface WebSocket extends EventTarget {
3668036680
*
3668136681
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/readyState)
3668236682
*/
36683-
readonly readyState: number;
36683+
readonly readyState: 0 | 1 | 2 | 3;
3668436684
/**
3668536685
* The **`WebSocket.url`** read-only property returns the absolute URL of the WebSocket as resolved by the constructor.
3668636686
*

baselines/serviceworker.generated.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10472,7 +10472,7 @@ interface WebSocket extends EventTarget {
1047210472
*
1047310473
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/readyState)
1047410474
*/
10475-
readonly readyState: number;
10475+
readonly readyState: 0 | 1 | 2 | 3;
1047610476
/**
1047710477
* The **`WebSocket.url`** read-only property returns the absolute URL of the WebSocket as resolved by the constructor.
1047810478
*

baselines/sharedworker.generated.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10015,7 +10015,7 @@ interface WebSocket extends EventTarget {
1001510015
*
1001610016
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/readyState)
1001710017
*/
10018-
readonly readyState: number;
10018+
readonly readyState: 0 | 1 | 2 | 3;
1001910019
/**
1002010020
* The **`WebSocket.url`** read-only property returns the absolute URL of the WebSocket as resolved by the constructor.
1002110021
*

baselines/ts5.5/dom.generated.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36657,7 +36657,7 @@ interface WebSocket extends EventTarget {
3665736657
*
3665836658
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/readyState)
3665936659
*/
36660-
readonly readyState: number;
36660+
readonly readyState: 0 | 1 | 2 | 3;
3666136661
/**
3666236662
* The **`WebSocket.url`** read-only property returns the absolute URL of the WebSocket as resolved by the constructor.
3666336663
*

baselines/ts5.5/serviceworker.generated.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10472,7 +10472,7 @@ interface WebSocket extends EventTarget {
1047210472
*
1047310473
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/readyState)
1047410474
*/
10475-
readonly readyState: number;
10475+
readonly readyState: 0 | 1 | 2 | 3;
1047610476
/**
1047710477
* The **`WebSocket.url`** read-only property returns the absolute URL of the WebSocket as resolved by the constructor.
1047810478
*

baselines/ts5.5/sharedworker.generated.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10015,7 +10015,7 @@ interface WebSocket extends EventTarget {
1001510015
*
1001610016
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/readyState)
1001710017
*/
10018-
readonly readyState: number;
10018+
readonly readyState: 0 | 1 | 2 | 3;
1001910019
/**
1002010020
* The **`WebSocket.url`** read-only property returns the absolute URL of the WebSocket as resolved by the constructor.
1002110021
*

baselines/ts5.5/webworker.generated.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11906,7 +11906,7 @@ interface WebSocket extends EventTarget {
1190611906
*
1190711907
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/readyState)
1190811908
*/
11909-
readonly readyState: number;
11909+
readonly readyState: 0 | 1 | 2 | 3;
1191011910
/**
1191111911
* The **`WebSocket.url`** read-only property returns the absolute URL of the WebSocket as resolved by the constructor.
1191211912
*

baselines/ts5.6/dom.generated.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36680,7 +36680,7 @@ interface WebSocket extends EventTarget {
3668036680
*
3668136681
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/readyState)
3668236682
*/
36683-
readonly readyState: number;
36683+
readonly readyState: 0 | 1 | 2 | 3;
3668436684
/**
3668536685
* The **`WebSocket.url`** read-only property returns the absolute URL of the WebSocket as resolved by the constructor.
3668636686
*

baselines/ts5.6/serviceworker.generated.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10472,7 +10472,7 @@ interface WebSocket extends EventTarget {
1047210472
*
1047310473
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/readyState)
1047410474
*/
10475-
readonly readyState: number;
10475+
readonly readyState: 0 | 1 | 2 | 3;
1047610476
/**
1047710477
* The **`WebSocket.url`** read-only property returns the absolute URL of the WebSocket as resolved by the constructor.
1047810478
*

baselines/ts5.6/sharedworker.generated.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10015,7 +10015,7 @@ interface WebSocket extends EventTarget {
1001510015
*
1001610016
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/readyState)
1001710017
*/
10018-
readonly readyState: number;
10018+
readonly readyState: 0 | 1 | 2 | 3;
1001910019
/**
1002010020
* The **`WebSocket.url`** read-only property returns the absolute URL of the WebSocket as resolved by the constructor.
1002110021
*

0 commit comments

Comments
 (0)