typescript 5.1.6 → 5.2.2
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/lib/lib.decorators.d.ts +17 -0
- package/lib/lib.dom.d.ts +313 -90
- package/lib/lib.es2015.collection.d.ts +9 -9
- package/lib/lib.es2015.core.d.ts +2 -2
- package/lib/lib.es2015.iterable.d.ts +4 -4
- package/lib/lib.es2015.symbol.wellknown.d.ts +2 -2
- package/lib/lib.es2017.d.ts +1 -0
- package/lib/lib.es2017.date.d.ts +31 -0
- package/lib/lib.es2020.bigint.d.ts +4 -4
- package/lib/lib.es2021.weakref.d.ts +19 -16
- package/lib/lib.es2023.array.d.ts +618 -36
- package/lib/lib.es2023.collection.d.ts +21 -0
- package/lib/lib.es2023.d.ts +1 -0
- package/lib/lib.es5.d.ts +27 -18
- package/lib/lib.esnext.d.ts +2 -0
- package/lib/lib.esnext.decorators.d.ts +28 -0
- package/lib/lib.esnext.disposable.d.ts +185 -0
- package/lib/lib.webworker.d.ts +172 -33
- package/lib/tsc.js +8311 -6557
- package/lib/tsserver.js +11796 -9281
- package/lib/tsserverlibrary.d.ts +287 -249
- package/lib/tsserverlibrary.js +11801 -9288
- package/lib/typescript.d.ts +274 -248
- package/lib/typescript.js +11678 -9231
- package/lib/typingsInstaller.js +1852 -1645
- package/package.json +7 -7
package/lib/lib.webworker.d.ts
CHANGED
|
@@ -454,7 +454,7 @@ interface NotificationOptions {
|
|
|
454
454
|
lang?: string;
|
|
455
455
|
renotify?: boolean;
|
|
456
456
|
requireInteraction?: boolean;
|
|
457
|
-
silent?: boolean;
|
|
457
|
+
silent?: boolean | null;
|
|
458
458
|
tag?: string;
|
|
459
459
|
timestamp?: EpochTimeStamp;
|
|
460
460
|
vibrate?: VibratePattern;
|
|
@@ -539,7 +539,6 @@ interface RTCEncodedAudioFrameMetadata {
|
|
|
539
539
|
}
|
|
540
540
|
|
|
541
541
|
interface RTCEncodedVideoFrameMetadata {
|
|
542
|
-
contributingSources?: number[];
|
|
543
542
|
dependencies?: number[];
|
|
544
543
|
frameId?: number;
|
|
545
544
|
height?: number;
|
|
@@ -709,8 +708,8 @@ interface TextDecoderOptions {
|
|
|
709
708
|
}
|
|
710
709
|
|
|
711
710
|
interface TextEncoderEncodeIntoResult {
|
|
712
|
-
read
|
|
713
|
-
written
|
|
711
|
+
read: number;
|
|
712
|
+
written: number;
|
|
714
713
|
}
|
|
715
714
|
|
|
716
715
|
interface Transformer<I = any, O = any> {
|
|
@@ -866,6 +865,32 @@ interface WebGLContextEventInit extends EventInit {
|
|
|
866
865
|
statusMessage?: string;
|
|
867
866
|
}
|
|
868
867
|
|
|
868
|
+
interface WebTransportCloseInfo {
|
|
869
|
+
closeCode?: number;
|
|
870
|
+
reason?: string;
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
interface WebTransportErrorOptions {
|
|
874
|
+
source?: WebTransportErrorSource;
|
|
875
|
+
streamErrorCode?: number | null;
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
interface WebTransportHash {
|
|
879
|
+
algorithm?: string;
|
|
880
|
+
value?: BufferSource;
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
interface WebTransportOptions {
|
|
884
|
+
allowPooling?: boolean;
|
|
885
|
+
congestionControl?: WebTransportCongestionControl;
|
|
886
|
+
requireUnreliable?: boolean;
|
|
887
|
+
serverCertificateHashes?: WebTransportHash[];
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
interface WebTransportSendStreamOptions {
|
|
891
|
+
sendOrder?: number | null;
|
|
892
|
+
}
|
|
893
|
+
|
|
869
894
|
interface WorkerOptions {
|
|
870
895
|
credentials?: RequestCredentials;
|
|
871
896
|
name?: string;
|
|
@@ -950,9 +975,9 @@ interface AbortSignal extends EventTarget {
|
|
|
950
975
|
declare var AbortSignal: {
|
|
951
976
|
prototype: AbortSignal;
|
|
952
977
|
new(): AbortSignal;
|
|
953
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/
|
|
978
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_static) */
|
|
954
979
|
abort(reason?: any): AbortSignal;
|
|
955
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/
|
|
980
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/timeout_static) */
|
|
956
981
|
timeout(milliseconds: number): AbortSignal;
|
|
957
982
|
};
|
|
958
983
|
|
|
@@ -1633,6 +1658,8 @@ interface CanvasShadowStyles {
|
|
|
1633
1658
|
}
|
|
1634
1659
|
|
|
1635
1660
|
interface CanvasState {
|
|
1661
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/reset) */
|
|
1662
|
+
reset(): void;
|
|
1636
1663
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/restore) */
|
|
1637
1664
|
restore(): void;
|
|
1638
1665
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/save) */
|
|
@@ -2083,7 +2110,7 @@ interface DOMPoint extends DOMPointReadOnly {
|
|
|
2083
2110
|
declare var DOMPoint: {
|
|
2084
2111
|
prototype: DOMPoint;
|
|
2085
2112
|
new(x?: number, y?: number, z?: number, w?: number): DOMPoint;
|
|
2086
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/
|
|
2113
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/fromPoint_static) */
|
|
2087
2114
|
fromPoint(other?: DOMPointInit): DOMPoint;
|
|
2088
2115
|
};
|
|
2089
2116
|
|
|
@@ -2106,7 +2133,7 @@ interface DOMPointReadOnly {
|
|
|
2106
2133
|
declare var DOMPointReadOnly: {
|
|
2107
2134
|
prototype: DOMPointReadOnly;
|
|
2108
2135
|
new(x?: number, y?: number, z?: number, w?: number): DOMPointReadOnly;
|
|
2109
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/
|
|
2136
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/fromPoint_static) */
|
|
2110
2137
|
fromPoint(other?: DOMPointInit): DOMPointReadOnly;
|
|
2111
2138
|
};
|
|
2112
2139
|
|
|
@@ -2170,7 +2197,7 @@ interface DOMRectReadOnly {
|
|
|
2170
2197
|
declare var DOMRectReadOnly: {
|
|
2171
2198
|
prototype: DOMRectReadOnly;
|
|
2172
2199
|
new(x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly;
|
|
2173
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/
|
|
2200
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/fromRect_static) */
|
|
2174
2201
|
fromRect(other?: DOMRectInit): DOMRectReadOnly;
|
|
2175
2202
|
};
|
|
2176
2203
|
|
|
@@ -2878,11 +2905,11 @@ interface FileSystemSyncAccessHandle {
|
|
|
2878
2905
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/getSize) */
|
|
2879
2906
|
getSize(): number;
|
|
2880
2907
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/read) */
|
|
2881
|
-
read(buffer:
|
|
2908
|
+
read(buffer: AllowSharedBufferSource, options?: FileSystemReadWriteOptions): number;
|
|
2882
2909
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/truncate) */
|
|
2883
2910
|
truncate(newSize: number): void;
|
|
2884
2911
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/write) */
|
|
2885
|
-
write(buffer:
|
|
2912
|
+
write(buffer: AllowSharedBufferSource, options?: FileSystemReadWriteOptions): number;
|
|
2886
2913
|
}
|
|
2887
2914
|
|
|
2888
2915
|
declare var FileSystemSyncAccessHandle: {
|
|
@@ -3045,6 +3072,8 @@ interface Headers {
|
|
|
3045
3072
|
delete(name: string): void;
|
|
3046
3073
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/get) */
|
|
3047
3074
|
get(name: string): string | null;
|
|
3075
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/getSetCookie) */
|
|
3076
|
+
getSetCookie(): string[];
|
|
3048
3077
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/has) */
|
|
3049
3078
|
has(name: string): boolean;
|
|
3050
3079
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/set) */
|
|
@@ -3393,25 +3422,25 @@ declare var IDBKeyRange: {
|
|
|
3393
3422
|
/**
|
|
3394
3423
|
* Returns a new IDBKeyRange spanning from lower to upper. If lowerOpen is true, lower is not included in the range. If upperOpen is true, upper is not included in the range.
|
|
3395
3424
|
*
|
|
3396
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/
|
|
3425
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/bound_static)
|
|
3397
3426
|
*/
|
|
3398
3427
|
bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange;
|
|
3399
3428
|
/**
|
|
3400
3429
|
* Returns a new IDBKeyRange starting at key with no upper bound. If open is true, key is not included in the range.
|
|
3401
3430
|
*
|
|
3402
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/
|
|
3431
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lowerBound_static)
|
|
3403
3432
|
*/
|
|
3404
3433
|
lowerBound(lower: any, open?: boolean): IDBKeyRange;
|
|
3405
3434
|
/**
|
|
3406
3435
|
* Returns a new IDBKeyRange spanning only key.
|
|
3407
3436
|
*
|
|
3408
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/
|
|
3437
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/only_static)
|
|
3409
3438
|
*/
|
|
3410
3439
|
only(value: any): IDBKeyRange;
|
|
3411
3440
|
/**
|
|
3412
3441
|
* Returns a new IDBKeyRange with no lower bound and ending at key. If open is true, key is not included in the range.
|
|
3413
3442
|
*
|
|
3414
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/
|
|
3443
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upperBound_static)
|
|
3415
3444
|
*/
|
|
3416
3445
|
upperBound(upper: any, open?: boolean): IDBKeyRange;
|
|
3417
3446
|
};
|
|
@@ -4111,6 +4140,8 @@ interface Notification extends EventTarget {
|
|
|
4111
4140
|
onerror: ((this: Notification, ev: Event) => any) | null;
|
|
4112
4141
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/show_event) */
|
|
4113
4142
|
onshow: ((this: Notification, ev: Event) => any) | null;
|
|
4143
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/silent) */
|
|
4144
|
+
readonly silent: boolean | null;
|
|
4114
4145
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/tag) */
|
|
4115
4146
|
readonly tag: string;
|
|
4116
4147
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/title) */
|
|
@@ -4126,7 +4157,7 @@ interface Notification extends EventTarget {
|
|
|
4126
4157
|
declare var Notification: {
|
|
4127
4158
|
prototype: Notification;
|
|
4128
4159
|
new(title: string, options?: NotificationOptions): Notification;
|
|
4129
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/
|
|
4160
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/permission_static) */
|
|
4130
4161
|
readonly permission: NotificationPermission;
|
|
4131
4162
|
};
|
|
4132
4163
|
|
|
@@ -4450,7 +4481,7 @@ interface PerformanceObserver {
|
|
|
4450
4481
|
declare var PerformanceObserver: {
|
|
4451
4482
|
prototype: PerformanceObserver;
|
|
4452
4483
|
new(callback: PerformanceObserverCallback): PerformanceObserver;
|
|
4453
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/
|
|
4484
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/supportedEntryTypes_static) */
|
|
4454
4485
|
readonly supportedEntryTypes: ReadonlyArray<string>;
|
|
4455
4486
|
};
|
|
4456
4487
|
|
|
@@ -4638,7 +4669,7 @@ interface PushManager {
|
|
|
4638
4669
|
declare var PushManager: {
|
|
4639
4670
|
prototype: PushManager;
|
|
4640
4671
|
new(): PushManager;
|
|
4641
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/
|
|
4672
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/supportedContentEncodings_static) */
|
|
4642
4673
|
readonly supportedContentEncodings: ReadonlyArray<string>;
|
|
4643
4674
|
};
|
|
4644
4675
|
|
|
@@ -5004,9 +5035,11 @@ interface Response extends Body {
|
|
|
5004
5035
|
declare var Response: {
|
|
5005
5036
|
prototype: Response;
|
|
5006
5037
|
new(body?: BodyInit | null, init?: ResponseInit): Response;
|
|
5007
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/
|
|
5038
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/error_static) */
|
|
5008
5039
|
error(): Response;
|
|
5009
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/
|
|
5040
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/json_static) */
|
|
5041
|
+
json(data: any, init?: ResponseInit): Response;
|
|
5042
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirect_static) */
|
|
5010
5043
|
redirect(url: string | URL, status?: number): Response;
|
|
5011
5044
|
};
|
|
5012
5045
|
|
|
@@ -5097,7 +5130,6 @@ interface ServiceWorkerContainer extends EventTarget {
|
|
|
5097
5130
|
oncontrollerchange: ((this: ServiceWorkerContainer, ev: Event) => any) | null;
|
|
5098
5131
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/message_event) */
|
|
5099
5132
|
onmessage: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
|
|
5100
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/messageerror_event) */
|
|
5101
5133
|
onmessageerror: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
|
|
5102
5134
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/ready) */
|
|
5103
5135
|
readonly ready: Promise<ServiceWorkerRegistration>;
|
|
@@ -5351,7 +5383,7 @@ interface TextDecoder extends TextDecoderCommon {
|
|
|
5351
5383
|
*
|
|
5352
5384
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/decode)
|
|
5353
5385
|
*/
|
|
5354
|
-
decode(input?:
|
|
5386
|
+
decode(input?: AllowSharedBufferSource, options?: TextDecodeOptions): string;
|
|
5355
5387
|
}
|
|
5356
5388
|
|
|
5357
5389
|
declare var TextDecoder: {
|
|
@@ -5559,14 +5591,18 @@ interface URL {
|
|
|
5559
5591
|
declare var URL: {
|
|
5560
5592
|
prototype: URL;
|
|
5561
5593
|
new(url: string | URL, base?: string | URL): URL;
|
|
5562
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/
|
|
5594
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/canParse_static) */
|
|
5595
|
+
canParse(url: string | URL, base?: string): boolean;
|
|
5596
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/createObjectURL_static) */
|
|
5563
5597
|
createObjectURL(obj: Blob): string;
|
|
5564
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/
|
|
5598
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/revokeObjectURL_static) */
|
|
5565
5599
|
revokeObjectURL(url: string): void;
|
|
5566
5600
|
};
|
|
5567
5601
|
|
|
5568
5602
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams) */
|
|
5569
5603
|
interface URLSearchParams {
|
|
5604
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/size) */
|
|
5605
|
+
readonly size: number;
|
|
5570
5606
|
/**
|
|
5571
5607
|
* Appends a specified key/value pair as a new search parameter.
|
|
5572
5608
|
*
|
|
@@ -5578,7 +5614,7 @@ interface URLSearchParams {
|
|
|
5578
5614
|
*
|
|
5579
5615
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/delete)
|
|
5580
5616
|
*/
|
|
5581
|
-
delete(name: string): void;
|
|
5617
|
+
delete(name: string, value?: string): void;
|
|
5582
5618
|
/**
|
|
5583
5619
|
* Returns the first value associated to the given search parameter.
|
|
5584
5620
|
*
|
|
@@ -5596,7 +5632,7 @@ interface URLSearchParams {
|
|
|
5596
5632
|
*
|
|
5597
5633
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/has)
|
|
5598
5634
|
*/
|
|
5599
|
-
has(name: string): boolean;
|
|
5635
|
+
has(name: string, value?: string): boolean;
|
|
5600
5636
|
/**
|
|
5601
5637
|
* Sets the value associated to a given search parameter to the given value. If there were several values, delete the others.
|
|
5602
5638
|
*
|
|
@@ -8197,6 +8233,96 @@ declare var WebSocket: {
|
|
|
8197
8233
|
readonly CLOSED: 3;
|
|
8198
8234
|
};
|
|
8199
8235
|
|
|
8236
|
+
/**
|
|
8237
|
+
* Available only in secure contexts.
|
|
8238
|
+
*
|
|
8239
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport)
|
|
8240
|
+
*/
|
|
8241
|
+
interface WebTransport {
|
|
8242
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/closed) */
|
|
8243
|
+
readonly closed: Promise<WebTransportCloseInfo>;
|
|
8244
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/datagrams) */
|
|
8245
|
+
readonly datagrams: WebTransportDatagramDuplexStream;
|
|
8246
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingBidirectionalStreams) */
|
|
8247
|
+
readonly incomingBidirectionalStreams: ReadableStream;
|
|
8248
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */
|
|
8249
|
+
readonly incomingUnidirectionalStreams: ReadableStream;
|
|
8250
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/ready) */
|
|
8251
|
+
readonly ready: Promise<undefined>;
|
|
8252
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/close) */
|
|
8253
|
+
close(closeInfo?: WebTransportCloseInfo): void;
|
|
8254
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createBidirectionalStream) */
|
|
8255
|
+
createBidirectionalStream(options?: WebTransportSendStreamOptions): Promise<WebTransportBidirectionalStream>;
|
|
8256
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createUnidirectionalStream) */
|
|
8257
|
+
createUnidirectionalStream(options?: WebTransportSendStreamOptions): Promise<WritableStream>;
|
|
8258
|
+
}
|
|
8259
|
+
|
|
8260
|
+
declare var WebTransport: {
|
|
8261
|
+
prototype: WebTransport;
|
|
8262
|
+
new(url: string | URL, options?: WebTransportOptions): WebTransport;
|
|
8263
|
+
};
|
|
8264
|
+
|
|
8265
|
+
/**
|
|
8266
|
+
* Available only in secure contexts.
|
|
8267
|
+
*
|
|
8268
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream)
|
|
8269
|
+
*/
|
|
8270
|
+
interface WebTransportBidirectionalStream {
|
|
8271
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream/readable) */
|
|
8272
|
+
readonly readable: ReadableStream;
|
|
8273
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream/writable) */
|
|
8274
|
+
readonly writable: WritableStream;
|
|
8275
|
+
}
|
|
8276
|
+
|
|
8277
|
+
declare var WebTransportBidirectionalStream: {
|
|
8278
|
+
prototype: WebTransportBidirectionalStream;
|
|
8279
|
+
new(): WebTransportBidirectionalStream;
|
|
8280
|
+
};
|
|
8281
|
+
|
|
8282
|
+
/**
|
|
8283
|
+
* Available only in secure contexts.
|
|
8284
|
+
*
|
|
8285
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream)
|
|
8286
|
+
*/
|
|
8287
|
+
interface WebTransportDatagramDuplexStream {
|
|
8288
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingHighWaterMark) */
|
|
8289
|
+
incomingHighWaterMark: number;
|
|
8290
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxAge) */
|
|
8291
|
+
incomingMaxAge: number;
|
|
8292
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/maxDatagramSize) */
|
|
8293
|
+
readonly maxDatagramSize: number;
|
|
8294
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingHighWaterMark) */
|
|
8295
|
+
outgoingHighWaterMark: number;
|
|
8296
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxAge) */
|
|
8297
|
+
outgoingMaxAge: number;
|
|
8298
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/readable) */
|
|
8299
|
+
readonly readable: ReadableStream;
|
|
8300
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable) */
|
|
8301
|
+
readonly writable: WritableStream;
|
|
8302
|
+
}
|
|
8303
|
+
|
|
8304
|
+
declare var WebTransportDatagramDuplexStream: {
|
|
8305
|
+
prototype: WebTransportDatagramDuplexStream;
|
|
8306
|
+
new(): WebTransportDatagramDuplexStream;
|
|
8307
|
+
};
|
|
8308
|
+
|
|
8309
|
+
/**
|
|
8310
|
+
* Available only in secure contexts.
|
|
8311
|
+
*
|
|
8312
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError)
|
|
8313
|
+
*/
|
|
8314
|
+
interface WebTransportError extends DOMException {
|
|
8315
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError/source) */
|
|
8316
|
+
readonly source: WebTransportErrorSource;
|
|
8317
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError/streamErrorCode) */
|
|
8318
|
+
readonly streamErrorCode: number | null;
|
|
8319
|
+
}
|
|
8320
|
+
|
|
8321
|
+
declare var WebTransportError: {
|
|
8322
|
+
prototype: WebTransportError;
|
|
8323
|
+
new(message?: string, options?: WebTransportErrorOptions): WebTransportError;
|
|
8324
|
+
};
|
|
8325
|
+
|
|
8200
8326
|
/**
|
|
8201
8327
|
* This ServiceWorker API interface represents the scope of a service worker client that is a document in a browser context, controlled by an active worker. The service worker client independently selects and uses a service worker for its own loading and sub-resources.
|
|
8202
8328
|
*
|
|
@@ -8718,16 +8844,16 @@ declare namespace WebAssembly {
|
|
|
8718
8844
|
};
|
|
8719
8845
|
|
|
8720
8846
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Global) */
|
|
8721
|
-
interface Global {
|
|
8847
|
+
interface Global<T extends ValueType = ValueType> {
|
|
8722
8848
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Global/value) */
|
|
8723
|
-
value:
|
|
8849
|
+
value: ValueTypeMap[T];
|
|
8724
8850
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Global/valueOf) */
|
|
8725
|
-
valueOf():
|
|
8851
|
+
valueOf(): ValueTypeMap[T];
|
|
8726
8852
|
}
|
|
8727
8853
|
|
|
8728
8854
|
var Global: {
|
|
8729
8855
|
prototype: Global;
|
|
8730
|
-
new(descriptor: GlobalDescriptor
|
|
8856
|
+
new<T extends ValueType = ValueType>(descriptor: GlobalDescriptor<T>, v?: ValueTypeMap[T]): Global<T>;
|
|
8731
8857
|
};
|
|
8732
8858
|
|
|
8733
8859
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Instance) */
|
|
@@ -8804,9 +8930,9 @@ declare namespace WebAssembly {
|
|
|
8804
8930
|
new(descriptor: TableDescriptor, value?: any): Table;
|
|
8805
8931
|
};
|
|
8806
8932
|
|
|
8807
|
-
interface GlobalDescriptor {
|
|
8933
|
+
interface GlobalDescriptor<T extends ValueType = ValueType> {
|
|
8808
8934
|
mutable?: boolean;
|
|
8809
|
-
value:
|
|
8935
|
+
value: T;
|
|
8810
8936
|
}
|
|
8811
8937
|
|
|
8812
8938
|
interface MemoryDescriptor {
|
|
@@ -8832,6 +8958,16 @@ declare namespace WebAssembly {
|
|
|
8832
8958
|
maximum?: number;
|
|
8833
8959
|
}
|
|
8834
8960
|
|
|
8961
|
+
interface ValueTypeMap {
|
|
8962
|
+
anyfunc: Function;
|
|
8963
|
+
externref: any;
|
|
8964
|
+
f32: number;
|
|
8965
|
+
f64: number;
|
|
8966
|
+
i32: number;
|
|
8967
|
+
i64: bigint;
|
|
8968
|
+
v128: never;
|
|
8969
|
+
}
|
|
8970
|
+
|
|
8835
8971
|
interface WebAssemblyInstantiatedSource {
|
|
8836
8972
|
instance: Instance;
|
|
8837
8973
|
module: Module;
|
|
@@ -8839,12 +8975,12 @@ declare namespace WebAssembly {
|
|
|
8839
8975
|
|
|
8840
8976
|
type ImportExportKind = "function" | "global" | "memory" | "table";
|
|
8841
8977
|
type TableKind = "anyfunc" | "externref";
|
|
8842
|
-
type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64" | "v128";
|
|
8843
8978
|
type ExportValue = Function | Global | Memory | Table;
|
|
8844
8979
|
type Exports = Record<string, ExportValue>;
|
|
8845
8980
|
type ImportValue = ExportValue | number;
|
|
8846
8981
|
type Imports = Record<string, ModuleImports>;
|
|
8847
8982
|
type ModuleImports = Record<string, ImportValue>;
|
|
8983
|
+
type ValueType = keyof ValueTypeMap;
|
|
8848
8984
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/compile) */
|
|
8849
8985
|
function compile(bytes: BufferSource): Promise<Module>;
|
|
8850
8986
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/compileStreaming) */
|
|
@@ -9057,6 +9193,7 @@ declare function addEventListener(type: string, listener: EventListenerOrEventLi
|
|
|
9057
9193
|
declare function removeEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
9058
9194
|
declare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
9059
9195
|
type AlgorithmIdentifier = Algorithm | string;
|
|
9196
|
+
type AllowSharedBufferSource = ArrayBuffer | ArrayBufferView;
|
|
9060
9197
|
type BigInteger = Uint8Array;
|
|
9061
9198
|
type BinaryData = ArrayBuffer | ArrayBufferView;
|
|
9062
9199
|
type BlobPart = BufferSource | Blob | string;
|
|
@@ -9180,6 +9317,8 @@ type VideoMatrixCoefficients = "bt470bg" | "bt709" | "rgb" | "smpte170m";
|
|
|
9180
9317
|
type VideoPixelFormat = "BGRA" | "BGRX" | "I420" | "I420A" | "I422" | "I444" | "NV12" | "RGBA" | "RGBX";
|
|
9181
9318
|
type VideoTransferCharacteristics = "bt709" | "iec61966-2-1" | "smpte170m";
|
|
9182
9319
|
type WebGLPowerPreference = "default" | "high-performance" | "low-power";
|
|
9320
|
+
type WebTransportCongestionControl = "default" | "low-latency" | "throughput";
|
|
9321
|
+
type WebTransportErrorSource = "session" | "stream";
|
|
9183
9322
|
type WorkerType = "classic" | "module";
|
|
9184
9323
|
type WriteCommandType = "seek" | "truncate" | "write";
|
|
9185
9324
|
type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
|