You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: baselines/serviceworker.generated.d.ts
+3-30
Original file line number
Diff line number
Diff line change
@@ -503,6 +503,7 @@ interface RequestInit {
503
503
method?: string;
504
504
/** A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode. */
505
505
mode?: RequestMode;
506
+
priority?: FetchPriority;
506
507
/** A string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request's redirect. */
507
508
redirect?: RequestRedirect;
508
509
/** A string whose value is a same-origin URL, "about:client", or the empty string, to set request's referrer. */
/** 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. */
882
884
interfaceCloseEventextendsEvent{
883
-
/** Returns the WebSocket connection close code provided by the server. */
884
885
readonlycode: number;
885
-
/** Returns the WebSocket connection close reason provided by the server. */
886
886
readonlyreason: string;
887
-
/** Returns true if the connection closed cleanly; false otherwise. */
888
887
readonlywasClean: boolean;
889
888
}
890
889
@@ -1671,9 +1670,7 @@ declare var IDBCursorWithValue: {
/** Provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection. */
5055
5043
interfaceWebSocketextendsEventTarget{
5056
-
/**
5057
-
* Returns a string that indicates how binary data from the WebSocket object is exposed to scripts:
5058
-
*
5059
-
* Can be set, to change how binary data is returned. The default is "blob".
5060
-
*/
5061
5044
binaryType: BinaryType;
5062
-
/**
5063
-
* Returns the number of bytes of application data (UTF-8 text and binary data) that have been queued using send() but not yet been transmitted to the network.
5064
-
*
5065
-
* If the WebSocket connection is closed, this attribute's value will only increase with each call to the send() method. (The number does not reset to zero once the connection closes.)
5066
-
*/
5067
5045
readonlybufferedAmount: number;
5068
-
/** Returns the extensions selected by the server, if any. */
/** Returns the subprotocol selected by the server, if any. It can be used in conjunction with the array form of the constructor's second argument to perform subprotocol negotiation. */
5075
5051
readonlyprotocol: string;
5076
-
/** Returns the state of the WebSocket object's connection. It can have the values described below. */
5077
5052
readonlyreadyState: number;
5078
-
/** Returns the URL that was used to establish the WebSocket connection. */
5079
5053
readonlyurl: string;
5080
-
/** Closes the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason. */
5081
5054
close(code?: number,reason?: string): void;
5082
-
/** Transmits data using the WebSocket connection. data can be a string, a Blob, an ArrayBuffer, or an ArrayBufferView. */
Copy file name to clipboardExpand all lines: baselines/sharedworker.generated.d.ts
+3-37
Original file line number
Diff line number
Diff line change
@@ -469,6 +469,7 @@ interface RequestInit {
469
469
method?: string;
470
470
/** A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode. */
471
471
mode?: RequestMode;
472
+
priority?: FetchPriority;
472
473
/** A string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request's redirect. */
473
474
redirect?: RequestRedirect;
474
475
/** A string whose value is a same-origin URL, "about:client", or the empty string, to set request's referrer. */
/** 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. */
826
828
interfaceCloseEventextendsEvent{
827
-
/** Returns the WebSocket connection close code provided by the server. */
828
829
readonlycode: number;
829
-
/** Returns the WebSocket connection close reason provided by the server. */
830
830
readonlyreason: string;
831
-
/** Returns true if the connection closed cleanly; false otherwise. */
832
831
readonlywasClean: boolean;
833
832
}
834
833
@@ -1590,9 +1589,7 @@ declare var IDBCursorWithValue: {
/** Provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection. */
4922
4910
interfaceWebSocketextendsEventTarget{
4923
-
/**
4924
-
* Returns a string that indicates how binary data from the WebSocket object is exposed to scripts:
4925
-
*
4926
-
* Can be set, to change how binary data is returned. The default is "blob".
4927
-
*/
4928
4911
binaryType: BinaryType;
4929
-
/**
4930
-
* Returns the number of bytes of application data (UTF-8 text and binary data) that have been queued using send() but not yet been transmitted to the network.
4931
-
*
4932
-
* If the WebSocket connection is closed, this attribute's value will only increase with each call to the send() method. (The number does not reset to zero once the connection closes.)
4933
-
*/
4934
4912
readonlybufferedAmount: number;
4935
-
/** Returns the extensions selected by the server, if any. */
/** Returns the subprotocol selected by the server, if any. It can be used in conjunction with the array form of the constructor's second argument to perform subprotocol negotiation. */
4942
4918
readonlyprotocol: string;
4943
-
/** Returns the state of the WebSocket object's connection. It can have the values described below. */
4944
4919
readonlyreadyState: number;
4945
-
/** Returns the URL that was used to establish the WebSocket connection. */
4946
4920
readonlyurl: string;
4947
-
/** Closes the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason. */
4948
4921
close(code?: number,reason?: string): void;
4949
-
/** Transmits data using the WebSocket connection. data can be a string, a Blob, an ArrayBuffer, or an ArrayBufferView. */
0 commit comments