@types/webworker 0.0.74 → 0.0.75
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/README.md +3 -1
- package/index.d.ts +192 -9
- package/package.json +1 -1
- package/ts5.5/index.d.ts +192 -9
- package/ts5.6/index.d.ts +192 -9
- package/ts5.9/index.d.ts +192 -9
package/README.md
CHANGED
|
@@ -16,6 +16,8 @@ npm install @typescript/lib-webworker@npm:@types/webworker --save-dev
|
|
|
16
16
|
yarn add @typescript/lib-webworker@npm:@types/webworker --dev
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
+
If you are using TypeScript 6.0+, set [`libReplacement`](https://www.typescriptlang.org/tsconfig/#libReplacement) to `true` in your `tsconfig.json`.
|
|
20
|
+
|
|
19
21
|
That's all.
|
|
20
22
|
|
|
21
23
|
<details>
|
|
@@ -45,4 +47,4 @@ This project does not respect semantic versioning as almost every change could p
|
|
|
45
47
|
|
|
46
48
|
## Deploy Metadata
|
|
47
49
|
|
|
48
|
-
You can read what changed in version 0.0.
|
|
50
|
+
You can read what changed in version 0.0.75 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fwebworker%400.0.75.
|
package/index.d.ts
CHANGED
|
@@ -1193,6 +1193,34 @@ interface SecurityPolicyViolationEventInit extends EventInit {
|
|
|
1193
1193
|
violatedDirective?: string;
|
|
1194
1194
|
}
|
|
1195
1195
|
|
|
1196
|
+
interface SerialInputSignals {
|
|
1197
|
+
clearToSend: boolean;
|
|
1198
|
+
dataCarrierDetect: boolean;
|
|
1199
|
+
dataSetReady: boolean;
|
|
1200
|
+
ringIndicator: boolean;
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1203
|
+
interface SerialOptions {
|
|
1204
|
+
baudRate: number;
|
|
1205
|
+
bufferSize?: number;
|
|
1206
|
+
dataBits?: number;
|
|
1207
|
+
flowControl?: FlowControlType;
|
|
1208
|
+
parity?: ParityType;
|
|
1209
|
+
stopBits?: number;
|
|
1210
|
+
}
|
|
1211
|
+
|
|
1212
|
+
interface SerialOutputSignals {
|
|
1213
|
+
break?: boolean;
|
|
1214
|
+
dataTerminalReady?: boolean;
|
|
1215
|
+
requestToSend?: boolean;
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1218
|
+
interface SerialPortInfo {
|
|
1219
|
+
bluetoothServiceClassId?: BluetoothServiceUUID;
|
|
1220
|
+
usbProductId?: number;
|
|
1221
|
+
usbVendorId?: number;
|
|
1222
|
+
}
|
|
1223
|
+
|
|
1196
1224
|
interface StorageEstimate {
|
|
1197
1225
|
quota?: number;
|
|
1198
1226
|
usage?: number;
|
|
@@ -2042,9 +2070,29 @@ declare var CSSKeywordValue: {
|
|
|
2042
2070
|
new(value: string): CSSKeywordValue;
|
|
2043
2071
|
};
|
|
2044
2072
|
|
|
2073
|
+
/**
|
|
2074
|
+
* The **`CSSMathClamp`** interface of the CSS Typed Object Model API represents the CSS clamp() function. It inherits properties and methods from its parent CSSNumericValue.
|
|
2075
|
+
*
|
|
2076
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp)
|
|
2077
|
+
*/
|
|
2045
2078
|
interface CSSMathClamp extends CSSMathValue {
|
|
2079
|
+
/**
|
|
2080
|
+
* The **`lower`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the minimum value of a CSSMathClamp object.
|
|
2081
|
+
*
|
|
2082
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/lower)
|
|
2083
|
+
*/
|
|
2046
2084
|
readonly lower: CSSNumericValue;
|
|
2085
|
+
/**
|
|
2086
|
+
* The **`upper`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the maximum value of a CSSMathClamp object.
|
|
2087
|
+
*
|
|
2088
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/upper)
|
|
2089
|
+
*/
|
|
2047
2090
|
readonly upper: CSSNumericValue;
|
|
2091
|
+
/**
|
|
2092
|
+
* The **`value`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the preferred value of a CSSMathClamp object.
|
|
2093
|
+
*
|
|
2094
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/value)
|
|
2095
|
+
*/
|
|
2048
2096
|
readonly value: CSSNumericValue;
|
|
2049
2097
|
}
|
|
2050
2098
|
|
|
@@ -2555,13 +2603,13 @@ declare var CSSTranslate: {
|
|
|
2555
2603
|
};
|
|
2556
2604
|
|
|
2557
2605
|
/**
|
|
2558
|
-
* The **`CSSUnitValue`** interface of the CSS Typed Object Model API represents values that contain a single unit type.
|
|
2606
|
+
* The **`CSSUnitValue`** interface of the CSS Typed Object Model API represents values that contain a single unit type.
|
|
2559
2607
|
*
|
|
2560
2608
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue)
|
|
2561
2609
|
*/
|
|
2562
2610
|
interface CSSUnitValue extends CSSNumericValue {
|
|
2563
2611
|
/**
|
|
2564
|
-
* The **`CSSUnitValue.unit`** read-only property of the CSSUnitValue interface returns a string indicating the type
|
|
2612
|
+
* The **`CSSUnitValue.unit`** read-only property of the CSSUnitValue interface returns a string indicating the unit type.
|
|
2565
2613
|
*
|
|
2566
2614
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/unit)
|
|
2567
2615
|
*/
|
|
@@ -2926,6 +2974,8 @@ interface CanvasTextDrawingStyles {
|
|
|
2926
2974
|
fontStretch: CanvasFontStretch;
|
|
2927
2975
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontVariantCaps) */
|
|
2928
2976
|
fontVariantCaps: CanvasFontVariantCaps;
|
|
2977
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lang) */
|
|
2978
|
+
lang: string;
|
|
2929
2979
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/letterSpacing) */
|
|
2930
2980
|
letterSpacing: string;
|
|
2931
2981
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textAlign) */
|
|
@@ -4348,7 +4398,7 @@ interface Event {
|
|
|
4348
4398
|
*/
|
|
4349
4399
|
readonly eventPhase: number;
|
|
4350
4400
|
/**
|
|
4351
|
-
* The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The
|
|
4401
|
+
* The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The click event fired through HTMLElement.click() sets the isTrusted property to false.
|
|
4352
4402
|
*
|
|
4353
4403
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted)
|
|
4354
4404
|
*/
|
|
@@ -6333,8 +6383,12 @@ interface GPUSupportedLimits {
|
|
|
6333
6383
|
readonly maxSamplersPerShaderStage: number;
|
|
6334
6384
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
6335
6385
|
readonly maxStorageBufferBindingSize: number;
|
|
6386
|
+
readonly maxStorageBuffersInFragmentStage: number;
|
|
6387
|
+
readonly maxStorageBuffersInVertexStage: number;
|
|
6336
6388
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
6337
6389
|
readonly maxStorageBuffersPerShaderStage: number;
|
|
6390
|
+
readonly maxStorageTexturesInFragmentStage: number;
|
|
6391
|
+
readonly maxStorageTexturesInVertexStage: number;
|
|
6338
6392
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
6339
6393
|
readonly maxStorageTexturesPerShaderStage: number;
|
|
6340
6394
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
@@ -8113,7 +8167,7 @@ interface OffscreenCanvas extends EventTarget {
|
|
|
8113
8167
|
getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null;
|
|
8114
8168
|
getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null;
|
|
8115
8169
|
/**
|
|
8116
|
-
* The **`
|
|
8170
|
+
* The **`transferToImageBitmap()`** method of the OffscreenCanvas interface creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The image in the OffscreenCanvas is replaced with a new blank image for subsequent rendering.
|
|
8117
8171
|
*
|
|
8118
8172
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/transferToImageBitmap)
|
|
8119
8173
|
*/
|
|
@@ -8144,6 +8198,18 @@ declare var OffscreenCanvasRenderingContext2D: {
|
|
|
8144
8198
|
new(): OffscreenCanvasRenderingContext2D;
|
|
8145
8199
|
};
|
|
8146
8200
|
|
|
8201
|
+
interface Origin {
|
|
8202
|
+
readonly opaque: boolean;
|
|
8203
|
+
isSameOrigin(other: Origin): boolean;
|
|
8204
|
+
isSameSite(other: Origin): boolean;
|
|
8205
|
+
}
|
|
8206
|
+
|
|
8207
|
+
declare var Origin: {
|
|
8208
|
+
prototype: Origin;
|
|
8209
|
+
new(): Origin;
|
|
8210
|
+
from(value: any): Origin;
|
|
8211
|
+
};
|
|
8212
|
+
|
|
8147
8213
|
/**
|
|
8148
8214
|
* The **`Path2D`** interface of the Canvas 2D API is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired.
|
|
8149
8215
|
*
|
|
@@ -8425,6 +8491,12 @@ interface PerformanceResourceTiming extends PerformanceEntry {
|
|
|
8425
8491
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectStart)
|
|
8426
8492
|
*/
|
|
8427
8493
|
readonly connectStart: DOMHighResTimeStamp;
|
|
8494
|
+
/**
|
|
8495
|
+
* The **`contentType`** read-only property of the PerformanceResourceTiming interface is a string indicating the content type of the fetched resource, formatted as a MIME type and subtype separated by a forward slash.
|
|
8496
|
+
*
|
|
8497
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/contentType)
|
|
8498
|
+
*/
|
|
8499
|
+
readonly contentType: string;
|
|
8428
8500
|
/**
|
|
8429
8501
|
* The **`decodedBodySize`** read-only property returns the size (in octets) received from the fetch (HTTP or cache) of the message body after removing any applied content encoding (like gzip or Brotli). If the resource is retrieved from an application cache or local resources, it returns the size of the payload after removing any applied content encoding.
|
|
8430
8502
|
*
|
|
@@ -9070,7 +9142,7 @@ interface RTCEncodedVideoFrame {
|
|
|
9070
9142
|
*/
|
|
9071
9143
|
readonly timestamp: number;
|
|
9072
9144
|
/**
|
|
9073
|
-
* The **`type`** read-only property of the RTCEncodedVideoFrame interface indicates whether this frame is a key frame
|
|
9145
|
+
* The **`type`** read-only property of the RTCEncodedVideoFrame interface indicates whether this frame is a key frame or a delta frame.
|
|
9074
9146
|
*
|
|
9075
9147
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/type)
|
|
9076
9148
|
*/
|
|
@@ -9282,7 +9354,7 @@ interface ReadableStreamBYOBRequest {
|
|
|
9282
9354
|
*
|
|
9283
9355
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/view)
|
|
9284
9356
|
*/
|
|
9285
|
-
readonly view:
|
|
9357
|
+
readonly view: Uint8Array<ArrayBuffer> | null;
|
|
9286
9358
|
/**
|
|
9287
9359
|
* The **`respond()`** method of the ReadableStreamBYOBRequest interface is used to signal to the associated readable byte stream that the specified number of bytes were written into the ReadableStreamBYOBRequest.view.
|
|
9288
9360
|
*
|
|
@@ -9616,7 +9688,7 @@ interface SecurityPolicyViolationEvent extends Event {
|
|
|
9616
9688
|
*/
|
|
9617
9689
|
readonly blockedURI: string;
|
|
9618
9690
|
/**
|
|
9619
|
-
* The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the
|
|
9691
|
+
* The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the character position in the source file line of the document or worker script at which the Content Security Policy (CSP) violation occurred.
|
|
9620
9692
|
*
|
|
9621
9693
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/columnNumber)
|
|
9622
9694
|
*/
|
|
@@ -9688,6 +9760,107 @@ declare var SecurityPolicyViolationEvent: {
|
|
|
9688
9760
|
new(type: string, eventInitDict?: SecurityPolicyViolationEventInit): SecurityPolicyViolationEvent;
|
|
9689
9761
|
};
|
|
9690
9762
|
|
|
9763
|
+
/**
|
|
9764
|
+
* The **`Serial`** interface of the Web Serial API provides attributes and methods for finding and connecting to serial ports from a web page.
|
|
9765
|
+
* Available only in secure contexts.
|
|
9766
|
+
*
|
|
9767
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Serial)
|
|
9768
|
+
*/
|
|
9769
|
+
interface Serial extends EventTarget {
|
|
9770
|
+
/**
|
|
9771
|
+
* The **`getPorts()`** method of the Serial interface returns a Promise that resolves with an array of SerialPort objects representing serial ports connected to the host which the origin has permission to access.
|
|
9772
|
+
*
|
|
9773
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Serial/getPorts)
|
|
9774
|
+
*/
|
|
9775
|
+
getPorts(): Promise<SerialPort[]>;
|
|
9776
|
+
}
|
|
9777
|
+
|
|
9778
|
+
declare var Serial: {
|
|
9779
|
+
prototype: Serial;
|
|
9780
|
+
new(): Serial;
|
|
9781
|
+
};
|
|
9782
|
+
|
|
9783
|
+
interface SerialPortEventMap {
|
|
9784
|
+
"connect": Event;
|
|
9785
|
+
"disconnect": Event;
|
|
9786
|
+
}
|
|
9787
|
+
|
|
9788
|
+
/**
|
|
9789
|
+
* The **`SerialPort`** interface of the Web Serial API provides access to a serial port on the host device.
|
|
9790
|
+
* Available only in secure contexts.
|
|
9791
|
+
*
|
|
9792
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SerialPort)
|
|
9793
|
+
*/
|
|
9794
|
+
interface SerialPort extends EventTarget {
|
|
9795
|
+
/**
|
|
9796
|
+
* The **`connected`** read-only property of the SerialPort interface returns a boolean value that indicates whether the port is logically connected to the device.
|
|
9797
|
+
*
|
|
9798
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SerialPort/connected)
|
|
9799
|
+
*/
|
|
9800
|
+
readonly connected: boolean;
|
|
9801
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SerialPort/connect_event) */
|
|
9802
|
+
onconnect: ((this: SerialPort, ev: Event) => any) | null;
|
|
9803
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SerialPort/disconnect_event) */
|
|
9804
|
+
ondisconnect: ((this: SerialPort, ev: Event) => any) | null;
|
|
9805
|
+
/**
|
|
9806
|
+
* The **`readable`** read-only property of the SerialPort interface returns a ReadableStream for receiving data from the device connected to the port. Chunks read from this stream are instances of Uint8Array. This property is non-null as long as the port is open and has not encountered a fatal error.
|
|
9807
|
+
*
|
|
9808
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SerialPort/readable)
|
|
9809
|
+
*/
|
|
9810
|
+
readonly readable: ReadableStream | null;
|
|
9811
|
+
/**
|
|
9812
|
+
* The **`writable`** read-only property of the SerialPort interface returns a WritableStream for sending data to the device connected to the port. Chunks written to this stream must be instances of ArrayBuffer, TypedArray, or DataView. This property is non-null as long as the port is open and has not encountered a fatal error.
|
|
9813
|
+
*
|
|
9814
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SerialPort/writable)
|
|
9815
|
+
*/
|
|
9816
|
+
readonly writable: WritableStream | null;
|
|
9817
|
+
/**
|
|
9818
|
+
* The **`SerialPort.close()`** method of the SerialPort interface returns a Promise that resolves when the port closes.
|
|
9819
|
+
*
|
|
9820
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SerialPort/close)
|
|
9821
|
+
*/
|
|
9822
|
+
close(): Promise<void>;
|
|
9823
|
+
/**
|
|
9824
|
+
* The **`SerialPort.forget()`** method of the SerialPort interface returns a Promise that resolves when access to the serial port is revoked.
|
|
9825
|
+
*
|
|
9826
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SerialPort/forget)
|
|
9827
|
+
*/
|
|
9828
|
+
forget(): Promise<void>;
|
|
9829
|
+
/**
|
|
9830
|
+
* The **`getInfo()`** method of the SerialPort interface returns an object containing identifying information for the device available via the port.
|
|
9831
|
+
*
|
|
9832
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SerialPort/getInfo)
|
|
9833
|
+
*/
|
|
9834
|
+
getInfo(): SerialPortInfo;
|
|
9835
|
+
/**
|
|
9836
|
+
* The **`SerialPort.getSignals()`** method of the SerialPort interface returns a Promise that resolves with an object containing the current state of the port's control signals.
|
|
9837
|
+
*
|
|
9838
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SerialPort/getSignals)
|
|
9839
|
+
*/
|
|
9840
|
+
getSignals(): Promise<SerialInputSignals>;
|
|
9841
|
+
/**
|
|
9842
|
+
* The **`open()`** method of the SerialPort interface returns a Promise that resolves when the port is opened. By default the port is opened with 8 data bits, 1 stop bit and no parity checking. The baudRate parameter is required.
|
|
9843
|
+
*
|
|
9844
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SerialPort/open)
|
|
9845
|
+
*/
|
|
9846
|
+
open(options: SerialOptions): Promise<void>;
|
|
9847
|
+
/**
|
|
9848
|
+
* The **`setSignals()`** method of the SerialPort interface sets control signals on the port and returns a Promise that resolves when they are set.
|
|
9849
|
+
*
|
|
9850
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SerialPort/setSignals)
|
|
9851
|
+
*/
|
|
9852
|
+
setSignals(signals?: SerialOutputSignals): Promise<void>;
|
|
9853
|
+
addEventListener<K extends keyof SerialPortEventMap>(type: K, listener: (this: SerialPort, ev: SerialPortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
9854
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
9855
|
+
removeEventListener<K extends keyof SerialPortEventMap>(type: K, listener: (this: SerialPort, ev: SerialPortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
9856
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
9857
|
+
}
|
|
9858
|
+
|
|
9859
|
+
declare var SerialPort: {
|
|
9860
|
+
prototype: SerialPort;
|
|
9861
|
+
new(): SerialPort;
|
|
9862
|
+
};
|
|
9863
|
+
|
|
9691
9864
|
interface ServiceWorkerEventMap extends AbstractWorkerEventMap {
|
|
9692
9865
|
"statechange": Event;
|
|
9693
9866
|
}
|
|
@@ -11242,13 +11415,13 @@ interface WEBGL_draw_buffers {
|
|
|
11242
11415
|
*/
|
|
11243
11416
|
interface WEBGL_lose_context {
|
|
11244
11417
|
/**
|
|
11245
|
-
* The **`
|
|
11418
|
+
* The **`loseContext()`** method of the WEBGL_lose_context extension is part of the WebGL API and allows you to simulate losing the context of a WebGLRenderingContext.
|
|
11246
11419
|
*
|
|
11247
11420
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/loseContext)
|
|
11248
11421
|
*/
|
|
11249
11422
|
loseContext(): void;
|
|
11250
11423
|
/**
|
|
11251
|
-
* The **`
|
|
11424
|
+
* The **`restoreContext()`** method of the WEBGL_lose_context extension is part of the WebGL API and allows you to simulate restoring the context of a WebGLRenderingContext.
|
|
11252
11425
|
*
|
|
11253
11426
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/restoreContext)
|
|
11254
11427
|
*/
|
|
@@ -14134,6 +14307,12 @@ interface WorkerNavigator extends NavigatorBadge, NavigatorConcurrentHardware, N
|
|
|
14134
14307
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerNavigator/permissions)
|
|
14135
14308
|
*/
|
|
14136
14309
|
readonly permissions: Permissions;
|
|
14310
|
+
/**
|
|
14311
|
+
* The **`serial`** read-only property of the WorkerNavigator interface returns a Serial object which represents the entry point into the Web Serial API.
|
|
14312
|
+
*
|
|
14313
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerNavigator/serial)
|
|
14314
|
+
*/
|
|
14315
|
+
readonly serial: Serial;
|
|
14137
14316
|
/**
|
|
14138
14317
|
* The **`serviceWorker`** read-only property of the WorkerNavigator interface returns the ServiceWorkerContainer object for the associated document, which provides access to registration, removal, upgrade, and communication with the ServiceWorker.
|
|
14139
14318
|
* Available only in secure contexts.
|
|
@@ -14500,6 +14679,7 @@ declare namespace WebAssembly {
|
|
|
14500
14679
|
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Global)
|
|
14501
14680
|
*/
|
|
14502
14681
|
interface Global<T extends ValueType = ValueType> {
|
|
14682
|
+
/** The **`value`** property of the WebAssembly.Global object prototype returns the value contained inside the global variable. */
|
|
14503
14683
|
value: ValueTypeMap[T];
|
|
14504
14684
|
valueOf(): ValueTypeMap[T];
|
|
14505
14685
|
}
|
|
@@ -15087,6 +15267,7 @@ type AlgorithmIdentifier = Algorithm | string;
|
|
|
15087
15267
|
type AllowSharedBufferSource = ArrayBufferLike | ArrayBufferView<ArrayBufferLike>;
|
|
15088
15268
|
type BigInteger = Uint8Array<ArrayBuffer>;
|
|
15089
15269
|
type BlobPart = BufferSource | Blob | string;
|
|
15270
|
+
type BluetoothServiceUUID = string | number;
|
|
15090
15271
|
type BodyInit = ReadableStream | XMLHttpRequestBodyInit;
|
|
15091
15272
|
type BufferSource = ArrayBufferView<ArrayBuffer> | ArrayBuffer;
|
|
15092
15273
|
type CSSKeywordish = string | CSSKeywordValue;
|
|
@@ -15191,6 +15372,7 @@ type EncodedAudioChunkType = "delta" | "key";
|
|
|
15191
15372
|
type EncodedVideoChunkType = "delta" | "key";
|
|
15192
15373
|
type EndingType = "native" | "transparent";
|
|
15193
15374
|
type FileSystemHandleKind = "directory" | "file";
|
|
15375
|
+
type FlowControlType = "hardware" | "none";
|
|
15194
15376
|
type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
|
|
15195
15377
|
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
|
15196
15378
|
type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
@@ -15251,6 +15433,7 @@ type NotificationDirection = "auto" | "ltr" | "rtl";
|
|
|
15251
15433
|
type NotificationPermission = "default" | "denied" | "granted";
|
|
15252
15434
|
type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";
|
|
15253
15435
|
type OpusBitstreamFormat = "ogg" | "opus";
|
|
15436
|
+
type ParityType = "even" | "none" | "odd";
|
|
15254
15437
|
type PermissionName = "camera" | "geolocation" | "microphone" | "midi" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "storage-access";
|
|
15255
15438
|
type PermissionState = "denied" | "granted" | "prompt";
|
|
15256
15439
|
type PredefinedColorSpace = "display-p3" | "srgb";
|