@stencil/core 2.17.4 → 2.18.0
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/cli/index.cjs +26 -16
- package/cli/index.js +26 -16
- package/cli/package.json +1 -1
- package/compiler/lib.dom.d.ts +620 -89
- package/compiler/lib.dom.iterable.d.ts +27 -3
- package/compiler/lib.es2015.core.d.ts +3 -3
- package/compiler/lib.es2015.iterable.d.ts +2 -1
- package/compiler/lib.es2015.reflect.d.ts +1 -1
- package/compiler/lib.es2020.bigint.d.ts +7 -5
- package/compiler/lib.es2020.d.ts +2 -0
- package/compiler/lib.es2020.date.d.ts +44 -0
- package/compiler/lib.es2020.intl.d.ts +51 -11
- package/compiler/lib.es2020.number.d.ts +30 -0
- package/compiler/lib.es2021.intl.d.ts +106 -4
- package/compiler/lib.es2022.array.d.ts +123 -0
- package/compiler/lib.es2022.d.ts +26 -0
- package/compiler/lib.es2022.error.d.ts +75 -0
- package/compiler/lib.es2022.full.d.ts +25 -0
- package/compiler/lib.es2022.intl.d.ts +111 -0
- package/compiler/lib.es2022.object.d.ts +28 -0
- package/compiler/lib.es2022.string.d.ts +27 -0
- package/compiler/lib.es5.d.ts +25 -19
- package/compiler/lib.esnext.d.ts +1 -1
- package/compiler/lib.esnext.intl.d.ts +4 -1
- package/compiler/lib.webworker.d.ts +236 -40
- package/compiler/lib.webworker.iterable.d.ts +10 -3
- package/compiler/package.json +1 -1
- package/compiler/stencil.js +607 -212
- package/compiler/stencil.min.js +2 -2
- package/compiler/sys/in-memory-fs.d.ts +218 -0
- package/dependencies.json +10 -1
- package/dev-server/client/index.js +1 -1
- package/dev-server/client/package.json +1 -1
- package/dev-server/connector.html +2 -2
- package/dev-server/index.js +1 -1
- package/dev-server/package.json +1 -1
- package/dev-server/server-process.js +13 -13
- package/internal/app-data/package.json +1 -1
- package/internal/client/css-shim.js +1 -1
- package/internal/client/dom.js +1 -1
- package/internal/client/index.js +337 -157
- package/internal/client/package.json +1 -1
- package/internal/client/patch-browser.js +1 -1
- package/internal/client/patch-esm.js +1 -1
- package/internal/client/shadow-css.js +1 -1
- package/internal/hydrate/package.json +1 -1
- package/internal/hydrate/runner.d.ts +1 -1
- package/internal/package.json +1 -1
- package/internal/stencil-private.d.ts +2 -106
- package/internal/stencil-public-compiler.d.ts +42 -8
- package/internal/testing/package.json +1 -1
- package/mock-doc/index.cjs +77 -61
- package/mock-doc/index.d.ts +13 -12
- package/mock-doc/index.js +77 -61
- package/mock-doc/package.json +1 -1
- package/package.json +5 -7
- package/screenshot/index.js +10 -10
- package/screenshot/package.json +1 -1
- package/sys/node/index.js +1 -1
- package/sys/node/package.json +1 -1
- package/sys/node/worker.js +1 -1
- package/testing/index.js +84 -98
- package/testing/package.json +1 -1
- package/testing/testing-utils.d.ts +5 -4
|
@@ -90,8 +90,8 @@ interface CloseEventInit extends EventInit {
|
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
interface CryptoKeyPair {
|
|
93
|
-
privateKey
|
|
94
|
-
publicKey
|
|
93
|
+
privateKey: CryptoKey;
|
|
94
|
+
publicKey: CryptoKey;
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
interface CustomEventInit<T = any> extends EventInit {
|
|
@@ -210,6 +210,18 @@ interface FilePropertyBag extends BlobPropertyBag {
|
|
|
210
210
|
lastModified?: number;
|
|
211
211
|
}
|
|
212
212
|
|
|
213
|
+
interface FileSystemGetDirectoryOptions {
|
|
214
|
+
create?: boolean;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
interface FileSystemGetFileOptions {
|
|
218
|
+
create?: boolean;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
interface FileSystemRemoveOptions {
|
|
222
|
+
recursive?: boolean;
|
|
223
|
+
}
|
|
224
|
+
|
|
213
225
|
interface FontFaceDescriptors {
|
|
214
226
|
display?: string;
|
|
215
227
|
featureSettings?: string;
|
|
@@ -310,6 +322,24 @@ interface KeyAlgorithm {
|
|
|
310
322
|
name: string;
|
|
311
323
|
}
|
|
312
324
|
|
|
325
|
+
interface LockInfo {
|
|
326
|
+
clientId?: string;
|
|
327
|
+
mode?: LockMode;
|
|
328
|
+
name?: string;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
interface LockManagerSnapshot {
|
|
332
|
+
held?: LockInfo[];
|
|
333
|
+
pending?: LockInfo[];
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
interface LockOptions {
|
|
337
|
+
ifAvailable?: boolean;
|
|
338
|
+
mode?: LockMode;
|
|
339
|
+
signal?: AbortSignal;
|
|
340
|
+
steal?: boolean;
|
|
341
|
+
}
|
|
342
|
+
|
|
313
343
|
interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {
|
|
314
344
|
configuration?: MediaDecodingConfiguration;
|
|
315
345
|
}
|
|
@@ -349,6 +379,11 @@ interface MultiCacheQueryOptions extends CacheQueryOptions {
|
|
|
349
379
|
cacheName?: string;
|
|
350
380
|
}
|
|
351
381
|
|
|
382
|
+
interface NavigationPreloadState {
|
|
383
|
+
enabled?: boolean;
|
|
384
|
+
headerValue?: string;
|
|
385
|
+
}
|
|
386
|
+
|
|
352
387
|
interface NotificationAction {
|
|
353
388
|
action: string;
|
|
354
389
|
icon?: string;
|
|
@@ -373,7 +408,7 @@ interface NotificationOptions {
|
|
|
373
408
|
requireInteraction?: boolean;
|
|
374
409
|
silent?: boolean;
|
|
375
410
|
tag?: string;
|
|
376
|
-
timestamp?:
|
|
411
|
+
timestamp?: EpochTimeStamp;
|
|
377
412
|
vibrate?: VibratePattern;
|
|
378
413
|
}
|
|
379
414
|
|
|
@@ -422,7 +457,7 @@ interface PushEventInit extends ExtendableEventInit {
|
|
|
422
457
|
|
|
423
458
|
interface PushSubscriptionJSON {
|
|
424
459
|
endpoint?: string;
|
|
425
|
-
expirationTime?:
|
|
460
|
+
expirationTime?: EpochTimeStamp | null;
|
|
426
461
|
keys?: Record<string, string>;
|
|
427
462
|
}
|
|
428
463
|
|
|
@@ -445,6 +480,22 @@ interface QueuingStrategyInit {
|
|
|
445
480
|
highWaterMark: number;
|
|
446
481
|
}
|
|
447
482
|
|
|
483
|
+
interface RTCEncodedAudioFrameMetadata {
|
|
484
|
+
contributingSources?: number[];
|
|
485
|
+
synchronizationSource?: number;
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
interface RTCEncodedVideoFrameMetadata {
|
|
489
|
+
contributingSources?: number[];
|
|
490
|
+
dependencies?: number[];
|
|
491
|
+
frameId?: number;
|
|
492
|
+
height?: number;
|
|
493
|
+
spatialIndex?: number;
|
|
494
|
+
synchronizationSource?: number;
|
|
495
|
+
temporalIndex?: number;
|
|
496
|
+
width?: number;
|
|
497
|
+
}
|
|
498
|
+
|
|
448
499
|
interface ReadableStreamDefaultReadDoneResult {
|
|
449
500
|
done: true;
|
|
450
501
|
value?: undefined;
|
|
@@ -578,7 +629,7 @@ interface StreamPipeOptions {
|
|
|
578
629
|
}
|
|
579
630
|
|
|
580
631
|
interface StructuredSerializeOptions {
|
|
581
|
-
transfer?:
|
|
632
|
+
transfer?: Transferable[];
|
|
582
633
|
}
|
|
583
634
|
|
|
584
635
|
interface TextDecodeOptions {
|
|
@@ -618,6 +669,13 @@ interface UnderlyingSource<R = any> {
|
|
|
618
669
|
type?: undefined;
|
|
619
670
|
}
|
|
620
671
|
|
|
672
|
+
interface VideoColorSpaceInit {
|
|
673
|
+
fullRange?: boolean;
|
|
674
|
+
matrix?: VideoMatrixCoefficients;
|
|
675
|
+
primaries?: VideoColorPrimaries;
|
|
676
|
+
transfer?: VideoTransferCharacteristics;
|
|
677
|
+
}
|
|
678
|
+
|
|
621
679
|
interface VideoConfiguration {
|
|
622
680
|
bitrate: number;
|
|
623
681
|
colorGamut?: ColorGamut;
|
|
@@ -665,7 +723,7 @@ interface AbortController {
|
|
|
665
723
|
/** Returns the AbortSignal object associated with this object. */
|
|
666
724
|
readonly signal: AbortSignal;
|
|
667
725
|
/** Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted. */
|
|
668
|
-
abort():
|
|
726
|
+
// abort(): AbortSignal; - To be re-added in the future
|
|
669
727
|
}
|
|
670
728
|
|
|
671
729
|
declare var AbortController: {
|
|
@@ -682,6 +740,8 @@ interface AbortSignal extends EventTarget {
|
|
|
682
740
|
/** Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise. */
|
|
683
741
|
readonly aborted: boolean;
|
|
684
742
|
onabort: ((this: AbortSignal, ev: Event) => any) | null;
|
|
743
|
+
readonly reason: any;
|
|
744
|
+
throwIfAborted(): void;
|
|
685
745
|
addEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
686
746
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
687
747
|
removeEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -691,7 +751,7 @@ interface AbortSignal extends EventTarget {
|
|
|
691
751
|
declare var AbortSignal: {
|
|
692
752
|
prototype: AbortSignal;
|
|
693
753
|
new(): AbortSignal;
|
|
694
|
-
|
|
754
|
+
abort(reason?: any): AbortSignal;
|
|
695
755
|
};
|
|
696
756
|
|
|
697
757
|
interface AbstractWorkerEventMap {
|
|
@@ -717,7 +777,7 @@ interface Blob {
|
|
|
717
777
|
readonly type: string;
|
|
718
778
|
arrayBuffer(): Promise<ArrayBuffer>;
|
|
719
779
|
slice(start?: number, end?: number, contentType?: string): Blob;
|
|
720
|
-
stream(): ReadableStream
|
|
780
|
+
stream(): ReadableStream<Uint8Array>;
|
|
721
781
|
text(): Promise<string>;
|
|
722
782
|
}
|
|
723
783
|
|
|
@@ -777,13 +837,13 @@ declare var ByteLengthQueuingStrategy: {
|
|
|
777
837
|
* Available only in secure contexts.
|
|
778
838
|
*/
|
|
779
839
|
interface Cache {
|
|
780
|
-
add(request: RequestInfo): Promise<void>;
|
|
840
|
+
add(request: RequestInfo | URL): Promise<void>;
|
|
781
841
|
addAll(requests: RequestInfo[]): Promise<void>;
|
|
782
|
-
delete(request: RequestInfo, options?: CacheQueryOptions): Promise<boolean>;
|
|
783
|
-
keys(request?: RequestInfo, options?: CacheQueryOptions): Promise<ReadonlyArray<Request>>;
|
|
784
|
-
match(request: RequestInfo, options?: CacheQueryOptions): Promise<Response | undefined>;
|
|
785
|
-
matchAll(request?: RequestInfo, options?: CacheQueryOptions): Promise<ReadonlyArray<Response>>;
|
|
786
|
-
put(request: RequestInfo, response: Response): Promise<void>;
|
|
842
|
+
delete(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<boolean>;
|
|
843
|
+
keys(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Request>>;
|
|
844
|
+
match(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<Response | undefined>;
|
|
845
|
+
matchAll(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Response>>;
|
|
846
|
+
put(request: RequestInfo | URL, response: Response): Promise<void>;
|
|
787
847
|
}
|
|
788
848
|
|
|
789
849
|
declare var Cache: {
|
|
@@ -799,7 +859,7 @@ interface CacheStorage {
|
|
|
799
859
|
delete(cacheName: string): Promise<boolean>;
|
|
800
860
|
has(cacheName: string): Promise<boolean>;
|
|
801
861
|
keys(): Promise<string[]>;
|
|
802
|
-
match(request: RequestInfo, options?: MultiCacheQueryOptions): Promise<Response | undefined>;
|
|
862
|
+
match(request: RequestInfo | URL, options?: MultiCacheQueryOptions): Promise<Response | undefined>;
|
|
803
863
|
open(cacheName: string): Promise<Cache>;
|
|
804
864
|
}
|
|
805
865
|
|
|
@@ -905,6 +965,8 @@ interface Crypto {
|
|
|
905
965
|
/** Available only in secure contexts. */
|
|
906
966
|
readonly subtle: SubtleCrypto;
|
|
907
967
|
getRandomValues<T extends ArrayBufferView | null>(array: T): T;
|
|
968
|
+
/** Available only in secure contexts. */
|
|
969
|
+
randomUUID(): string;
|
|
908
970
|
}
|
|
909
971
|
|
|
910
972
|
declare var Crypto: {
|
|
@@ -1358,8 +1420,10 @@ interface EventSource extends EventTarget {
|
|
|
1358
1420
|
readonly CONNECTING: number;
|
|
1359
1421
|
readonly OPEN: number;
|
|
1360
1422
|
addEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1423
|
+
addEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1361
1424
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1362
1425
|
removeEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1426
|
+
removeEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | EventListenerOptions): void;
|
|
1363
1427
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1364
1428
|
}
|
|
1365
1429
|
|
|
@@ -1428,6 +1492,7 @@ declare var ExtendableMessageEvent: {
|
|
|
1428
1492
|
interface FetchEvent extends ExtendableEvent {
|
|
1429
1493
|
readonly clientId: string;
|
|
1430
1494
|
readonly handled: Promise<undefined>;
|
|
1495
|
+
readonly preloadResponse: Promise<any>;
|
|
1431
1496
|
readonly request: Request;
|
|
1432
1497
|
readonly resultingClientId: string;
|
|
1433
1498
|
respondWith(r: Response | PromiseLike<Response>): void;
|
|
@@ -1518,6 +1583,43 @@ declare var FileReaderSync: {
|
|
|
1518
1583
|
new(): FileReaderSync;
|
|
1519
1584
|
};
|
|
1520
1585
|
|
|
1586
|
+
/** Available only in secure contexts. */
|
|
1587
|
+
interface FileSystemDirectoryHandle extends FileSystemHandle {
|
|
1588
|
+
readonly kind: "directory";
|
|
1589
|
+
getDirectoryHandle(name: string, options?: FileSystemGetDirectoryOptions): Promise<FileSystemDirectoryHandle>;
|
|
1590
|
+
getFileHandle(name: string, options?: FileSystemGetFileOptions): Promise<FileSystemFileHandle>;
|
|
1591
|
+
removeEntry(name: string, options?: FileSystemRemoveOptions): Promise<void>;
|
|
1592
|
+
resolve(possibleDescendant: FileSystemHandle): Promise<string[] | null>;
|
|
1593
|
+
}
|
|
1594
|
+
|
|
1595
|
+
declare var FileSystemDirectoryHandle: {
|
|
1596
|
+
prototype: FileSystemDirectoryHandle;
|
|
1597
|
+
new(): FileSystemDirectoryHandle;
|
|
1598
|
+
};
|
|
1599
|
+
|
|
1600
|
+
/** Available only in secure contexts. */
|
|
1601
|
+
interface FileSystemFileHandle extends FileSystemHandle {
|
|
1602
|
+
readonly kind: "file";
|
|
1603
|
+
getFile(): Promise<File>;
|
|
1604
|
+
}
|
|
1605
|
+
|
|
1606
|
+
declare var FileSystemFileHandle: {
|
|
1607
|
+
prototype: FileSystemFileHandle;
|
|
1608
|
+
new(): FileSystemFileHandle;
|
|
1609
|
+
};
|
|
1610
|
+
|
|
1611
|
+
/** Available only in secure contexts. */
|
|
1612
|
+
interface FileSystemHandle {
|
|
1613
|
+
readonly kind: FileSystemHandleKind;
|
|
1614
|
+
readonly name: string;
|
|
1615
|
+
isSameEntry(other: FileSystemHandle): Promise<boolean>;
|
|
1616
|
+
}
|
|
1617
|
+
|
|
1618
|
+
declare var FileSystemHandle: {
|
|
1619
|
+
prototype: FileSystemHandle;
|
|
1620
|
+
new(): FileSystemHandle;
|
|
1621
|
+
};
|
|
1622
|
+
|
|
1521
1623
|
interface FontFace {
|
|
1522
1624
|
ascentOverride: string;
|
|
1523
1625
|
descentOverride: string;
|
|
@@ -1981,6 +2083,7 @@ interface IDBTransactionEventMap {
|
|
|
1981
2083
|
interface IDBTransaction extends EventTarget {
|
|
1982
2084
|
/** Returns the transaction's connection. */
|
|
1983
2085
|
readonly db: IDBDatabase;
|
|
2086
|
+
readonly durability: IDBTransactionDurability;
|
|
1984
2087
|
/** If the transaction was aborted, returns the error (a DOMException) providing the reason. */
|
|
1985
2088
|
readonly error: DOMException | null;
|
|
1986
2089
|
/** Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction. */
|
|
@@ -2043,6 +2146,7 @@ declare var ImageBitmapRenderingContext: {
|
|
|
2043
2146
|
|
|
2044
2147
|
/** The underlying pixel data of an area of a <canvas> element. It is created using the ImageData() constructor or creator methods on the CanvasRenderingContext2D object associated with a canvas: createImageData() and getImageData(). It can also be used to set a part of the canvas by using putImageData(). */
|
|
2045
2148
|
interface ImageData {
|
|
2149
|
+
readonly colorSpace: PredefinedColorSpace;
|
|
2046
2150
|
/** Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255. */
|
|
2047
2151
|
readonly data: Uint8ClampedArray;
|
|
2048
2152
|
/** Returns the actual dimensions of the data in the ImageData object, in pixels. */
|
|
@@ -2061,6 +2165,29 @@ interface KHR_parallel_shader_compile {
|
|
|
2061
2165
|
readonly COMPLETION_STATUS_KHR: GLenum;
|
|
2062
2166
|
}
|
|
2063
2167
|
|
|
2168
|
+
/** Available only in secure contexts. */
|
|
2169
|
+
interface Lock {
|
|
2170
|
+
readonly mode: LockMode;
|
|
2171
|
+
readonly name: string;
|
|
2172
|
+
}
|
|
2173
|
+
|
|
2174
|
+
declare var Lock: {
|
|
2175
|
+
prototype: Lock;
|
|
2176
|
+
new(): Lock;
|
|
2177
|
+
};
|
|
2178
|
+
|
|
2179
|
+
/** Available only in secure contexts. */
|
|
2180
|
+
interface LockManager {
|
|
2181
|
+
query(): Promise<LockManagerSnapshot>;
|
|
2182
|
+
request(name: string, callback: LockGrantedCallback): Promise<any>;
|
|
2183
|
+
request(name: string, options: LockOptions, callback: LockGrantedCallback): Promise<any>;
|
|
2184
|
+
}
|
|
2185
|
+
|
|
2186
|
+
declare var LockManager: {
|
|
2187
|
+
prototype: LockManager;
|
|
2188
|
+
new(): LockManager;
|
|
2189
|
+
};
|
|
2190
|
+
|
|
2064
2191
|
interface MediaCapabilities {
|
|
2065
2192
|
decodingInfo(configuration: MediaDecodingConfiguration): Promise<MediaCapabilitiesDecodingInfo>;
|
|
2066
2193
|
encodingInfo(configuration: MediaEncodingConfiguration): Promise<MediaCapabilitiesEncodingInfo>;
|
|
@@ -2136,6 +2263,19 @@ declare var MessagePort: {
|
|
|
2136
2263
|
new(): MessagePort;
|
|
2137
2264
|
};
|
|
2138
2265
|
|
|
2266
|
+
/** Available only in secure contexts. */
|
|
2267
|
+
interface NavigationPreloadManager {
|
|
2268
|
+
disable(): Promise<void>;
|
|
2269
|
+
enable(): Promise<void>;
|
|
2270
|
+
getState(): Promise<NavigationPreloadState>;
|
|
2271
|
+
setHeaderValue(value: string): Promise<void>;
|
|
2272
|
+
}
|
|
2273
|
+
|
|
2274
|
+
declare var NavigationPreloadManager: {
|
|
2275
|
+
prototype: NavigationPreloadManager;
|
|
2276
|
+
new(): NavigationPreloadManager;
|
|
2277
|
+
};
|
|
2278
|
+
|
|
2139
2279
|
interface NavigatorConcurrentHardware {
|
|
2140
2280
|
readonly hardwareConcurrency: number;
|
|
2141
2281
|
}
|
|
@@ -2159,6 +2299,11 @@ interface NavigatorLanguage {
|
|
|
2159
2299
|
readonly languages: ReadonlyArray<string>;
|
|
2160
2300
|
}
|
|
2161
2301
|
|
|
2302
|
+
/** Available only in secure contexts. */
|
|
2303
|
+
interface NavigatorLocks {
|
|
2304
|
+
readonly locks: LockManager;
|
|
2305
|
+
}
|
|
2306
|
+
|
|
2162
2307
|
interface NavigatorNetworkInformation {
|
|
2163
2308
|
readonly connection: NetworkInformation;
|
|
2164
2309
|
}
|
|
@@ -2481,7 +2626,7 @@ declare var PushEvent: {
|
|
|
2481
2626
|
*/
|
|
2482
2627
|
interface PushManager {
|
|
2483
2628
|
getSubscription(): Promise<PushSubscription | null>;
|
|
2484
|
-
permissionState(options?: PushSubscriptionOptionsInit): Promise<
|
|
2629
|
+
permissionState(options?: PushSubscriptionOptionsInit): Promise<PermissionState>;
|
|
2485
2630
|
subscribe(options?: PushSubscriptionOptionsInit): Promise<PushSubscription>;
|
|
2486
2631
|
}
|
|
2487
2632
|
|
|
@@ -2534,6 +2679,29 @@ declare var PushSubscriptionOptions: {
|
|
|
2534
2679
|
new(): PushSubscriptionOptions;
|
|
2535
2680
|
};
|
|
2536
2681
|
|
|
2682
|
+
interface RTCEncodedAudioFrame {
|
|
2683
|
+
data: ArrayBuffer;
|
|
2684
|
+
readonly timestamp: number;
|
|
2685
|
+
getMetadata(): RTCEncodedAudioFrameMetadata;
|
|
2686
|
+
}
|
|
2687
|
+
|
|
2688
|
+
declare var RTCEncodedAudioFrame: {
|
|
2689
|
+
prototype: RTCEncodedAudioFrame;
|
|
2690
|
+
new(): RTCEncodedAudioFrame;
|
|
2691
|
+
};
|
|
2692
|
+
|
|
2693
|
+
interface RTCEncodedVideoFrame {
|
|
2694
|
+
data: ArrayBuffer;
|
|
2695
|
+
readonly timestamp: number;
|
|
2696
|
+
readonly type: RTCEncodedVideoFrameType;
|
|
2697
|
+
getMetadata(): RTCEncodedVideoFrameMetadata;
|
|
2698
|
+
}
|
|
2699
|
+
|
|
2700
|
+
declare var RTCEncodedVideoFrame: {
|
|
2701
|
+
prototype: RTCEncodedVideoFrame;
|
|
2702
|
+
new(): RTCEncodedVideoFrame;
|
|
2703
|
+
};
|
|
2704
|
+
|
|
2537
2705
|
/** This Streams API interface represents a readable stream of byte data. The Fetch API offers a concrete instance of a ReadableStream through the body property of a Response object. */
|
|
2538
2706
|
interface ReadableStream<R = any> {
|
|
2539
2707
|
readonly locked: boolean;
|
|
@@ -2609,7 +2777,7 @@ interface Request extends Body {
|
|
|
2609
2777
|
|
|
2610
2778
|
declare var Request: {
|
|
2611
2779
|
prototype: Request;
|
|
2612
|
-
new(input: RequestInfo, init?: RequestInit): Request;
|
|
2780
|
+
new(input: RequestInfo | URL, init?: RequestInit): Request;
|
|
2613
2781
|
};
|
|
2614
2782
|
|
|
2615
2783
|
/** This Fetch API interface represents the response to a request. */
|
|
@@ -2754,6 +2922,7 @@ interface ServiceWorkerRegistrationEventMap {
|
|
|
2754
2922
|
interface ServiceWorkerRegistration extends EventTarget {
|
|
2755
2923
|
readonly active: ServiceWorker | null;
|
|
2756
2924
|
readonly installing: ServiceWorker | null;
|
|
2925
|
+
readonly navigationPreload: NavigationPreloadManager;
|
|
2757
2926
|
onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null;
|
|
2758
2927
|
readonly pushManager: PushManager;
|
|
2759
2928
|
readonly scope: string;
|
|
@@ -2798,6 +2967,7 @@ declare var SharedWorkerGlobalScope: {
|
|
|
2798
2967
|
/** Available only in secure contexts. */
|
|
2799
2968
|
interface StorageManager {
|
|
2800
2969
|
estimate(): Promise<StorageEstimate>;
|
|
2970
|
+
getDirectory(): Promise<FileSystemDirectoryHandle>;
|
|
2801
2971
|
persisted(): Promise<boolean>;
|
|
2802
2972
|
}
|
|
2803
2973
|
|
|
@@ -2818,10 +2988,10 @@ interface SubtleCrypto {
|
|
|
2818
2988
|
encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<any>;
|
|
2819
2989
|
exportKey(format: "jwk", key: CryptoKey): Promise<JsonWebKey>;
|
|
2820
2990
|
exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>;
|
|
2821
|
-
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: KeyUsage
|
|
2822
|
-
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage
|
|
2991
|
+
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
|
|
2992
|
+
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
|
2823
2993
|
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>;
|
|
2824
|
-
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage
|
|
2994
|
+
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
|
2825
2995
|
importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
|
|
2826
2996
|
sign(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
|
|
2827
2997
|
unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
|
|
@@ -2999,6 +3169,19 @@ declare var URLSearchParams: {
|
|
|
2999
3169
|
toString(): string;
|
|
3000
3170
|
};
|
|
3001
3171
|
|
|
3172
|
+
interface VideoColorSpace {
|
|
3173
|
+
readonly fullRange: boolean | null;
|
|
3174
|
+
readonly matrix: VideoMatrixCoefficients | null;
|
|
3175
|
+
readonly primaries: VideoColorPrimaries | null;
|
|
3176
|
+
readonly transfer: VideoTransferCharacteristics | null;
|
|
3177
|
+
toJSON(): VideoColorSpaceInit;
|
|
3178
|
+
}
|
|
3179
|
+
|
|
3180
|
+
declare var VideoColorSpace: {
|
|
3181
|
+
prototype: VideoColorSpace;
|
|
3182
|
+
new(init?: VideoColorSpaceInit): VideoColorSpace;
|
|
3183
|
+
};
|
|
3184
|
+
|
|
3002
3185
|
interface WEBGL_color_buffer_float {
|
|
3003
3186
|
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: GLenum;
|
|
3004
3187
|
readonly RGBA32F_EXT: GLenum;
|
|
@@ -3054,13 +3237,6 @@ interface WEBGL_compressed_texture_etc1 {
|
|
|
3054
3237
|
readonly COMPRESSED_RGB_ETC1_WEBGL: GLenum;
|
|
3055
3238
|
}
|
|
3056
3239
|
|
|
3057
|
-
interface WEBGL_compressed_texture_pvrtc {
|
|
3058
|
-
readonly COMPRESSED_RGBA_PVRTC_2BPPV1_IMG: GLenum;
|
|
3059
|
-
readonly COMPRESSED_RGBA_PVRTC_4BPPV1_IMG: GLenum;
|
|
3060
|
-
readonly COMPRESSED_RGB_PVRTC_2BPPV1_IMG: GLenum;
|
|
3061
|
-
readonly COMPRESSED_RGB_PVRTC_4BPPV1_IMG: GLenum;
|
|
3062
|
-
}
|
|
3063
|
-
|
|
3064
3240
|
/** The WEBGL_compressed_texture_s3tc extension is part of the WebGL API and exposes four S3TC compressed texture formats. */
|
|
3065
3241
|
interface WEBGL_compressed_texture_s3tc {
|
|
3066
3242
|
readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: GLenum;
|
|
@@ -3134,6 +3310,13 @@ interface WEBGL_lose_context {
|
|
|
3134
3310
|
restoreContext(): void;
|
|
3135
3311
|
}
|
|
3136
3312
|
|
|
3313
|
+
interface WEBGL_multi_draw {
|
|
3314
|
+
multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: GLuint, countsList: Int32Array | GLsizei[], countsOffset: GLuint, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: GLuint, drawcount: GLsizei): void;
|
|
3315
|
+
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: GLuint, countsList: Int32Array | GLsizei[], countsOffset: GLuint, drawcount: GLsizei): void;
|
|
3316
|
+
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | GLint[], countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: GLuint, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: GLuint, drawcount: GLsizei): void;
|
|
3317
|
+
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLint[], countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: GLuint, drawcount: GLsizei): void;
|
|
3318
|
+
}
|
|
3319
|
+
|
|
3137
3320
|
interface WebGL2RenderingContext extends WebGL2RenderingContextBase, WebGL2RenderingContextOverloads, WebGLRenderingContextBase {
|
|
3138
3321
|
}
|
|
3139
3322
|
|
|
@@ -4544,7 +4727,6 @@ interface WebGLRenderingContextBase {
|
|
|
4544
4727
|
getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc | null;
|
|
4545
4728
|
getExtension(extensionName: "WEBGL_compressed_texture_etc"): WEBGL_compressed_texture_etc | null;
|
|
4546
4729
|
getExtension(extensionName: "WEBGL_compressed_texture_etc1"): WEBGL_compressed_texture_etc1 | null;
|
|
4547
|
-
getExtension(extensionName: "WEBGL_compressed_texture_pvrtc"): WEBGL_compressed_texture_pvrtc | null;
|
|
4548
4730
|
getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb | null;
|
|
4549
4731
|
getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null;
|
|
4550
4732
|
getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;
|
|
@@ -5075,7 +5257,7 @@ declare var WebSocket: {
|
|
|
5075
5257
|
/** 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. */
|
|
5076
5258
|
interface WindowClient extends Client {
|
|
5077
5259
|
readonly focused: boolean;
|
|
5078
|
-
readonly visibilityState:
|
|
5260
|
+
readonly visibilityState: DocumentVisibilityState;
|
|
5079
5261
|
focus(): Promise<WindowClient>;
|
|
5080
5262
|
navigate(url: string | URL): Promise<WindowClient | null>;
|
|
5081
5263
|
}
|
|
@@ -5096,14 +5278,16 @@ interface WindowOrWorkerGlobalScope {
|
|
|
5096
5278
|
readonly performance: Performance;
|
|
5097
5279
|
atob(data: string): string;
|
|
5098
5280
|
btoa(data: string): string;
|
|
5099
|
-
clearInterval(
|
|
5100
|
-
clearTimeout(
|
|
5281
|
+
clearInterval(id?: number): void;
|
|
5282
|
+
clearTimeout(id?: number): void;
|
|
5101
5283
|
createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
5102
5284
|
createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
5103
|
-
fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
5285
|
+
fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
|
|
5104
5286
|
queueMicrotask(callback: VoidFunction): void;
|
|
5287
|
+
reportError(e: any): void;
|
|
5105
5288
|
setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
|
|
5106
5289
|
setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
|
|
5290
|
+
structuredClone(value: any, options?: StructuredSerializeOptions): any;
|
|
5107
5291
|
}
|
|
5108
5292
|
|
|
5109
5293
|
interface WorkerEventMap extends AbstractWorkerEventMap {
|
|
@@ -5187,7 +5371,7 @@ declare var WorkerLocation: {
|
|
|
5187
5371
|
};
|
|
5188
5372
|
|
|
5189
5373
|
/** A subset of the Navigator interface allowed to be accessed from a Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.navigator property obtained by calling window.self.navigator. */
|
|
5190
|
-
interface WorkerNavigator extends NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorNetworkInformation, NavigatorOnLine, NavigatorStorage {
|
|
5374
|
+
interface WorkerNavigator extends NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorNetworkInformation, NavigatorOnLine, NavigatorStorage {
|
|
5191
5375
|
readonly mediaCapabilities: MediaCapabilities;
|
|
5192
5376
|
}
|
|
5193
5377
|
|
|
@@ -5518,7 +5702,7 @@ declare namespace WebAssembly {
|
|
|
5518
5702
|
|
|
5519
5703
|
type ImportExportKind = "function" | "global" | "memory" | "table";
|
|
5520
5704
|
type TableKind = "anyfunc" | "externref";
|
|
5521
|
-
type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64";
|
|
5705
|
+
type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64" | "v128";
|
|
5522
5706
|
type ExportValue = Function | Global | Memory | Table;
|
|
5523
5707
|
type Exports = Record<string, ExportValue>;
|
|
5524
5708
|
type ImportValue = ExportValue | number;
|
|
@@ -5536,6 +5720,10 @@ interface FrameRequestCallback {
|
|
|
5536
5720
|
(time: DOMHighResTimeStamp): void;
|
|
5537
5721
|
}
|
|
5538
5722
|
|
|
5723
|
+
interface LockGrantedCallback {
|
|
5724
|
+
(lock: Lock | null): any;
|
|
5725
|
+
}
|
|
5726
|
+
|
|
5539
5727
|
interface OnErrorEventHandlerNonNull {
|
|
5540
5728
|
(event: Event | string, source?: string, lineno?: number, colno?: number, error?: Error): any;
|
|
5541
5729
|
}
|
|
@@ -5630,14 +5818,16 @@ declare var origin: string;
|
|
|
5630
5818
|
declare var performance: Performance;
|
|
5631
5819
|
declare function atob(data: string): string;
|
|
5632
5820
|
declare function btoa(data: string): string;
|
|
5633
|
-
declare function clearInterval(
|
|
5634
|
-
declare function clearTimeout(
|
|
5821
|
+
declare function clearInterval(id?: number): void;
|
|
5822
|
+
declare function clearTimeout(id?: number): void;
|
|
5635
5823
|
declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
5636
5824
|
declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
5637
|
-
declare function fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
5825
|
+
declare function fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
|
|
5638
5826
|
declare function queueMicrotask(callback: VoidFunction): void;
|
|
5827
|
+
declare function reportError(e: any): void;
|
|
5639
5828
|
declare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
|
|
5640
5829
|
declare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
|
|
5830
|
+
declare function structuredClone(value: any, options?: StructuredSerializeOptions): any;
|
|
5641
5831
|
declare function cancelAnimationFrame(handle: number): void;
|
|
5642
5832
|
declare function requestAnimationFrame(callback: FrameRequestCallback): number;
|
|
5643
5833
|
declare function addEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -5652,7 +5842,7 @@ type BodyInit = ReadableStream | XMLHttpRequestBodyInit;
|
|
|
5652
5842
|
type BufferSource = ArrayBufferView | ArrayBuffer;
|
|
5653
5843
|
type CanvasImageSource = ImageBitmap | OffscreenCanvas;
|
|
5654
5844
|
type DOMHighResTimeStamp = number;
|
|
5655
|
-
type
|
|
5845
|
+
type EpochTimeStamp = number;
|
|
5656
5846
|
type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
|
|
5657
5847
|
type Float32List = Float32Array | GLfloat[];
|
|
5658
5848
|
type FormDataEntryValue = File | string;
|
|
@@ -5693,18 +5883,22 @@ type ClientTypes = "all" | "sharedworker" | "window" | "worker";
|
|
|
5693
5883
|
type ColorGamut = "p3" | "rec2020" | "srgb";
|
|
5694
5884
|
type ColorSpaceConversion = "default" | "none";
|
|
5695
5885
|
type ConnectionType = "bluetooth" | "cellular" | "ethernet" | "mixed" | "none" | "other" | "unknown" | "wifi";
|
|
5886
|
+
type DocumentVisibilityState = "hidden" | "visible";
|
|
5696
5887
|
type EndingType = "native" | "transparent";
|
|
5888
|
+
type FileSystemHandleKind = "directory" | "file";
|
|
5697
5889
|
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
|
5698
5890
|
type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
5699
5891
|
type FrameType = "auxiliary" | "nested" | "none" | "top-level";
|
|
5700
5892
|
type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
|
|
5701
5893
|
type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
|
|
5702
5894
|
type IDBRequestReadyState = "done" | "pending";
|
|
5895
|
+
type IDBTransactionDurability = "default" | "relaxed" | "strict";
|
|
5703
5896
|
type IDBTransactionMode = "readonly" | "readwrite" | "versionchange";
|
|
5704
5897
|
type ImageOrientation = "flipY" | "none";
|
|
5705
5898
|
type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
|
|
5706
5899
|
type KeyType = "private" | "public" | "secret";
|
|
5707
5900
|
type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";
|
|
5901
|
+
type LockMode = "exclusive" | "shared";
|
|
5708
5902
|
type MediaDecodingType = "file" | "media-source" | "webrtc";
|
|
5709
5903
|
type MediaEncodingType = "record" | "webrtc";
|
|
5710
5904
|
type NotificationDirection = "auto" | "ltr" | "rtl";
|
|
@@ -5714,7 +5908,7 @@ type PermissionState = "denied" | "granted" | "prompt";
|
|
|
5714
5908
|
type PredefinedColorSpace = "display-p3" | "srgb";
|
|
5715
5909
|
type PremultiplyAlpha = "default" | "none" | "premultiply";
|
|
5716
5910
|
type PushEncryptionKeyName = "auth" | "p256dh";
|
|
5717
|
-
type
|
|
5911
|
+
type RTCEncodedVideoFrameType = "delta" | "empty" | "key";
|
|
5718
5912
|
type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";
|
|
5719
5913
|
type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload";
|
|
5720
5914
|
type RequestCredentials = "include" | "omit" | "same-origin";
|
|
@@ -5727,7 +5921,9 @@ type SecurityPolicyViolationEventDisposition = "enforce" | "report";
|
|
|
5727
5921
|
type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant";
|
|
5728
5922
|
type ServiceWorkerUpdateViaCache = "all" | "imports" | "none";
|
|
5729
5923
|
type TransferFunction = "hlg" | "pq" | "srgb";
|
|
5730
|
-
type
|
|
5924
|
+
type VideoColorPrimaries = "bt470bg" | "bt709" | "smpte170m";
|
|
5925
|
+
type VideoMatrixCoefficients = "bt470bg" | "bt709" | "rgb" | "smpte170m";
|
|
5926
|
+
type VideoTransferCharacteristics = "bt709" | "iec61966-2-1" | "smpte170m";
|
|
5731
5927
|
type WebGLPowerPreference = "default" | "high-performance" | "low-power";
|
|
5732
5928
|
type WorkerType = "classic" | "module";
|
|
5733
5929
|
type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
|
|
@@ -78,10 +78,10 @@ interface MessageEvent<T = any> {
|
|
|
78
78
|
|
|
79
79
|
interface SubtleCrypto {
|
|
80
80
|
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
|
|
81
|
-
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: KeyUsage
|
|
82
|
-
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage
|
|
81
|
+
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
|
|
82
|
+
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
|
83
83
|
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;
|
|
84
|
-
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage
|
|
84
|
+
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
|
85
85
|
importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
|
|
86
86
|
unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
|
|
87
87
|
}
|
|
@@ -100,6 +100,13 @@ interface WEBGL_draw_buffers {
|
|
|
100
100
|
drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
+
interface WEBGL_multi_draw {
|
|
104
|
+
multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: GLuint, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void;
|
|
105
|
+
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: GLuint, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, drawcount: GLsizei): void;
|
|
106
|
+
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLint>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void;
|
|
107
|
+
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLint>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, drawcount: GLsizei): void;
|
|
108
|
+
}
|
|
109
|
+
|
|
103
110
|
interface WebGL2RenderingContextBase {
|
|
104
111
|
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: GLuint): void;
|
|
105
112
|
clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: GLuint): void;
|