@stencil/core 2.13.0 → 2.14.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/bin/stencil +8 -1
- package/cli/index.cjs +15 -6
- package/cli/index.js +15 -6
- package/cli/package.json +1 -1
- package/compiler/lib.dom.d.ts +2855 -4909
- package/compiler/lib.dom.iterable.d.ts +42 -66
- package/compiler/lib.es2015.core.d.ts +60 -18
- package/compiler/lib.es2015.iterable.d.ts +3 -11
- package/compiler/lib.es2015.promise.d.ts +2 -74
- package/compiler/lib.es2015.symbol.wellknown.d.ts +3 -3
- package/compiler/lib.es2018.intl.d.ts +23 -11
- package/compiler/lib.es2019.string.d.ts +8 -2
- package/compiler/lib.es2020.bigint.d.ts +2 -2
- package/compiler/lib.es2020.intl.d.ts +173 -114
- package/compiler/lib.es2020.promise.d.ts +2 -3
- package/compiler/lib.es2021.d.ts +1 -0
- package/compiler/lib.es2021.intl.d.ts +44 -0
- package/compiler/lib.es2021.promise.d.ts +8 -1
- package/compiler/lib.es5.d.ts +112 -52
- package/compiler/lib.esnext.intl.d.ts +1 -10
- package/compiler/lib.webworker.d.ts +1013 -1267
- package/compiler/lib.webworker.iterable.d.ts +28 -34
- package/compiler/package.json +1 -1
- package/compiler/stencil.js +395 -78
- package/compiler/stencil.min.js +2 -2
- package/dependencies.json +2 -1
- package/dev-server/client/index.js +1 -1
- package/dev-server/client/package.json +1 -1
- package/dev-server/connector.html +3 -3
- package/dev-server/index.js +1 -1
- package/dev-server/package.json +1 -1
- package/dev-server/server-process.js +16 -5
- package/internal/app-data/package.json +1 -1
- package/internal/client/css-shim.js +2 -2
- package/internal/client/dom.js +1 -1
- package/internal/client/index.js +28 -2
- package/internal/client/package.json +1 -1
- package/internal/client/patch-browser.js +5 -1
- package/internal/client/patch-esm.js +1 -1
- package/internal/client/polyfills/css-shim.js +1 -1
- package/internal/client/shadow-css.js +1 -1
- package/internal/hydrate/index.js +3 -1
- package/internal/hydrate/package.json +1 -1
- package/internal/hydrate/runner.js +1 -1
- package/internal/package.json +1 -1
- package/internal/testing/index.js +3 -1
- package/internal/testing/package.json +1 -1
- package/mock-doc/index.cjs +14 -2
- package/mock-doc/index.d.ts +3 -3
- package/mock-doc/index.js +14 -2
- package/mock-doc/package.json +1 -1
- package/package.json +4 -4
- package/screenshot/package.json +1 -1
- package/sys/node/index.js +6 -3
- package/sys/node/package.json +1 -1
- package/sys/node/worker.js +1 -1
- package/testing/index.js +18 -19
- package/testing/package.json +1 -1
|
@@ -25,14 +25,15 @@ and limitations under the License.
|
|
|
25
25
|
interface AddEventListenerOptions extends EventListenerOptions {
|
|
26
26
|
once?: boolean;
|
|
27
27
|
passive?: boolean;
|
|
28
|
+
signal?: AbortSignal;
|
|
28
29
|
}
|
|
29
30
|
|
|
30
31
|
interface AesCbcParams extends Algorithm {
|
|
31
|
-
iv:
|
|
32
|
+
iv: BufferSource;
|
|
32
33
|
}
|
|
33
34
|
|
|
34
35
|
interface AesCtrParams extends Algorithm {
|
|
35
|
-
counter:
|
|
36
|
+
counter: BufferSource;
|
|
36
37
|
length: number;
|
|
37
38
|
}
|
|
38
39
|
|
|
@@ -41,8 +42,8 @@ interface AesDerivedKeyParams extends Algorithm {
|
|
|
41
42
|
}
|
|
42
43
|
|
|
43
44
|
interface AesGcmParams extends Algorithm {
|
|
44
|
-
additionalData?:
|
|
45
|
-
iv:
|
|
45
|
+
additionalData?: BufferSource;
|
|
46
|
+
iv: BufferSource;
|
|
46
47
|
tagLength?: number;
|
|
47
48
|
}
|
|
48
49
|
|
|
@@ -58,6 +59,14 @@ interface Algorithm {
|
|
|
58
59
|
name: string;
|
|
59
60
|
}
|
|
60
61
|
|
|
62
|
+
interface AudioConfiguration {
|
|
63
|
+
bitrate?: number;
|
|
64
|
+
channels?: string;
|
|
65
|
+
contentType: string;
|
|
66
|
+
samplerate?: number;
|
|
67
|
+
spatialRendering?: boolean;
|
|
68
|
+
}
|
|
69
|
+
|
|
61
70
|
interface BlobPropertyBag {
|
|
62
71
|
endings?: EndingType;
|
|
63
72
|
type?: string;
|
|
@@ -69,11 +78,6 @@ interface CacheQueryOptions {
|
|
|
69
78
|
ignoreVary?: boolean;
|
|
70
79
|
}
|
|
71
80
|
|
|
72
|
-
interface CanvasRenderingContext2DSettings {
|
|
73
|
-
alpha?: boolean;
|
|
74
|
-
desynchronized?: boolean;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
81
|
interface ClientQueryOptions {
|
|
78
82
|
includeUncontrolled?: boolean;
|
|
79
83
|
type?: ClientTypes;
|
|
@@ -144,11 +148,6 @@ interface DOMRectInit {
|
|
|
144
148
|
y?: number;
|
|
145
149
|
}
|
|
146
150
|
|
|
147
|
-
interface DevicePermissionDescriptor extends PermissionDescriptor {
|
|
148
|
-
deviceId?: string;
|
|
149
|
-
name: "camera" | "microphone" | "speaker";
|
|
150
|
-
}
|
|
151
|
-
|
|
152
151
|
interface EcKeyGenParams extends Algorithm {
|
|
153
152
|
namedCurve: NamedCurve;
|
|
154
153
|
}
|
|
@@ -200,6 +199,7 @@ interface ExtendableMessageEventInit extends ExtendableEventInit {
|
|
|
200
199
|
|
|
201
200
|
interface FetchEventInit extends ExtendableEventInit {
|
|
202
201
|
clientId?: string;
|
|
202
|
+
handled?: Promise<undefined>;
|
|
203
203
|
preloadResponse?: Promise<any>;
|
|
204
204
|
replacesClientId?: string;
|
|
205
205
|
request: Request;
|
|
@@ -210,14 +210,28 @@ interface FilePropertyBag extends BlobPropertyBag {
|
|
|
210
210
|
lastModified?: number;
|
|
211
211
|
}
|
|
212
212
|
|
|
213
|
+
interface FontFaceDescriptors {
|
|
214
|
+
display?: string;
|
|
215
|
+
featureSettings?: string;
|
|
216
|
+
stretch?: string;
|
|
217
|
+
style?: string;
|
|
218
|
+
unicodeRange?: string;
|
|
219
|
+
variant?: string;
|
|
220
|
+
weight?: string;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
interface FontFaceSetLoadEventInit extends EventInit {
|
|
224
|
+
fontfaces?: FontFace[];
|
|
225
|
+
}
|
|
226
|
+
|
|
213
227
|
interface GetNotificationOptions {
|
|
214
228
|
tag?: string;
|
|
215
229
|
}
|
|
216
230
|
|
|
217
231
|
interface HkdfParams extends Algorithm {
|
|
218
232
|
hash: HashAlgorithmIdentifier;
|
|
219
|
-
info:
|
|
220
|
-
salt:
|
|
233
|
+
info: BufferSource;
|
|
234
|
+
salt: BufferSource;
|
|
221
235
|
}
|
|
222
236
|
|
|
223
237
|
interface HmacImportParams extends Algorithm {
|
|
@@ -230,6 +244,11 @@ interface HmacKeyGenParams extends Algorithm {
|
|
|
230
244
|
length?: number;
|
|
231
245
|
}
|
|
232
246
|
|
|
247
|
+
interface IDBDatabaseInfo {
|
|
248
|
+
name?: string;
|
|
249
|
+
version?: number;
|
|
250
|
+
}
|
|
251
|
+
|
|
233
252
|
interface IDBIndexParameters {
|
|
234
253
|
multiEntry?: boolean;
|
|
235
254
|
unique?: boolean;
|
|
@@ -258,9 +277,8 @@ interface ImageBitmapRenderingContextSettings {
|
|
|
258
277
|
alpha?: boolean;
|
|
259
278
|
}
|
|
260
279
|
|
|
261
|
-
interface
|
|
262
|
-
|
|
263
|
-
type?: string;
|
|
280
|
+
interface ImageDataSettings {
|
|
281
|
+
colorSpace?: PredefinedColorSpace;
|
|
264
282
|
}
|
|
265
283
|
|
|
266
284
|
interface ImportMeta {
|
|
@@ -292,6 +310,33 @@ interface KeyAlgorithm {
|
|
|
292
310
|
name: string;
|
|
293
311
|
}
|
|
294
312
|
|
|
313
|
+
interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {
|
|
314
|
+
configuration?: MediaDecodingConfiguration;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
interface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo {
|
|
318
|
+
configuration?: MediaEncodingConfiguration;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
interface MediaCapabilitiesInfo {
|
|
322
|
+
powerEfficient: boolean;
|
|
323
|
+
smooth: boolean;
|
|
324
|
+
supported: boolean;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
interface MediaConfiguration {
|
|
328
|
+
audio?: AudioConfiguration;
|
|
329
|
+
video?: VideoConfiguration;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
interface MediaDecodingConfiguration extends MediaConfiguration {
|
|
333
|
+
type: MediaDecodingType;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
interface MediaEncodingConfiguration extends MediaConfiguration {
|
|
337
|
+
type: MediaEncodingType;
|
|
338
|
+
}
|
|
339
|
+
|
|
295
340
|
interface MessageEventInit<T = any> extends EventInit {
|
|
296
341
|
data?: T;
|
|
297
342
|
lastEventId?: string;
|
|
@@ -300,20 +345,10 @@ interface MessageEventInit<T = any> extends EventInit {
|
|
|
300
345
|
source?: MessageEventSource | null;
|
|
301
346
|
}
|
|
302
347
|
|
|
303
|
-
interface MidiPermissionDescriptor extends PermissionDescriptor {
|
|
304
|
-
name: "midi";
|
|
305
|
-
sysex?: boolean;
|
|
306
|
-
}
|
|
307
|
-
|
|
308
348
|
interface MultiCacheQueryOptions extends CacheQueryOptions {
|
|
309
349
|
cacheName?: string;
|
|
310
350
|
}
|
|
311
351
|
|
|
312
|
-
interface NavigationPreloadState {
|
|
313
|
-
enabled?: boolean;
|
|
314
|
-
headerValue?: string;
|
|
315
|
-
}
|
|
316
|
-
|
|
317
352
|
interface NotificationAction {
|
|
318
353
|
action: string;
|
|
319
354
|
icon?: string;
|
|
@@ -338,14 +373,26 @@ interface NotificationOptions {
|
|
|
338
373
|
requireInteraction?: boolean;
|
|
339
374
|
silent?: boolean;
|
|
340
375
|
tag?: string;
|
|
341
|
-
timestamp?:
|
|
376
|
+
timestamp?: DOMTimeStamp;
|
|
342
377
|
vibrate?: VibratePattern;
|
|
343
378
|
}
|
|
344
379
|
|
|
345
380
|
interface Pbkdf2Params extends Algorithm {
|
|
346
381
|
hash: HashAlgorithmIdentifier;
|
|
347
382
|
iterations: number;
|
|
348
|
-
salt:
|
|
383
|
+
salt: BufferSource;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
interface PerformanceMarkOptions {
|
|
387
|
+
detail?: any;
|
|
388
|
+
startTime?: DOMHighResTimeStamp;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
interface PerformanceMeasureOptions {
|
|
392
|
+
detail?: any;
|
|
393
|
+
duration?: DOMHighResTimeStamp;
|
|
394
|
+
end?: string | DOMHighResTimeStamp;
|
|
395
|
+
start?: string | DOMHighResTimeStamp;
|
|
349
396
|
}
|
|
350
397
|
|
|
351
398
|
interface PerformanceObserverInit {
|
|
@@ -358,10 +405,6 @@ interface PermissionDescriptor {
|
|
|
358
405
|
name: PermissionName;
|
|
359
406
|
}
|
|
360
407
|
|
|
361
|
-
interface PostMessageOptions {
|
|
362
|
-
transfer?: any[];
|
|
363
|
-
}
|
|
364
|
-
|
|
365
408
|
interface ProgressEventInit extends EventInit {
|
|
366
409
|
lengthComputable?: boolean;
|
|
367
410
|
loaded?: number;
|
|
@@ -377,14 +420,9 @@ interface PushEventInit extends ExtendableEventInit {
|
|
|
377
420
|
data?: PushMessageDataInit;
|
|
378
421
|
}
|
|
379
422
|
|
|
380
|
-
interface PushPermissionDescriptor extends PermissionDescriptor {
|
|
381
|
-
name: "push";
|
|
382
|
-
userVisibleOnly?: boolean;
|
|
383
|
-
}
|
|
384
|
-
|
|
385
423
|
interface PushSubscriptionJSON {
|
|
386
424
|
endpoint?: string;
|
|
387
|
-
expirationTime?:
|
|
425
|
+
expirationTime?: DOMTimeStamp | null;
|
|
388
426
|
keys?: Record<string, string>;
|
|
389
427
|
}
|
|
390
428
|
|
|
@@ -434,58 +472,32 @@ interface RegistrationOptions {
|
|
|
434
472
|
}
|
|
435
473
|
|
|
436
474
|
interface RequestInit {
|
|
437
|
-
/**
|
|
438
|
-
* A BodyInit object or null to set request's body.
|
|
439
|
-
*/
|
|
475
|
+
/** A BodyInit object or null to set request's body. */
|
|
440
476
|
body?: BodyInit | null;
|
|
441
|
-
/**
|
|
442
|
-
* A string indicating how the request will interact with the browser's cache to set request's cache.
|
|
443
|
-
*/
|
|
477
|
+
/** A string indicating how the request will interact with the browser's cache to set request's cache. */
|
|
444
478
|
cache?: RequestCache;
|
|
445
|
-
/**
|
|
446
|
-
* A string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. Sets request's credentials.
|
|
447
|
-
*/
|
|
479
|
+
/** A string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. Sets request's credentials. */
|
|
448
480
|
credentials?: RequestCredentials;
|
|
449
|
-
/**
|
|
450
|
-
* A Headers object, an object literal, or an array of two-item arrays to set request's headers.
|
|
451
|
-
*/
|
|
481
|
+
/** A Headers object, an object literal, or an array of two-item arrays to set request's headers. */
|
|
452
482
|
headers?: HeadersInit;
|
|
453
|
-
/**
|
|
454
|
-
* A cryptographic hash of the resource to be fetched by request. Sets request's integrity.
|
|
455
|
-
*/
|
|
483
|
+
/** A cryptographic hash of the resource to be fetched by request. Sets request's integrity. */
|
|
456
484
|
integrity?: string;
|
|
457
|
-
/**
|
|
458
|
-
* A boolean to set request's keepalive.
|
|
459
|
-
*/
|
|
485
|
+
/** A boolean to set request's keepalive. */
|
|
460
486
|
keepalive?: boolean;
|
|
461
|
-
/**
|
|
462
|
-
* A string to set request's method.
|
|
463
|
-
*/
|
|
487
|
+
/** A string to set request's method. */
|
|
464
488
|
method?: string;
|
|
465
|
-
/**
|
|
466
|
-
* A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode.
|
|
467
|
-
*/
|
|
489
|
+
/** A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode. */
|
|
468
490
|
mode?: RequestMode;
|
|
469
|
-
/**
|
|
470
|
-
* 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.
|
|
471
|
-
*/
|
|
491
|
+
/** 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. */
|
|
472
492
|
redirect?: RequestRedirect;
|
|
473
|
-
/**
|
|
474
|
-
* A string whose value is a same-origin URL, "about:client", or the empty string, to set request's referrer.
|
|
475
|
-
*/
|
|
493
|
+
/** A string whose value is a same-origin URL, "about:client", or the empty string, to set request's referrer. */
|
|
476
494
|
referrer?: string;
|
|
477
|
-
/**
|
|
478
|
-
* A referrer policy to set request's referrerPolicy.
|
|
479
|
-
*/
|
|
495
|
+
/** A referrer policy to set request's referrerPolicy. */
|
|
480
496
|
referrerPolicy?: ReferrerPolicy;
|
|
481
|
-
/**
|
|
482
|
-
* An AbortSignal to set request's signal.
|
|
483
|
-
*/
|
|
497
|
+
/** An AbortSignal to set request's signal. */
|
|
484
498
|
signal?: AbortSignal | null;
|
|
485
|
-
/**
|
|
486
|
-
|
|
487
|
-
*/
|
|
488
|
-
window?: any;
|
|
499
|
+
/** Can only be null. Used to disassociate request from any Window. */
|
|
500
|
+
window?: null;
|
|
489
501
|
}
|
|
490
502
|
|
|
491
503
|
interface ResponseInit {
|
|
@@ -508,7 +520,7 @@ interface RsaKeyGenParams extends Algorithm {
|
|
|
508
520
|
}
|
|
509
521
|
|
|
510
522
|
interface RsaOaepParams extends Algorithm {
|
|
511
|
-
label?:
|
|
523
|
+
label?: BufferSource;
|
|
512
524
|
}
|
|
513
525
|
|
|
514
526
|
interface RsaOtherPrimesInfo {
|
|
@@ -521,6 +533,21 @@ interface RsaPssParams extends Algorithm {
|
|
|
521
533
|
saltLength: number;
|
|
522
534
|
}
|
|
523
535
|
|
|
536
|
+
interface SecurityPolicyViolationEventInit extends EventInit {
|
|
537
|
+
blockedURI?: string;
|
|
538
|
+
columnNumber?: number;
|
|
539
|
+
disposition: SecurityPolicyViolationEventDisposition;
|
|
540
|
+
documentURI: string;
|
|
541
|
+
effectiveDirective: string;
|
|
542
|
+
lineNumber?: number;
|
|
543
|
+
originalPolicy: string;
|
|
544
|
+
referrer?: string;
|
|
545
|
+
sample?: string;
|
|
546
|
+
sourceFile?: string;
|
|
547
|
+
statusCode: number;
|
|
548
|
+
violatedDirective: string;
|
|
549
|
+
}
|
|
550
|
+
|
|
524
551
|
interface StorageEstimate {
|
|
525
552
|
quota?: number;
|
|
526
553
|
usage?: number;
|
|
@@ -550,9 +577,8 @@ interface StreamPipeOptions {
|
|
|
550
577
|
signal?: AbortSignal;
|
|
551
578
|
}
|
|
552
579
|
|
|
553
|
-
interface
|
|
554
|
-
|
|
555
|
-
tag: string;
|
|
580
|
+
interface StructuredSerializeOptions {
|
|
581
|
+
transfer?: any[];
|
|
556
582
|
}
|
|
557
583
|
|
|
558
584
|
interface TextDecodeOptions {
|
|
@@ -592,6 +618,18 @@ interface UnderlyingSource<R = any> {
|
|
|
592
618
|
type?: undefined;
|
|
593
619
|
}
|
|
594
620
|
|
|
621
|
+
interface VideoConfiguration {
|
|
622
|
+
bitrate: number;
|
|
623
|
+
colorGamut?: ColorGamut;
|
|
624
|
+
contentType: string;
|
|
625
|
+
framerate: number;
|
|
626
|
+
hdrMetadataType?: HdrMetadataType;
|
|
627
|
+
height: number;
|
|
628
|
+
scalabilityMode?: string;
|
|
629
|
+
transferFunction?: TransferFunction;
|
|
630
|
+
width: number;
|
|
631
|
+
}
|
|
632
|
+
|
|
595
633
|
interface WebGLContextAttributes {
|
|
596
634
|
alpha?: boolean;
|
|
597
635
|
antialias?: boolean;
|
|
@@ -614,10 +652,6 @@ interface WorkerOptions {
|
|
|
614
652
|
type?: WorkerType;
|
|
615
653
|
}
|
|
616
654
|
|
|
617
|
-
interface EventListener {
|
|
618
|
-
(evt: Event): void;
|
|
619
|
-
}
|
|
620
|
-
|
|
621
655
|
/** The ANGLE_instanced_arrays extension is part of the WebGL API and allows to draw the same object, or groups of similar objects multiple times, if they share the same vertex data, primitive count and type. */
|
|
622
656
|
interface ANGLE_instanced_arrays {
|
|
623
657
|
drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void;
|
|
@@ -628,13 +662,9 @@ interface ANGLE_instanced_arrays {
|
|
|
628
662
|
|
|
629
663
|
/** A controller object that allows you to abort one or more DOM requests as and when desired. */
|
|
630
664
|
interface AbortController {
|
|
631
|
-
/**
|
|
632
|
-
* Returns the AbortSignal object associated with this object.
|
|
633
|
-
*/
|
|
665
|
+
/** Returns the AbortSignal object associated with this object. */
|
|
634
666
|
readonly signal: AbortSignal;
|
|
635
|
-
/**
|
|
636
|
-
* 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.
|
|
637
|
-
*/
|
|
667
|
+
/** 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. */
|
|
638
668
|
abort(): void;
|
|
639
669
|
}
|
|
640
670
|
|
|
@@ -649,9 +679,7 @@ interface AbortSignalEventMap {
|
|
|
649
679
|
|
|
650
680
|
/** A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object. */
|
|
651
681
|
interface AbortSignal extends EventTarget {
|
|
652
|
-
/**
|
|
653
|
-
* Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise.
|
|
654
|
-
*/
|
|
682
|
+
/** Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise. */
|
|
655
683
|
readonly aborted: boolean;
|
|
656
684
|
onabort: ((this: AbortSignal, ev: Event) => any) | null;
|
|
657
685
|
addEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -663,6 +691,7 @@ interface AbortSignal extends EventTarget {
|
|
|
663
691
|
declare var AbortSignal: {
|
|
664
692
|
prototype: AbortSignal;
|
|
665
693
|
new(): AbortSignal;
|
|
694
|
+
// abort(): AbortSignal; - To be re-added in the future
|
|
666
695
|
};
|
|
667
696
|
|
|
668
697
|
interface AbstractWorkerEventMap {
|
|
@@ -677,14 +706,6 @@ interface AbstractWorker {
|
|
|
677
706
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
678
707
|
}
|
|
679
708
|
|
|
680
|
-
interface AesCfbParams extends Algorithm {
|
|
681
|
-
iv: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;
|
|
682
|
-
}
|
|
683
|
-
|
|
684
|
-
interface AesCmacParams extends Algorithm {
|
|
685
|
-
length: number;
|
|
686
|
-
}
|
|
687
|
-
|
|
688
709
|
interface AnimationFrameProvider {
|
|
689
710
|
cancelAnimationFrame(handle: number): void;
|
|
690
711
|
requestAnimationFrame(callback: FrameRequestCallback): number;
|
|
@@ -721,19 +742,13 @@ interface BroadcastChannelEventMap {
|
|
|
721
742
|
}
|
|
722
743
|
|
|
723
744
|
interface BroadcastChannel extends EventTarget {
|
|
724
|
-
/**
|
|
725
|
-
* Returns the channel name (as passed to the constructor).
|
|
726
|
-
*/
|
|
745
|
+
/** Returns the channel name (as passed to the constructor). */
|
|
727
746
|
readonly name: string;
|
|
728
747
|
onmessage: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;
|
|
729
748
|
onmessageerror: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;
|
|
730
|
-
/**
|
|
731
|
-
* Closes the BroadcastChannel object, opening it up to garbage collection.
|
|
732
|
-
*/
|
|
749
|
+
/** Closes the BroadcastChannel object, opening it up to garbage collection. */
|
|
733
750
|
close(): void;
|
|
734
|
-
/**
|
|
735
|
-
* Sends the given message to other BroadcastChannel objects set up for this channel. Messages can be structured objects, e.g. nested objects and arrays.
|
|
736
|
-
*/
|
|
751
|
+
/** Sends the given message to other BroadcastChannel objects set up for this channel. Messages can be structured objects, e.g. nested objects and arrays. */
|
|
737
752
|
postMessage(message: any): void;
|
|
738
753
|
addEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
739
754
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -757,7 +772,10 @@ declare var ByteLengthQueuingStrategy: {
|
|
|
757
772
|
new(init: QueuingStrategyInit): ByteLengthQueuingStrategy;
|
|
758
773
|
};
|
|
759
774
|
|
|
760
|
-
/**
|
|
775
|
+
/**
|
|
776
|
+
* Provides a storage mechanism for Request / Response object pairs that are cached, for example as part of the ServiceWorker life cycle. Note that the Cache interface is exposed to windowed scopes as well as workers. You don't have to use it in conjunction with service workers, even though it is defined in the service worker spec.
|
|
777
|
+
* Available only in secure contexts.
|
|
778
|
+
*/
|
|
761
779
|
interface Cache {
|
|
762
780
|
add(request: RequestInfo): Promise<void>;
|
|
763
781
|
addAll(requests: RequestInfo[]): Promise<void>;
|
|
@@ -773,7 +791,10 @@ declare var Cache: {
|
|
|
773
791
|
new(): Cache;
|
|
774
792
|
};
|
|
775
793
|
|
|
776
|
-
/**
|
|
794
|
+
/**
|
|
795
|
+
* The storage for Cache objects.
|
|
796
|
+
* Available only in secure contexts.
|
|
797
|
+
*/
|
|
777
798
|
interface CacheStorage {
|
|
778
799
|
delete(cacheName: string): Promise<boolean>;
|
|
779
800
|
has(cacheName: string): Promise<boolean>;
|
|
@@ -787,43 +808,6 @@ declare var CacheStorage: {
|
|
|
787
808
|
new(): CacheStorage;
|
|
788
809
|
};
|
|
789
810
|
|
|
790
|
-
interface CanvasCompositing {
|
|
791
|
-
globalAlpha: number;
|
|
792
|
-
globalCompositeOperation: string;
|
|
793
|
-
}
|
|
794
|
-
|
|
795
|
-
interface CanvasDrawImage {
|
|
796
|
-
drawImage(image: CanvasImageSource, dx: number, dy: number): void;
|
|
797
|
-
drawImage(image: CanvasImageSource, dx: number, dy: number, dw: number, dh: number): void;
|
|
798
|
-
drawImage(image: CanvasImageSource, sx: number, sy: number, sw: number, sh: number, dx: number, dy: number, dw: number, dh: number): void;
|
|
799
|
-
}
|
|
800
|
-
|
|
801
|
-
interface CanvasDrawPath {
|
|
802
|
-
beginPath(): void;
|
|
803
|
-
clip(fillRule?: CanvasFillRule): void;
|
|
804
|
-
clip(path: Path2D, fillRule?: CanvasFillRule): void;
|
|
805
|
-
fill(fillRule?: CanvasFillRule): void;
|
|
806
|
-
fill(path: Path2D, fillRule?: CanvasFillRule): void;
|
|
807
|
-
isPointInPath(x: number, y: number, fillRule?: CanvasFillRule): boolean;
|
|
808
|
-
isPointInPath(path: Path2D, x: number, y: number, fillRule?: CanvasFillRule): boolean;
|
|
809
|
-
isPointInStroke(x: number, y: number): boolean;
|
|
810
|
-
isPointInStroke(path: Path2D, x: number, y: number): boolean;
|
|
811
|
-
stroke(): void;
|
|
812
|
-
stroke(path: Path2D): void;
|
|
813
|
-
}
|
|
814
|
-
|
|
815
|
-
interface CanvasFillStrokeStyles {
|
|
816
|
-
fillStyle: string | CanvasGradient | CanvasPattern;
|
|
817
|
-
strokeStyle: string | CanvasGradient | CanvasPattern;
|
|
818
|
-
createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient;
|
|
819
|
-
createPattern(image: CanvasImageSource, repetition: string | null): CanvasPattern | null;
|
|
820
|
-
createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient;
|
|
821
|
-
}
|
|
822
|
-
|
|
823
|
-
interface CanvasFilters {
|
|
824
|
-
filter: string;
|
|
825
|
-
}
|
|
826
|
-
|
|
827
811
|
/** An opaque object describing a gradient. It is returned by the methods CanvasRenderingContext2D.createLinearGradient() or CanvasRenderingContext2D.createRadialGradient(). */
|
|
828
812
|
interface CanvasGradient {
|
|
829
813
|
/**
|
|
@@ -839,46 +823,21 @@ declare var CanvasGradient: {
|
|
|
839
823
|
new(): CanvasGradient;
|
|
840
824
|
};
|
|
841
825
|
|
|
842
|
-
interface CanvasImageData {
|
|
843
|
-
createImageData(sw: number, sh: number): ImageData;
|
|
844
|
-
createImageData(imagedata: ImageData): ImageData;
|
|
845
|
-
getImageData(sx: number, sy: number, sw: number, sh: number): ImageData;
|
|
846
|
-
putImageData(imagedata: ImageData, dx: number, dy: number): void;
|
|
847
|
-
putImageData(imagedata: ImageData, dx: number, dy: number, dirtyX: number, dirtyY: number, dirtyWidth: number, dirtyHeight: number): void;
|
|
848
|
-
}
|
|
849
|
-
|
|
850
|
-
interface CanvasImageSmoothing {
|
|
851
|
-
imageSmoothingEnabled: boolean;
|
|
852
|
-
imageSmoothingQuality: ImageSmoothingQuality;
|
|
853
|
-
}
|
|
854
|
-
|
|
855
826
|
interface CanvasPath {
|
|
856
|
-
arc(x: number, y: number, radius: number, startAngle: number, endAngle: number,
|
|
827
|
+
arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;
|
|
857
828
|
arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void;
|
|
858
829
|
bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void;
|
|
859
830
|
closePath(): void;
|
|
860
|
-
ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number,
|
|
831
|
+
ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;
|
|
861
832
|
lineTo(x: number, y: number): void;
|
|
862
833
|
moveTo(x: number, y: number): void;
|
|
863
834
|
quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;
|
|
864
835
|
rect(x: number, y: number, w: number, h: number): void;
|
|
865
836
|
}
|
|
866
837
|
|
|
867
|
-
interface CanvasPathDrawingStyles {
|
|
868
|
-
lineCap: CanvasLineCap;
|
|
869
|
-
lineDashOffset: number;
|
|
870
|
-
lineJoin: CanvasLineJoin;
|
|
871
|
-
lineWidth: number;
|
|
872
|
-
miterLimit: number;
|
|
873
|
-
getLineDash(): number[];
|
|
874
|
-
setLineDash(segments: number[]): void;
|
|
875
|
-
}
|
|
876
|
-
|
|
877
838
|
/** An opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern() method. */
|
|
878
839
|
interface CanvasPattern {
|
|
879
|
-
/**
|
|
880
|
-
* Sets the transformation matrix that will be used when rendering the pattern during a fill or stroke painting operation.
|
|
881
|
-
*/
|
|
840
|
+
/** Sets the transformation matrix that will be used when rendering the pattern during a fill or stroke painting operation. */
|
|
882
841
|
setTransform(transform?: DOMMatrix2DInit): void;
|
|
883
842
|
}
|
|
884
843
|
|
|
@@ -887,55 +846,14 @@ declare var CanvasPattern: {
|
|
|
887
846
|
new(): CanvasPattern;
|
|
888
847
|
};
|
|
889
848
|
|
|
890
|
-
interface CanvasRect {
|
|
891
|
-
clearRect(x: number, y: number, w: number, h: number): void;
|
|
892
|
-
fillRect(x: number, y: number, w: number, h: number): void;
|
|
893
|
-
strokeRect(x: number, y: number, w: number, h: number): void;
|
|
894
|
-
}
|
|
895
|
-
|
|
896
|
-
interface CanvasShadowStyles {
|
|
897
|
-
shadowBlur: number;
|
|
898
|
-
shadowColor: string;
|
|
899
|
-
shadowOffsetX: number;
|
|
900
|
-
shadowOffsetY: number;
|
|
901
|
-
}
|
|
902
|
-
|
|
903
|
-
interface CanvasState {
|
|
904
|
-
restore(): void;
|
|
905
|
-
save(): void;
|
|
906
|
-
}
|
|
907
|
-
|
|
908
|
-
interface CanvasText {
|
|
909
|
-
fillText(text: string, x: number, y: number, maxWidth?: number): void;
|
|
910
|
-
measureText(text: string): TextMetrics;
|
|
911
|
-
strokeText(text: string, x: number, y: number, maxWidth?: number): void;
|
|
912
|
-
}
|
|
913
|
-
|
|
914
|
-
interface CanvasTextDrawingStyles {
|
|
915
|
-
direction: CanvasDirection;
|
|
916
|
-
font: string;
|
|
917
|
-
textAlign: CanvasTextAlign;
|
|
918
|
-
textBaseline: CanvasTextBaseline;
|
|
919
|
-
}
|
|
920
|
-
|
|
921
|
-
interface CanvasTransform {
|
|
922
|
-
getTransform(): DOMMatrix;
|
|
923
|
-
resetTransform(): void;
|
|
924
|
-
rotate(angle: number): void;
|
|
925
|
-
scale(x: number, y: number): void;
|
|
926
|
-
setTransform(a: number, b: number, c: number, d: number, e: number, f: number): void;
|
|
927
|
-
setTransform(transform?: DOMMatrix2DInit): void;
|
|
928
|
-
transform(a: number, b: number, c: number, d: number, e: number, f: number): void;
|
|
929
|
-
translate(x: number, y: number): void;
|
|
930
|
-
}
|
|
931
|
-
|
|
932
849
|
/** The Client interface represents an executable context such as a Worker, or a SharedWorker. Window clients are represented by the more-specific WindowClient. You can get Client/WindowClient objects from methods such as Clients.matchAll() and Clients.get(). */
|
|
933
850
|
interface Client {
|
|
934
851
|
readonly frameType: FrameType;
|
|
935
852
|
readonly id: string;
|
|
936
853
|
readonly type: ClientTypes;
|
|
937
854
|
readonly url: string;
|
|
938
|
-
postMessage(message: any, transfer
|
|
855
|
+
postMessage(message: any, transfer: Transferable[]): void;
|
|
856
|
+
postMessage(message: any, options?: StructuredSerializeOptions): void;
|
|
939
857
|
}
|
|
940
858
|
|
|
941
859
|
declare var Client: {
|
|
@@ -948,7 +866,7 @@ interface Clients {
|
|
|
948
866
|
claim(): Promise<void>;
|
|
949
867
|
get(id: string): Promise<Client | undefined>;
|
|
950
868
|
matchAll<T extends ClientQueryOptions>(options?: T): Promise<ReadonlyArray<T["type"] extends "window" ? WindowClient : Client>>;
|
|
951
|
-
openWindow(url: string): Promise<WindowClient | null>;
|
|
869
|
+
openWindow(url: string | URL): Promise<WindowClient | null>;
|
|
952
870
|
}
|
|
953
871
|
|
|
954
872
|
declare var Clients: {
|
|
@@ -958,17 +876,11 @@ declare var Clients: {
|
|
|
958
876
|
|
|
959
877
|
/** 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. */
|
|
960
878
|
interface CloseEvent extends Event {
|
|
961
|
-
/**
|
|
962
|
-
* Returns the WebSocket connection close code provided by the server.
|
|
963
|
-
*/
|
|
879
|
+
/** Returns the WebSocket connection close code provided by the server. */
|
|
964
880
|
readonly code: number;
|
|
965
|
-
/**
|
|
966
|
-
* Returns the WebSocket connection close reason provided by the server.
|
|
967
|
-
*/
|
|
881
|
+
/** Returns the WebSocket connection close reason provided by the server. */
|
|
968
882
|
readonly reason: string;
|
|
969
|
-
/**
|
|
970
|
-
* Returns true if the connection closed cleanly; false otherwise.
|
|
971
|
-
*/
|
|
883
|
+
/** Returns true if the connection closed cleanly; false otherwise. */
|
|
972
884
|
readonly wasClean: boolean;
|
|
973
885
|
}
|
|
974
886
|
|
|
@@ -977,15 +889,6 @@ declare var CloseEvent: {
|
|
|
977
889
|
new(type: string, eventInitDict?: CloseEventInit): CloseEvent;
|
|
978
890
|
};
|
|
979
891
|
|
|
980
|
-
interface ConcatParams extends Algorithm {
|
|
981
|
-
algorithmId: Uint8Array;
|
|
982
|
-
hash?: string | Algorithm;
|
|
983
|
-
partyUInfo: Uint8Array;
|
|
984
|
-
partyVInfo: Uint8Array;
|
|
985
|
-
privateInfo?: Uint8Array;
|
|
986
|
-
publicInfo?: Uint8Array;
|
|
987
|
-
}
|
|
988
|
-
|
|
989
892
|
/** This Streams API interface provides a built-in byte length queuing strategy that can be used when constructing streams. */
|
|
990
893
|
interface CountQueuingStrategy extends QueuingStrategy {
|
|
991
894
|
readonly highWaterMark: number;
|
|
@@ -999,8 +902,9 @@ declare var CountQueuingStrategy: {
|
|
|
999
902
|
|
|
1000
903
|
/** Basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives. */
|
|
1001
904
|
interface Crypto {
|
|
905
|
+
/** Available only in secure contexts. */
|
|
1002
906
|
readonly subtle: SubtleCrypto;
|
|
1003
|
-
getRandomValues<T extends
|
|
907
|
+
getRandomValues<T extends ArrayBufferView | null>(array: T): T;
|
|
1004
908
|
}
|
|
1005
909
|
|
|
1006
910
|
declare var Crypto: {
|
|
@@ -1008,7 +912,10 @@ declare var Crypto: {
|
|
|
1008
912
|
new(): Crypto;
|
|
1009
913
|
};
|
|
1010
914
|
|
|
1011
|
-
/**
|
|
915
|
+
/**
|
|
916
|
+
* The CryptoKey dictionary of the Web Crypto API represents a cryptographic key.
|
|
917
|
+
* Available only in secure contexts.
|
|
918
|
+
*/
|
|
1012
919
|
interface CryptoKey {
|
|
1013
920
|
readonly algorithm: KeyAlgorithm;
|
|
1014
921
|
readonly extractable: boolean;
|
|
@@ -1022,20 +929,19 @@ declare var CryptoKey: {
|
|
|
1022
929
|
};
|
|
1023
930
|
|
|
1024
931
|
interface CustomEvent<T = any> extends Event {
|
|
1025
|
-
/**
|
|
1026
|
-
* Returns any custom data event was created with. Typically used for synthetic events.
|
|
1027
|
-
*/
|
|
932
|
+
/** Returns any custom data event was created with. Typically used for synthetic events. */
|
|
1028
933
|
readonly detail: T;
|
|
1029
|
-
|
|
934
|
+
/** @deprecated */
|
|
935
|
+
initCustomEvent(type: string, bubbles?: boolean, cancelable?: boolean, detail?: T): void;
|
|
1030
936
|
}
|
|
1031
937
|
|
|
1032
938
|
declare var CustomEvent: {
|
|
1033
939
|
prototype: CustomEvent;
|
|
1034
|
-
new<T>(
|
|
940
|
+
new<T>(type: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>;
|
|
1035
941
|
};
|
|
1036
942
|
|
|
1037
943
|
/** An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API. */
|
|
1038
|
-
interface DOMException {
|
|
944
|
+
interface DOMException extends Error {
|
|
1039
945
|
readonly code: number;
|
|
1040
946
|
readonly message: string;
|
|
1041
947
|
readonly name: string;
|
|
@@ -1270,17 +1176,11 @@ declare var DOMRectReadOnly: {
|
|
|
1270
1176
|
|
|
1271
1177
|
/** A type returned by some APIs which contains a list of DOMString (strings). */
|
|
1272
1178
|
interface DOMStringList {
|
|
1273
|
-
/**
|
|
1274
|
-
* Returns the number of strings in strings.
|
|
1275
|
-
*/
|
|
1179
|
+
/** Returns the number of strings in strings. */
|
|
1276
1180
|
readonly length: number;
|
|
1277
|
-
/**
|
|
1278
|
-
* Returns true if strings contains string, and false otherwise.
|
|
1279
|
-
*/
|
|
1181
|
+
/** Returns true if strings contains string, and false otherwise. */
|
|
1280
1182
|
contains(string: string): boolean;
|
|
1281
|
-
/**
|
|
1282
|
-
* Returns the string with index index from strings.
|
|
1283
|
-
*/
|
|
1183
|
+
/** Returns the string with index index from strings. */
|
|
1284
1184
|
item(index: number): string | null;
|
|
1285
1185
|
[index: number]: string;
|
|
1286
1186
|
}
|
|
@@ -1297,21 +1197,15 @@ interface DedicatedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
|
|
|
1297
1197
|
|
|
1298
1198
|
/** (the Worker global scope) is accessible through the self keyword. Some additional global functions, namespaces objects, and constructors, not typically associated with the worker global scope, but available on it, are listed in the JavaScript Reference. See also: Functions available to workers. */
|
|
1299
1199
|
interface DedicatedWorkerGlobalScope extends WorkerGlobalScope, AnimationFrameProvider {
|
|
1300
|
-
/**
|
|
1301
|
-
* Returns dedicatedWorkerGlobal's name, i.e. the value given to the Worker constructor. Primarily useful for debugging.
|
|
1302
|
-
*/
|
|
1200
|
+
/** Returns dedicatedWorkerGlobal's name, i.e. the value given to the Worker constructor. Primarily useful for debugging. */
|
|
1303
1201
|
readonly name: string;
|
|
1304
1202
|
onmessage: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
|
|
1305
1203
|
onmessageerror: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
|
|
1306
|
-
/**
|
|
1307
|
-
* Aborts dedicatedWorkerGlobal.
|
|
1308
|
-
*/
|
|
1204
|
+
/** Aborts dedicatedWorkerGlobal. */
|
|
1309
1205
|
close(): void;
|
|
1310
|
-
/**
|
|
1311
|
-
* Clones message and transmits it to the Worker object associated with dedicatedWorkerGlobal. transfer can be passed as a list of objects that are to be transferred rather than cloned.
|
|
1312
|
-
*/
|
|
1206
|
+
/** Clones message and transmits it to the Worker object associated with dedicatedWorkerGlobal. transfer can be passed as a list of objects that are to be transferred rather than cloned. */
|
|
1313
1207
|
postMessage(message: any, transfer: Transferable[]): void;
|
|
1314
|
-
postMessage(message: any, options?:
|
|
1208
|
+
postMessage(message: any, options?: StructuredSerializeOptions): void;
|
|
1315
1209
|
addEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1316
1210
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1317
1211
|
removeEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -1323,28 +1217,22 @@ declare var DedicatedWorkerGlobalScope: {
|
|
|
1323
1217
|
new(): DedicatedWorkerGlobalScope;
|
|
1324
1218
|
};
|
|
1325
1219
|
|
|
1326
|
-
interface
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
}
|
|
1330
|
-
|
|
1331
|
-
interface DhKeyAlgorithm extends KeyAlgorithm {
|
|
1332
|
-
generator: Uint8Array;
|
|
1333
|
-
prime: Uint8Array;
|
|
1220
|
+
interface EXT_blend_minmax {
|
|
1221
|
+
readonly MAX_EXT: GLenum;
|
|
1222
|
+
readonly MIN_EXT: GLenum;
|
|
1334
1223
|
}
|
|
1335
1224
|
|
|
1336
|
-
interface
|
|
1337
|
-
public: CryptoKey;
|
|
1225
|
+
interface EXT_color_buffer_float {
|
|
1338
1226
|
}
|
|
1339
1227
|
|
|
1340
|
-
interface
|
|
1341
|
-
|
|
1342
|
-
|
|
1228
|
+
interface EXT_color_buffer_half_float {
|
|
1229
|
+
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: GLenum;
|
|
1230
|
+
readonly RGB16F_EXT: GLenum;
|
|
1231
|
+
readonly RGBA16F_EXT: GLenum;
|
|
1232
|
+
readonly UNSIGNED_NORMALIZED_EXT: GLenum;
|
|
1343
1233
|
}
|
|
1344
1234
|
|
|
1345
|
-
interface
|
|
1346
|
-
readonly MAX_EXT: GLenum;
|
|
1347
|
-
readonly MIN_EXT: GLenum;
|
|
1235
|
+
interface EXT_float_blend {
|
|
1348
1236
|
}
|
|
1349
1237
|
|
|
1350
1238
|
/** The EXT_frag_depth extension is part of the WebGL API and enables to set a depth value of a fragment from within the fragment shader. */
|
|
@@ -1361,6 +1249,13 @@ interface EXT_sRGB {
|
|
|
1361
1249
|
interface EXT_shader_texture_lod {
|
|
1362
1250
|
}
|
|
1363
1251
|
|
|
1252
|
+
interface EXT_texture_compression_rgtc {
|
|
1253
|
+
readonly COMPRESSED_RED_GREEN_RGTC2_EXT: GLenum;
|
|
1254
|
+
readonly COMPRESSED_RED_RGTC1_EXT: GLenum;
|
|
1255
|
+
readonly COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT: GLenum;
|
|
1256
|
+
readonly COMPRESSED_SIGNED_RED_RGTC1_EXT: GLenum;
|
|
1257
|
+
}
|
|
1258
|
+
|
|
1364
1259
|
/** The EXT_texture_filter_anisotropic extension is part of the WebGL API and exposes two constants for anisotropic filtering (AF). */
|
|
1365
1260
|
interface EXT_texture_filter_anisotropic {
|
|
1366
1261
|
readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: GLenum;
|
|
@@ -1383,66 +1278,40 @@ declare var ErrorEvent: {
|
|
|
1383
1278
|
|
|
1384
1279
|
/** An event which takes place in the DOM. */
|
|
1385
1280
|
interface Event {
|
|
1386
|
-
/**
|
|
1387
|
-
* Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise.
|
|
1388
|
-
*/
|
|
1281
|
+
/** Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise. */
|
|
1389
1282
|
readonly bubbles: boolean;
|
|
1390
1283
|
cancelBubble: boolean;
|
|
1391
|
-
/**
|
|
1392
|
-
* Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method.
|
|
1393
|
-
*/
|
|
1284
|
+
/** Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method. */
|
|
1394
1285
|
readonly cancelable: boolean;
|
|
1395
|
-
/**
|
|
1396
|
-
* Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise.
|
|
1397
|
-
*/
|
|
1286
|
+
/** Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise. */
|
|
1398
1287
|
readonly composed: boolean;
|
|
1399
|
-
/**
|
|
1400
|
-
* Returns the object whose event listener's callback is currently being invoked.
|
|
1401
|
-
*/
|
|
1288
|
+
/** Returns the object whose event listener's callback is currently being invoked. */
|
|
1402
1289
|
readonly currentTarget: EventTarget | null;
|
|
1403
|
-
/**
|
|
1404
|
-
* Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise.
|
|
1405
|
-
*/
|
|
1290
|
+
/** Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise. */
|
|
1406
1291
|
readonly defaultPrevented: boolean;
|
|
1407
|
-
/**
|
|
1408
|
-
* Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE.
|
|
1409
|
-
*/
|
|
1292
|
+
/** Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE. */
|
|
1410
1293
|
readonly eventPhase: number;
|
|
1411
|
-
/**
|
|
1412
|
-
* Returns true if event was dispatched by the user agent, and false otherwise.
|
|
1413
|
-
*/
|
|
1294
|
+
/** Returns true if event was dispatched by the user agent, and false otherwise. */
|
|
1414
1295
|
readonly isTrusted: boolean;
|
|
1296
|
+
/** @deprecated */
|
|
1415
1297
|
returnValue: boolean;
|
|
1416
1298
|
/** @deprecated */
|
|
1417
1299
|
readonly srcElement: EventTarget | null;
|
|
1418
|
-
/**
|
|
1419
|
-
* Returns the object to which event is dispatched (its target).
|
|
1420
|
-
*/
|
|
1300
|
+
/** Returns the object to which event is dispatched (its target). */
|
|
1421
1301
|
readonly target: EventTarget | null;
|
|
1422
|
-
/**
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
readonly timeStamp: number;
|
|
1426
|
-
/**
|
|
1427
|
-
* Returns the type of event, e.g. "click", "hashchange", or "submit".
|
|
1428
|
-
*/
|
|
1302
|
+
/** Returns the event's timestamp as the number of milliseconds measured relative to the time origin. */
|
|
1303
|
+
readonly timeStamp: DOMHighResTimeStamp;
|
|
1304
|
+
/** Returns the type of event, e.g. "click", "hashchange", or "submit". */
|
|
1429
1305
|
readonly type: string;
|
|
1430
|
-
/**
|
|
1431
|
-
* Returns the invocation target objects of event's path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root's mode is "closed" that are not reachable from event's currentTarget.
|
|
1432
|
-
*/
|
|
1306
|
+
/** Returns the invocation target objects of event's path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root's mode is "closed" that are not reachable from event's currentTarget. */
|
|
1433
1307
|
composedPath(): EventTarget[];
|
|
1308
|
+
/** @deprecated */
|
|
1434
1309
|
initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void;
|
|
1435
|
-
/**
|
|
1436
|
-
* If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled.
|
|
1437
|
-
*/
|
|
1310
|
+
/** If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled. */
|
|
1438
1311
|
preventDefault(): void;
|
|
1439
|
-
/**
|
|
1440
|
-
* Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects.
|
|
1441
|
-
*/
|
|
1312
|
+
/** Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects. */
|
|
1442
1313
|
stopImmediatePropagation(): void;
|
|
1443
|
-
/**
|
|
1444
|
-
* When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object.
|
|
1445
|
-
*/
|
|
1314
|
+
/** When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object. */
|
|
1446
1315
|
stopPropagation(): void;
|
|
1447
1316
|
readonly AT_TARGET: number;
|
|
1448
1317
|
readonly BUBBLING_PHASE: number;
|
|
@@ -1459,8 +1328,12 @@ declare var Event: {
|
|
|
1459
1328
|
readonly NONE: number;
|
|
1460
1329
|
};
|
|
1461
1330
|
|
|
1331
|
+
interface EventListener {
|
|
1332
|
+
(evt: Event): void;
|
|
1333
|
+
}
|
|
1334
|
+
|
|
1462
1335
|
interface EventListenerObject {
|
|
1463
|
-
handleEvent(
|
|
1336
|
+
handleEvent(object: Event): void;
|
|
1464
1337
|
}
|
|
1465
1338
|
|
|
1466
1339
|
interface EventSourceEventMap {
|
|
@@ -1473,21 +1346,13 @@ interface EventSource extends EventTarget {
|
|
|
1473
1346
|
onerror: ((this: EventSource, ev: Event) => any) | null;
|
|
1474
1347
|
onmessage: ((this: EventSource, ev: MessageEvent) => any) | null;
|
|
1475
1348
|
onopen: ((this: EventSource, ev: Event) => any) | null;
|
|
1476
|
-
/**
|
|
1477
|
-
* Returns the state of this EventSource object's connection. It can have the values described below.
|
|
1478
|
-
*/
|
|
1349
|
+
/** Returns the state of this EventSource object's connection. It can have the values described below. */
|
|
1479
1350
|
readonly readyState: number;
|
|
1480
|
-
/**
|
|
1481
|
-
* Returns the URL providing the event stream.
|
|
1482
|
-
*/
|
|
1351
|
+
/** Returns the URL providing the event stream. */
|
|
1483
1352
|
readonly url: string;
|
|
1484
|
-
/**
|
|
1485
|
-
* Returns true if the credentials mode for connection requests to the URL providing the event stream is set to "include", and false otherwise.
|
|
1486
|
-
*/
|
|
1353
|
+
/** Returns true if the credentials mode for connection requests to the URL providing the event stream is set to "include", and false otherwise. */
|
|
1487
1354
|
readonly withCredentials: boolean;
|
|
1488
|
-
/**
|
|
1489
|
-
* Aborts any instances of the fetch algorithm started for this EventSource object, and sets the readyState attribute to CLOSED.
|
|
1490
|
-
*/
|
|
1355
|
+
/** Aborts any instances of the fetch algorithm started for this EventSource object, and sets the readyState attribute to CLOSED. */
|
|
1491
1356
|
close(): void;
|
|
1492
1357
|
readonly CLOSED: number;
|
|
1493
1358
|
readonly CONNECTING: number;
|
|
@@ -1500,7 +1365,7 @@ interface EventSource extends EventTarget {
|
|
|
1500
1365
|
|
|
1501
1366
|
declare var EventSource: {
|
|
1502
1367
|
prototype: EventSource;
|
|
1503
|
-
new(url: string, eventSourceInitDict?: EventSourceInit): EventSource;
|
|
1368
|
+
new(url: string | URL, eventSourceInitDict?: EventSourceInit): EventSource;
|
|
1504
1369
|
readonly CLOSED: number;
|
|
1505
1370
|
readonly CONNECTING: number;
|
|
1506
1371
|
readonly OPEN: number;
|
|
@@ -1519,16 +1384,14 @@ interface EventTarget {
|
|
|
1519
1384
|
*
|
|
1520
1385
|
* When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
|
|
1521
1386
|
*
|
|
1387
|
+
* If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.
|
|
1388
|
+
*
|
|
1522
1389
|
* The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
|
|
1523
1390
|
*/
|
|
1524
|
-
addEventListener(type: string,
|
|
1525
|
-
/**
|
|
1526
|
-
* Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
|
|
1527
|
-
*/
|
|
1391
|
+
addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void;
|
|
1392
|
+
/** Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. */
|
|
1528
1393
|
dispatchEvent(event: Event): boolean;
|
|
1529
|
-
/**
|
|
1530
|
-
* Removes the event listener in target's event listener list with the same type, callback, and options.
|
|
1531
|
-
*/
|
|
1394
|
+
/** Removes the event listener in target's event listener list with the same type, callback, and options. */
|
|
1532
1395
|
removeEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void;
|
|
1533
1396
|
}
|
|
1534
1397
|
|
|
@@ -1564,10 +1427,10 @@ declare var ExtendableMessageEvent: {
|
|
|
1564
1427
|
/** This is the event type for fetch events dispatched on the service worker global scope. It contains information about the fetch, including the request and how the receiver will treat the response. It provides the event.respondWith() method, which allows us to provide a response to this fetch. */
|
|
1565
1428
|
interface FetchEvent extends ExtendableEvent {
|
|
1566
1429
|
readonly clientId: string;
|
|
1567
|
-
readonly
|
|
1430
|
+
readonly handled: Promise<undefined>;
|
|
1568
1431
|
readonly request: Request;
|
|
1569
1432
|
readonly resultingClientId: string;
|
|
1570
|
-
respondWith(r: Response |
|
|
1433
|
+
respondWith(r: Response | PromiseLike<Response>): void;
|
|
1571
1434
|
}
|
|
1572
1435
|
|
|
1573
1436
|
declare var FetchEvent: {
|
|
@@ -1579,6 +1442,7 @@ declare var FetchEvent: {
|
|
|
1579
1442
|
interface File extends Blob {
|
|
1580
1443
|
readonly lastModified: number;
|
|
1581
1444
|
readonly name: string;
|
|
1445
|
+
readonly webkitRelativePath: string;
|
|
1582
1446
|
}
|
|
1583
1447
|
|
|
1584
1448
|
declare var File: {
|
|
@@ -1643,6 +1507,7 @@ declare var FileReader: {
|
|
|
1643
1507
|
/** Allows to read File or Blob objects in a synchronous way. */
|
|
1644
1508
|
interface FileReaderSync {
|
|
1645
1509
|
readAsArrayBuffer(blob: Blob): ArrayBuffer;
|
|
1510
|
+
/** @deprecated */
|
|
1646
1511
|
readAsBinaryString(blob: Blob): string;
|
|
1647
1512
|
readAsDataURL(blob: Blob): string;
|
|
1648
1513
|
readAsText(blob: Blob, encoding?: string): string;
|
|
@@ -1653,6 +1518,68 @@ declare var FileReaderSync: {
|
|
|
1653
1518
|
new(): FileReaderSync;
|
|
1654
1519
|
};
|
|
1655
1520
|
|
|
1521
|
+
interface FontFace {
|
|
1522
|
+
ascentOverride: string;
|
|
1523
|
+
descentOverride: string;
|
|
1524
|
+
display: string;
|
|
1525
|
+
family: string;
|
|
1526
|
+
featureSettings: string;
|
|
1527
|
+
lineGapOverride: string;
|
|
1528
|
+
readonly loaded: Promise<FontFace>;
|
|
1529
|
+
readonly status: FontFaceLoadStatus;
|
|
1530
|
+
stretch: string;
|
|
1531
|
+
style: string;
|
|
1532
|
+
unicodeRange: string;
|
|
1533
|
+
variant: string;
|
|
1534
|
+
variationSettings: string;
|
|
1535
|
+
weight: string;
|
|
1536
|
+
load(): Promise<FontFace>;
|
|
1537
|
+
}
|
|
1538
|
+
|
|
1539
|
+
declare var FontFace: {
|
|
1540
|
+
prototype: FontFace;
|
|
1541
|
+
new(family: string, source: string | BinaryData, descriptors?: FontFaceDescriptors): FontFace;
|
|
1542
|
+
};
|
|
1543
|
+
|
|
1544
|
+
interface FontFaceSetEventMap {
|
|
1545
|
+
"loading": Event;
|
|
1546
|
+
"loadingdone": Event;
|
|
1547
|
+
"loadingerror": Event;
|
|
1548
|
+
}
|
|
1549
|
+
|
|
1550
|
+
interface FontFaceSet extends EventTarget {
|
|
1551
|
+
onloading: ((this: FontFaceSet, ev: Event) => any) | null;
|
|
1552
|
+
onloadingdone: ((this: FontFaceSet, ev: Event) => any) | null;
|
|
1553
|
+
onloadingerror: ((this: FontFaceSet, ev: Event) => any) | null;
|
|
1554
|
+
readonly ready: Promise<FontFaceSet>;
|
|
1555
|
+
readonly status: FontFaceSetLoadStatus;
|
|
1556
|
+
check(font: string, text?: string): boolean;
|
|
1557
|
+
load(font: string, text?: string): Promise<FontFace[]>;
|
|
1558
|
+
forEach(callbackfn: (value: FontFace, key: FontFace, parent: FontFaceSet) => void, thisArg?: any): void;
|
|
1559
|
+
addEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1560
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1561
|
+
removeEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1562
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1563
|
+
}
|
|
1564
|
+
|
|
1565
|
+
declare var FontFaceSet: {
|
|
1566
|
+
prototype: FontFaceSet;
|
|
1567
|
+
new(initialFaces: FontFace[]): FontFaceSet;
|
|
1568
|
+
};
|
|
1569
|
+
|
|
1570
|
+
interface FontFaceSetLoadEvent extends Event {
|
|
1571
|
+
readonly fontfaces: ReadonlyArray<FontFace>;
|
|
1572
|
+
}
|
|
1573
|
+
|
|
1574
|
+
declare var FontFaceSetLoadEvent: {
|
|
1575
|
+
prototype: FontFaceSetLoadEvent;
|
|
1576
|
+
new(type: string, eventInitDict?: FontFaceSetLoadEventInit): FontFaceSetLoadEvent;
|
|
1577
|
+
};
|
|
1578
|
+
|
|
1579
|
+
interface FontFaceSource {
|
|
1580
|
+
readonly fonts: FontFaceSet;
|
|
1581
|
+
}
|
|
1582
|
+
|
|
1656
1583
|
/** Provides a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using the XMLHttpRequest.send() method. It uses the same format a form would use if the encoding type were set to "multipart/form-data". */
|
|
1657
1584
|
interface FormData {
|
|
1658
1585
|
append(name: string, value: string | Blob, fileName?: string): void;
|
|
@@ -1689,38 +1616,22 @@ declare var Headers: {
|
|
|
1689
1616
|
new(init?: HeadersInit): Headers;
|
|
1690
1617
|
};
|
|
1691
1618
|
|
|
1692
|
-
interface IDBArrayKey extends Array<IDBValidKey> {
|
|
1693
|
-
}
|
|
1694
|
-
|
|
1695
1619
|
/** This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. */
|
|
1696
1620
|
interface IDBCursor {
|
|
1697
|
-
/**
|
|
1698
|
-
* Returns the direction ("next", "nextunique", "prev" or "prevunique") of the cursor.
|
|
1699
|
-
*/
|
|
1621
|
+
/** Returns the direction ("next", "nextunique", "prev" or "prevunique") of the cursor. */
|
|
1700
1622
|
readonly direction: IDBCursorDirection;
|
|
1701
|
-
/**
|
|
1702
|
-
* Returns the key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished.
|
|
1703
|
-
*/
|
|
1623
|
+
/** Returns the key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished. */
|
|
1704
1624
|
readonly key: IDBValidKey;
|
|
1705
|
-
/**
|
|
1706
|
-
* Returns the effective key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished.
|
|
1707
|
-
*/
|
|
1625
|
+
/** Returns the effective key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished. */
|
|
1708
1626
|
readonly primaryKey: IDBValidKey;
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
*/
|
|
1627
|
+
readonly request: IDBRequest;
|
|
1628
|
+
/** Returns the IDBObjectStore or IDBIndex the cursor was opened from. */
|
|
1712
1629
|
readonly source: IDBObjectStore | IDBIndex;
|
|
1713
|
-
/**
|
|
1714
|
-
* Advances the cursor through the next count records in range.
|
|
1715
|
-
*/
|
|
1630
|
+
/** Advances the cursor through the next count records in range. */
|
|
1716
1631
|
advance(count: number): void;
|
|
1717
|
-
/**
|
|
1718
|
-
* Advances the cursor to the next record in range.
|
|
1719
|
-
*/
|
|
1632
|
+
/** Advances the cursor to the next record in range. */
|
|
1720
1633
|
continue(key?: IDBValidKey): void;
|
|
1721
|
-
/**
|
|
1722
|
-
* Advances the cursor to the next record in range matching or after key and primaryKey. Throws an "InvalidAccessError" DOMException if the source is not an index.
|
|
1723
|
-
*/
|
|
1634
|
+
/** Advances the cursor to the next record in range matching or after key and primaryKey. Throws an "InvalidAccessError" DOMException if the source is not an index. */
|
|
1724
1635
|
continuePrimaryKey(key: IDBValidKey, primaryKey: IDBValidKey): void;
|
|
1725
1636
|
/**
|
|
1726
1637
|
* Delete the record pointed at by the cursor with a new value.
|
|
@@ -1745,9 +1656,7 @@ declare var IDBCursor: {
|
|
|
1745
1656
|
|
|
1746
1657
|
/** This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. It is the same as the IDBCursor, except that it includes the value property. */
|
|
1747
1658
|
interface IDBCursorWithValue extends IDBCursor {
|
|
1748
|
-
/**
|
|
1749
|
-
* Returns the cursor's current value.
|
|
1750
|
-
*/
|
|
1659
|
+
/** Returns the cursor's current value. */
|
|
1751
1660
|
readonly value: any;
|
|
1752
1661
|
}
|
|
1753
1662
|
|
|
@@ -1765,25 +1674,17 @@ interface IDBDatabaseEventMap {
|
|
|
1765
1674
|
|
|
1766
1675
|
/** This IndexedDB API interface provides a connection to a database; you can use an IDBDatabase object to open a transaction on your database then create, manipulate, and delete objects (data) in that database. The interface provides the only way to get and manage versions of the database. */
|
|
1767
1676
|
interface IDBDatabase extends EventTarget {
|
|
1768
|
-
/**
|
|
1769
|
-
* Returns the name of the database.
|
|
1770
|
-
*/
|
|
1677
|
+
/** Returns the name of the database. */
|
|
1771
1678
|
readonly name: string;
|
|
1772
|
-
/**
|
|
1773
|
-
* Returns a list of the names of object stores in the database.
|
|
1774
|
-
*/
|
|
1679
|
+
/** Returns a list of the names of object stores in the database. */
|
|
1775
1680
|
readonly objectStoreNames: DOMStringList;
|
|
1776
1681
|
onabort: ((this: IDBDatabase, ev: Event) => any) | null;
|
|
1777
1682
|
onclose: ((this: IDBDatabase, ev: Event) => any) | null;
|
|
1778
1683
|
onerror: ((this: IDBDatabase, ev: Event) => any) | null;
|
|
1779
1684
|
onversionchange: ((this: IDBDatabase, ev: IDBVersionChangeEvent) => any) | null;
|
|
1780
|
-
/**
|
|
1781
|
-
* Returns the version of the database.
|
|
1782
|
-
*/
|
|
1685
|
+
/** Returns the version of the database. */
|
|
1783
1686
|
readonly version: number;
|
|
1784
|
-
/**
|
|
1785
|
-
* Closes the connection once all running transactions have finished.
|
|
1786
|
-
*/
|
|
1687
|
+
/** Closes the connection once all running transactions have finished. */
|
|
1787
1688
|
close(): void;
|
|
1788
1689
|
/**
|
|
1789
1690
|
* Creates a new object store with the given name and options and returns a new IDBObjectStore.
|
|
@@ -1797,9 +1698,7 @@ interface IDBDatabase extends EventTarget {
|
|
|
1797
1698
|
* Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.
|
|
1798
1699
|
*/
|
|
1799
1700
|
deleteObjectStore(name: string): void;
|
|
1800
|
-
/**
|
|
1801
|
-
* Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names.
|
|
1802
|
-
*/
|
|
1701
|
+
/** Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names. */
|
|
1803
1702
|
transaction(storeNames: string | string[], mode?: IDBTransactionMode): IDBTransaction;
|
|
1804
1703
|
addEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1805
1704
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -1820,13 +1719,10 @@ interface IDBFactory {
|
|
|
1820
1719
|
* Throws a "DataError" DOMException if either input is not a valid key.
|
|
1821
1720
|
*/
|
|
1822
1721
|
cmp(first: any, second: any): number;
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
*/
|
|
1722
|
+
databases(): Promise<IDBDatabaseInfo[]>;
|
|
1723
|
+
/** Attempts to delete the named database. If the database already exists and there are open connections that don't close in response to a versionchange event, the request will be blocked until all they close. If the request is successful request's result will be null. */
|
|
1826
1724
|
deleteDatabase(name: string): IDBOpenDBRequest;
|
|
1827
|
-
/**
|
|
1828
|
-
* Attempts to open a connection to the named database with the current version, or 1 if it does not already exist. If the request is successful request's result will be the connection.
|
|
1829
|
-
*/
|
|
1725
|
+
/** Attempts to open a connection to the named database with the current version, or 1 if it does not already exist. If the request is successful request's result will be the connection. */
|
|
1830
1726
|
open(name: string, version?: number): IDBOpenDBRequest;
|
|
1831
1727
|
}
|
|
1832
1728
|
|
|
@@ -1839,13 +1735,9 @@ declare var IDBFactory: {
|
|
|
1839
1735
|
interface IDBIndex {
|
|
1840
1736
|
readonly keyPath: string | string[];
|
|
1841
1737
|
readonly multiEntry: boolean;
|
|
1842
|
-
/**
|
|
1843
|
-
* Returns the name of the index.
|
|
1844
|
-
*/
|
|
1738
|
+
/** Returns the name of the index. */
|
|
1845
1739
|
name: string;
|
|
1846
|
-
/**
|
|
1847
|
-
* Returns the IDBObjectStore the index belongs to.
|
|
1848
|
-
*/
|
|
1740
|
+
/** Returns the IDBObjectStore the index belongs to. */
|
|
1849
1741
|
readonly objectStore: IDBObjectStore;
|
|
1850
1742
|
readonly unique: boolean;
|
|
1851
1743
|
/**
|
|
@@ -1853,13 +1745,13 @@ interface IDBIndex {
|
|
|
1853
1745
|
*
|
|
1854
1746
|
* If successful, request's result will be the count.
|
|
1855
1747
|
*/
|
|
1856
|
-
count(
|
|
1748
|
+
count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;
|
|
1857
1749
|
/**
|
|
1858
1750
|
* Retrieves the value of the first record matching the given key or key range in query.
|
|
1859
1751
|
*
|
|
1860
1752
|
* If successful, request's result will be the value, or undefined if there was no matching record.
|
|
1861
1753
|
*/
|
|
1862
|
-
get(
|
|
1754
|
+
get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;
|
|
1863
1755
|
/**
|
|
1864
1756
|
* Retrieves the values of the records matching the given key or key range in query (up to count if given).
|
|
1865
1757
|
*
|
|
@@ -1877,7 +1769,7 @@ interface IDBIndex {
|
|
|
1877
1769
|
*
|
|
1878
1770
|
* If successful, request's result will be the key, or undefined if there was no matching record.
|
|
1879
1771
|
*/
|
|
1880
|
-
getKey(
|
|
1772
|
+
getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;
|
|
1881
1773
|
/**
|
|
1882
1774
|
* Opens a cursor over the records matching query, ordered by direction. If query is null, all records in index are matched.
|
|
1883
1775
|
*
|
|
@@ -1899,70 +1791,42 @@ declare var IDBIndex: {
|
|
|
1899
1791
|
|
|
1900
1792
|
/** A key range can be a single value or a range with upper and lower bounds or endpoints. If the key range has both upper and lower bounds, then it is bounded; if it has no bounds, it is unbounded. A bounded key range can either be open (the endpoints are excluded) or closed (the endpoints are included). To retrieve all keys within a certain range, you can use the following code constructs: */
|
|
1901
1793
|
interface IDBKeyRange {
|
|
1902
|
-
/**
|
|
1903
|
-
* Returns lower bound, or undefined if none.
|
|
1904
|
-
*/
|
|
1794
|
+
/** Returns lower bound, or undefined if none. */
|
|
1905
1795
|
readonly lower: any;
|
|
1906
|
-
/**
|
|
1907
|
-
* Returns true if the lower open flag is set, and false otherwise.
|
|
1908
|
-
*/
|
|
1796
|
+
/** Returns true if the lower open flag is set, and false otherwise. */
|
|
1909
1797
|
readonly lowerOpen: boolean;
|
|
1910
|
-
/**
|
|
1911
|
-
* Returns upper bound, or undefined if none.
|
|
1912
|
-
*/
|
|
1798
|
+
/** Returns upper bound, or undefined if none. */
|
|
1913
1799
|
readonly upper: any;
|
|
1914
|
-
/**
|
|
1915
|
-
* Returns true if the upper open flag is set, and false otherwise.
|
|
1916
|
-
*/
|
|
1800
|
+
/** Returns true if the upper open flag is set, and false otherwise. */
|
|
1917
1801
|
readonly upperOpen: boolean;
|
|
1918
|
-
/**
|
|
1919
|
-
* Returns true if key is included in the range, and false otherwise.
|
|
1920
|
-
*/
|
|
1802
|
+
/** Returns true if key is included in the range, and false otherwise. */
|
|
1921
1803
|
includes(key: any): boolean;
|
|
1922
1804
|
}
|
|
1923
1805
|
|
|
1924
1806
|
declare var IDBKeyRange: {
|
|
1925
1807
|
prototype: IDBKeyRange;
|
|
1926
1808
|
new(): IDBKeyRange;
|
|
1927
|
-
/**
|
|
1928
|
-
* 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.
|
|
1929
|
-
*/
|
|
1809
|
+
/** 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. */
|
|
1930
1810
|
bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange;
|
|
1931
|
-
/**
|
|
1932
|
-
* Returns a new IDBKeyRange starting at key with no upper bound. If open is true, key is not included in the range.
|
|
1933
|
-
*/
|
|
1811
|
+
/** Returns a new IDBKeyRange starting at key with no upper bound. If open is true, key is not included in the range. */
|
|
1934
1812
|
lowerBound(lower: any, open?: boolean): IDBKeyRange;
|
|
1935
|
-
/**
|
|
1936
|
-
* Returns a new IDBKeyRange spanning only key.
|
|
1937
|
-
*/
|
|
1813
|
+
/** Returns a new IDBKeyRange spanning only key. */
|
|
1938
1814
|
only(value: any): IDBKeyRange;
|
|
1939
|
-
/**
|
|
1940
|
-
* Returns a new IDBKeyRange with no lower bound and ending at key. If open is true, key is not included in the range.
|
|
1941
|
-
*/
|
|
1815
|
+
/** Returns a new IDBKeyRange with no lower bound and ending at key. If open is true, key is not included in the range. */
|
|
1942
1816
|
upperBound(upper: any, open?: boolean): IDBKeyRange;
|
|
1943
1817
|
};
|
|
1944
1818
|
|
|
1945
1819
|
/** This example shows a variety of different uses of object stores, from updating the data structure with IDBObjectStore.createIndex inside an onupgradeneeded function, to adding a new item to our object store with IDBObjectStore.add. For a full working example, see our To-do Notifications app (view example live.) */
|
|
1946
1820
|
interface IDBObjectStore {
|
|
1947
|
-
/**
|
|
1948
|
-
* Returns true if the store has a key generator, and false otherwise.
|
|
1949
|
-
*/
|
|
1821
|
+
/** Returns true if the store has a key generator, and false otherwise. */
|
|
1950
1822
|
readonly autoIncrement: boolean;
|
|
1951
|
-
/**
|
|
1952
|
-
* Returns a list of the names of indexes in the store.
|
|
1953
|
-
*/
|
|
1823
|
+
/** Returns a list of the names of indexes in the store. */
|
|
1954
1824
|
readonly indexNames: DOMStringList;
|
|
1955
|
-
/**
|
|
1956
|
-
* Returns the key path of the store, or null if none.
|
|
1957
|
-
*/
|
|
1825
|
+
/** Returns the key path of the store, or null if none. */
|
|
1958
1826
|
readonly keyPath: string | string[];
|
|
1959
|
-
/**
|
|
1960
|
-
* Returns the name of the store.
|
|
1961
|
-
*/
|
|
1827
|
+
/** Returns the name of the store. */
|
|
1962
1828
|
name: string;
|
|
1963
|
-
/**
|
|
1964
|
-
* Returns the associated transaction.
|
|
1965
|
-
*/
|
|
1829
|
+
/** Returns the associated transaction. */
|
|
1966
1830
|
readonly transaction: IDBTransaction;
|
|
1967
1831
|
/**
|
|
1968
1832
|
* Adds or updates a record in store with the given value and key.
|
|
@@ -1985,7 +1849,7 @@ interface IDBObjectStore {
|
|
|
1985
1849
|
*
|
|
1986
1850
|
* If successful, request's result will be the count.
|
|
1987
1851
|
*/
|
|
1988
|
-
count(
|
|
1852
|
+
count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;
|
|
1989
1853
|
/**
|
|
1990
1854
|
* Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException.
|
|
1991
1855
|
*
|
|
@@ -1997,7 +1861,7 @@ interface IDBObjectStore {
|
|
|
1997
1861
|
*
|
|
1998
1862
|
* If successful, request's result will be undefined.
|
|
1999
1863
|
*/
|
|
2000
|
-
delete(
|
|
1864
|
+
delete(query: IDBValidKey | IDBKeyRange): IDBRequest<undefined>;
|
|
2001
1865
|
/**
|
|
2002
1866
|
* Deletes the index in store with the given name.
|
|
2003
1867
|
*
|
|
@@ -2009,7 +1873,7 @@ interface IDBObjectStore {
|
|
|
2009
1873
|
*
|
|
2010
1874
|
* If successful, request's result will be the value, or undefined if there was no matching record.
|
|
2011
1875
|
*/
|
|
2012
|
-
get(query: IDBValidKey | IDBKeyRange): IDBRequest<any
|
|
1876
|
+
get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;
|
|
2013
1877
|
/**
|
|
2014
1878
|
* Retrieves the values of the records matching the given key or key range in query (up to count if given).
|
|
2015
1879
|
*
|
|
@@ -2085,27 +1949,17 @@ interface IDBRequestEventMap {
|
|
|
2085
1949
|
|
|
2086
1950
|
/** The request object does not initially contain any information about the result of the operation, but once information becomes available, an event is fired on the request, and the information becomes available through the properties of the IDBRequest instance. */
|
|
2087
1951
|
interface IDBRequest<T = any> extends EventTarget {
|
|
2088
|
-
/**
|
|
2089
|
-
* When a request is completed, returns the error (a DOMException), or null if the request succeeded. Throws a "InvalidStateError" DOMException if the request is still pending.
|
|
2090
|
-
*/
|
|
1952
|
+
/** When a request is completed, returns the error (a DOMException), or null if the request succeeded. Throws a "InvalidStateError" DOMException if the request is still pending. */
|
|
2091
1953
|
readonly error: DOMException | null;
|
|
2092
1954
|
onerror: ((this: IDBRequest<T>, ev: Event) => any) | null;
|
|
2093
1955
|
onsuccess: ((this: IDBRequest<T>, ev: Event) => any) | null;
|
|
2094
|
-
/**
|
|
2095
|
-
* Returns "pending" until a request is complete, then returns "done".
|
|
2096
|
-
*/
|
|
1956
|
+
/** Returns "pending" until a request is complete, then returns "done". */
|
|
2097
1957
|
readonly readyState: IDBRequestReadyState;
|
|
2098
|
-
/**
|
|
2099
|
-
* When a request is completed, returns the result, or undefined if the request failed. Throws a "InvalidStateError" DOMException if the request is still pending.
|
|
2100
|
-
*/
|
|
1958
|
+
/** When a request is completed, returns the result, or undefined if the request failed. Throws a "InvalidStateError" DOMException if the request is still pending. */
|
|
2101
1959
|
readonly result: T;
|
|
2102
|
-
/**
|
|
2103
|
-
* Returns the IDBObjectStore, IDBIndex, or IDBCursor the request was made against, or null if is was an open request.
|
|
2104
|
-
*/
|
|
1960
|
+
/** Returns the IDBObjectStore, IDBIndex, or IDBCursor the request was made against, or null if is was an open request. */
|
|
2105
1961
|
readonly source: IDBObjectStore | IDBIndex | IDBCursor;
|
|
2106
|
-
/**
|
|
2107
|
-
* Returns the IDBTransaction the request was made within. If this as an open request, then it returns an upgrade transaction while it is running, or null otherwise.
|
|
2108
|
-
*/
|
|
1962
|
+
/** Returns the IDBTransaction the request was made within. If this as an open request, then it returns an upgrade transaction while it is running, or null otherwise. */
|
|
2109
1963
|
readonly transaction: IDBTransaction | null;
|
|
2110
1964
|
addEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2111
1965
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -2125,32 +1979,21 @@ interface IDBTransactionEventMap {
|
|
|
2125
1979
|
}
|
|
2126
1980
|
|
|
2127
1981
|
interface IDBTransaction extends EventTarget {
|
|
2128
|
-
/**
|
|
2129
|
-
* Returns the transaction's connection.
|
|
2130
|
-
*/
|
|
1982
|
+
/** Returns the transaction's connection. */
|
|
2131
1983
|
readonly db: IDBDatabase;
|
|
2132
|
-
/**
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
readonly error: DOMException;
|
|
2136
|
-
/**
|
|
2137
|
-
* Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction.
|
|
2138
|
-
*/
|
|
1984
|
+
/** If the transaction was aborted, returns the error (a DOMException) providing the reason. */
|
|
1985
|
+
readonly error: DOMException | null;
|
|
1986
|
+
/** Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction. */
|
|
2139
1987
|
readonly mode: IDBTransactionMode;
|
|
2140
|
-
/**
|
|
2141
|
-
* Returns a list of the names of object stores in the transaction's scope. For an upgrade transaction this is all object stores in the database.
|
|
2142
|
-
*/
|
|
1988
|
+
/** Returns a list of the names of object stores in the transaction's scope. For an upgrade transaction this is all object stores in the database. */
|
|
2143
1989
|
readonly objectStoreNames: DOMStringList;
|
|
2144
1990
|
onabort: ((this: IDBTransaction, ev: Event) => any) | null;
|
|
2145
1991
|
oncomplete: ((this: IDBTransaction, ev: Event) => any) | null;
|
|
2146
1992
|
onerror: ((this: IDBTransaction, ev: Event) => any) | null;
|
|
2147
|
-
/**
|
|
2148
|
-
* Aborts the transaction. All pending requests will fail with a "AbortError" DOMException and all changes made to the database will be reverted.
|
|
2149
|
-
*/
|
|
1993
|
+
/** Aborts the transaction. All pending requests will fail with a "AbortError" DOMException and all changes made to the database will be reverted. */
|
|
2150
1994
|
abort(): void;
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
*/
|
|
1995
|
+
commit(): void;
|
|
1996
|
+
/** Returns an IDBObjectStore in the transaction's scope. */
|
|
2154
1997
|
objectStore(name: string): IDBObjectStore;
|
|
2155
1998
|
addEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2156
1999
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -2175,17 +2018,11 @@ declare var IDBVersionChangeEvent: {
|
|
|
2175
2018
|
};
|
|
2176
2019
|
|
|
2177
2020
|
interface ImageBitmap {
|
|
2178
|
-
/**
|
|
2179
|
-
* Returns the intrinsic height of the image, in CSS pixels.
|
|
2180
|
-
*/
|
|
2021
|
+
/** Returns the intrinsic height of the image, in CSS pixels. */
|
|
2181
2022
|
readonly height: number;
|
|
2182
|
-
/**
|
|
2183
|
-
* Returns the intrinsic width of the image, in CSS pixels.
|
|
2184
|
-
*/
|
|
2023
|
+
/** Returns the intrinsic width of the image, in CSS pixels. */
|
|
2185
2024
|
readonly width: number;
|
|
2186
|
-
/**
|
|
2187
|
-
* Releases imageBitmap's underlying bitmap data.
|
|
2188
|
-
*/
|
|
2025
|
+
/** Releases imageBitmap's underlying bitmap data. */
|
|
2189
2026
|
close(): void;
|
|
2190
2027
|
}
|
|
2191
2028
|
|
|
@@ -2195,13 +2032,7 @@ declare var ImageBitmap: {
|
|
|
2195
2032
|
};
|
|
2196
2033
|
|
|
2197
2034
|
interface ImageBitmapRenderingContext {
|
|
2198
|
-
/**
|
|
2199
|
-
* Returns the canvas element that the context is bound to.
|
|
2200
|
-
*/
|
|
2201
|
-
readonly canvas: OffscreenCanvas;
|
|
2202
|
-
/**
|
|
2203
|
-
* Transfers the underlying bitmap data from imageBitmap to context, and the bitmap becomes the contents of the canvas element to which context is bound.
|
|
2204
|
-
*/
|
|
2035
|
+
/** Transfers the underlying bitmap data from imageBitmap to context, and the bitmap becomes the contents of the canvas element to which context is bound. */
|
|
2205
2036
|
transferFromImageBitmap(bitmap: ImageBitmap | null): void;
|
|
2206
2037
|
}
|
|
2207
2038
|
|
|
@@ -2212,35 +2043,39 @@ declare var ImageBitmapRenderingContext: {
|
|
|
2212
2043
|
|
|
2213
2044
|
/** 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(). */
|
|
2214
2045
|
interface ImageData {
|
|
2215
|
-
/**
|
|
2216
|
-
* Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255.
|
|
2217
|
-
*/
|
|
2046
|
+
/** Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255. */
|
|
2218
2047
|
readonly data: Uint8ClampedArray;
|
|
2219
|
-
/**
|
|
2220
|
-
* Returns the actual dimensions of the data in the ImageData object, in pixels.
|
|
2221
|
-
*/
|
|
2048
|
+
/** Returns the actual dimensions of the data in the ImageData object, in pixels. */
|
|
2222
2049
|
readonly height: number;
|
|
2223
|
-
/**
|
|
2224
|
-
* Returns the actual dimensions of the data in the ImageData object, in pixels.
|
|
2225
|
-
*/
|
|
2050
|
+
/** Returns the actual dimensions of the data in the ImageData object, in pixels. */
|
|
2226
2051
|
readonly width: number;
|
|
2227
2052
|
}
|
|
2228
2053
|
|
|
2229
2054
|
declare var ImageData: {
|
|
2230
2055
|
prototype: ImageData;
|
|
2231
|
-
new(sw: number, sh: number): ImageData;
|
|
2232
|
-
new(data: Uint8ClampedArray, sw: number, sh?: number): ImageData;
|
|
2056
|
+
new(sw: number, sh: number, settings?: ImageDataSettings): ImageData;
|
|
2057
|
+
new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
|
|
2058
|
+
};
|
|
2059
|
+
|
|
2060
|
+
interface KHR_parallel_shader_compile {
|
|
2061
|
+
readonly COMPLETION_STATUS_KHR: GLenum;
|
|
2062
|
+
}
|
|
2063
|
+
|
|
2064
|
+
interface MediaCapabilities {
|
|
2065
|
+
decodingInfo(configuration: MediaDecodingConfiguration): Promise<MediaCapabilitiesDecodingInfo>;
|
|
2066
|
+
encodingInfo(configuration: MediaEncodingConfiguration): Promise<MediaCapabilitiesEncodingInfo>;
|
|
2067
|
+
}
|
|
2068
|
+
|
|
2069
|
+
declare var MediaCapabilities: {
|
|
2070
|
+
prototype: MediaCapabilities;
|
|
2071
|
+
new(): MediaCapabilities;
|
|
2233
2072
|
};
|
|
2234
2073
|
|
|
2235
2074
|
/** This Channel Messaging API interface allows us to create a new message channel and send data through it via its two MessagePort properties. */
|
|
2236
2075
|
interface MessageChannel {
|
|
2237
|
-
/**
|
|
2238
|
-
* Returns the first MessagePort object.
|
|
2239
|
-
*/
|
|
2076
|
+
/** Returns the first MessagePort object. */
|
|
2240
2077
|
readonly port1: MessagePort;
|
|
2241
|
-
/**
|
|
2242
|
-
* Returns the second MessagePort object.
|
|
2243
|
-
*/
|
|
2078
|
+
/** Returns the second MessagePort object. */
|
|
2244
2079
|
readonly port2: MessagePort;
|
|
2245
2080
|
}
|
|
2246
2081
|
|
|
@@ -2251,26 +2086,18 @@ declare var MessageChannel: {
|
|
|
2251
2086
|
|
|
2252
2087
|
/** A message received by a target object. */
|
|
2253
2088
|
interface MessageEvent<T = any> extends Event {
|
|
2254
|
-
/**
|
|
2255
|
-
* Returns the data of the message.
|
|
2256
|
-
*/
|
|
2089
|
+
/** Returns the data of the message. */
|
|
2257
2090
|
readonly data: T;
|
|
2258
|
-
/**
|
|
2259
|
-
* Returns the last event ID string, for server-sent events.
|
|
2260
|
-
*/
|
|
2091
|
+
/** Returns the last event ID string, for server-sent events. */
|
|
2261
2092
|
readonly lastEventId: string;
|
|
2262
|
-
/**
|
|
2263
|
-
* Returns the origin of the message, for server-sent events and cross-document messaging.
|
|
2264
|
-
*/
|
|
2093
|
+
/** Returns the origin of the message, for server-sent events and cross-document messaging. */
|
|
2265
2094
|
readonly origin: string;
|
|
2266
|
-
/**
|
|
2267
|
-
* Returns the MessagePort array sent with the message, for cross-document messaging and channel messaging.
|
|
2268
|
-
*/
|
|
2095
|
+
/** Returns the MessagePort array sent with the message, for cross-document messaging and channel messaging. */
|
|
2269
2096
|
readonly ports: ReadonlyArray<MessagePort>;
|
|
2270
|
-
/**
|
|
2271
|
-
* Returns the WindowProxy of the source window, for cross-document messaging, and the MessagePort being attached, in the connect event fired at SharedWorkerGlobalScope objects.
|
|
2272
|
-
*/
|
|
2097
|
+
/** Returns the WindowProxy of the source window, for cross-document messaging, and the MessagePort being attached, in the connect event fired at SharedWorkerGlobalScope objects. */
|
|
2273
2098
|
readonly source: MessageEventSource | null;
|
|
2099
|
+
/** @deprecated */
|
|
2100
|
+
initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: MessagePort[]): void;
|
|
2274
2101
|
}
|
|
2275
2102
|
|
|
2276
2103
|
declare var MessageEvent: {
|
|
@@ -2287,9 +2114,7 @@ interface MessagePortEventMap {
|
|
|
2287
2114
|
interface MessagePort extends EventTarget {
|
|
2288
2115
|
onmessage: ((this: MessagePort, ev: MessageEvent) => any) | null;
|
|
2289
2116
|
onmessageerror: ((this: MessagePort, ev: MessageEvent) => any) | null;
|
|
2290
|
-
/**
|
|
2291
|
-
* Disconnects the port, so that it is no longer active.
|
|
2292
|
-
*/
|
|
2117
|
+
/** Disconnects the port, so that it is no longer active. */
|
|
2293
2118
|
close(): void;
|
|
2294
2119
|
/**
|
|
2295
2120
|
* Posts a message through the channel. Objects listed in transfer are transferred, not just cloned, meaning that they are no longer usable on the sending side.
|
|
@@ -2297,10 +2122,8 @@ interface MessagePort extends EventTarget {
|
|
|
2297
2122
|
* Throws a "DataCloneError" DOMException if transfer contains duplicate objects or port, or if message could not be cloned.
|
|
2298
2123
|
*/
|
|
2299
2124
|
postMessage(message: any, transfer: Transferable[]): void;
|
|
2300
|
-
postMessage(message: any, options?:
|
|
2301
|
-
/**
|
|
2302
|
-
* Begins dispatching messages received on the port.
|
|
2303
|
-
*/
|
|
2125
|
+
postMessage(message: any, options?: StructuredSerializeOptions): void;
|
|
2126
|
+
/** Begins dispatching messages received on the port. */
|
|
2304
2127
|
start(): void;
|
|
2305
2128
|
addEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2306
2129
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -2313,27 +2136,20 @@ declare var MessagePort: {
|
|
|
2313
2136
|
new(): MessagePort;
|
|
2314
2137
|
};
|
|
2315
2138
|
|
|
2316
|
-
interface NavigationPreloadManager {
|
|
2317
|
-
disable(): Promise<void>;
|
|
2318
|
-
enable(): Promise<void>;
|
|
2319
|
-
getState(): Promise<NavigationPreloadState>;
|
|
2320
|
-
setHeaderValue(value: string): Promise<void>;
|
|
2321
|
-
}
|
|
2322
|
-
|
|
2323
|
-
declare var NavigationPreloadManager: {
|
|
2324
|
-
prototype: NavigationPreloadManager;
|
|
2325
|
-
new(): NavigationPreloadManager;
|
|
2326
|
-
};
|
|
2327
|
-
|
|
2328
2139
|
interface NavigatorConcurrentHardware {
|
|
2329
2140
|
readonly hardwareConcurrency: number;
|
|
2330
2141
|
}
|
|
2331
2142
|
|
|
2332
2143
|
interface NavigatorID {
|
|
2144
|
+
/** @deprecated */
|
|
2333
2145
|
readonly appCodeName: string;
|
|
2146
|
+
/** @deprecated */
|
|
2334
2147
|
readonly appName: string;
|
|
2148
|
+
/** @deprecated */
|
|
2335
2149
|
readonly appVersion: string;
|
|
2150
|
+
/** @deprecated */
|
|
2336
2151
|
readonly platform: string;
|
|
2152
|
+
/** @deprecated */
|
|
2337
2153
|
readonly product: string;
|
|
2338
2154
|
readonly userAgent: string;
|
|
2339
2155
|
}
|
|
@@ -2343,14 +2159,28 @@ interface NavigatorLanguage {
|
|
|
2343
2159
|
readonly languages: ReadonlyArray<string>;
|
|
2344
2160
|
}
|
|
2345
2161
|
|
|
2162
|
+
interface NavigatorNetworkInformation {
|
|
2163
|
+
readonly connection: NetworkInformation;
|
|
2164
|
+
}
|
|
2165
|
+
|
|
2346
2166
|
interface NavigatorOnLine {
|
|
2347
2167
|
readonly onLine: boolean;
|
|
2348
2168
|
}
|
|
2349
2169
|
|
|
2170
|
+
/** Available only in secure contexts. */
|
|
2350
2171
|
interface NavigatorStorage {
|
|
2351
2172
|
readonly storage: StorageManager;
|
|
2352
2173
|
}
|
|
2353
2174
|
|
|
2175
|
+
interface NetworkInformation extends EventTarget {
|
|
2176
|
+
readonly type: ConnectionType;
|
|
2177
|
+
}
|
|
2178
|
+
|
|
2179
|
+
declare var NetworkInformation: {
|
|
2180
|
+
prototype: NetworkInformation;
|
|
2181
|
+
new(): NetworkInformation;
|
|
2182
|
+
};
|
|
2183
|
+
|
|
2354
2184
|
interface NotificationEventMap {
|
|
2355
2185
|
"click": Event;
|
|
2356
2186
|
"close": Event;
|
|
@@ -2360,25 +2190,17 @@ interface NotificationEventMap {
|
|
|
2360
2190
|
|
|
2361
2191
|
/** This Notifications API interface is used to configure and display desktop notifications to the user. */
|
|
2362
2192
|
interface Notification extends EventTarget {
|
|
2363
|
-
readonly actions: ReadonlyArray<NotificationAction>;
|
|
2364
|
-
readonly badge: string;
|
|
2365
2193
|
readonly body: string;
|
|
2366
2194
|
readonly data: any;
|
|
2367
2195
|
readonly dir: NotificationDirection;
|
|
2368
2196
|
readonly icon: string;
|
|
2369
|
-
readonly image: string;
|
|
2370
2197
|
readonly lang: string;
|
|
2371
2198
|
onclick: ((this: Notification, ev: Event) => any) | null;
|
|
2372
2199
|
onclose: ((this: Notification, ev: Event) => any) | null;
|
|
2373
2200
|
onerror: ((this: Notification, ev: Event) => any) | null;
|
|
2374
2201
|
onshow: ((this: Notification, ev: Event) => any) | null;
|
|
2375
|
-
readonly renotify: boolean;
|
|
2376
|
-
readonly requireInteraction: boolean;
|
|
2377
|
-
readonly silent: boolean;
|
|
2378
2202
|
readonly tag: string;
|
|
2379
|
-
readonly timestamp: number;
|
|
2380
2203
|
readonly title: string;
|
|
2381
|
-
readonly vibrate: ReadonlyArray<number>;
|
|
2382
2204
|
close(): void;
|
|
2383
2205
|
addEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2384
2206
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -2389,7 +2211,6 @@ interface Notification extends EventTarget {
|
|
|
2389
2211
|
declare var Notification: {
|
|
2390
2212
|
prototype: Notification;
|
|
2391
2213
|
new(title: string, options?: NotificationOptions): Notification;
|
|
2392
|
-
readonly maxActions: number;
|
|
2393
2214
|
readonly permission: NotificationPermission;
|
|
2394
2215
|
};
|
|
2395
2216
|
|
|
@@ -2408,6 +2229,9 @@ declare var NotificationEvent: {
|
|
|
2408
2229
|
interface OES_element_index_uint {
|
|
2409
2230
|
}
|
|
2410
2231
|
|
|
2232
|
+
interface OES_fbo_render_mipmap {
|
|
2233
|
+
}
|
|
2234
|
+
|
|
2411
2235
|
/** The OES_standard_derivatives extension is part of the WebGL API and adds the GLSL derivative functions dFdx, dFdy, and fwidth. */
|
|
2412
2236
|
interface OES_standard_derivatives {
|
|
2413
2237
|
readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: GLenum;
|
|
@@ -2438,63 +2262,21 @@ interface OES_vertex_array_object {
|
|
|
2438
2262
|
readonly VERTEX_ARRAY_BINDING_OES: GLenum;
|
|
2439
2263
|
}
|
|
2440
2264
|
|
|
2441
|
-
interface
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
height: number;
|
|
2448
|
-
/**
|
|
2449
|
-
* These attributes return the dimensions of the OffscreenCanvas object's bitmap.
|
|
2450
|
-
*
|
|
2451
|
-
* They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).
|
|
2452
|
-
*/
|
|
2453
|
-
width: number;
|
|
2454
|
-
/**
|
|
2455
|
-
* Returns a promise that will fulfill with a new Blob object representing a file containing the image in the OffscreenCanvas object.
|
|
2456
|
-
*
|
|
2457
|
-
* The argument, if provided, is a dictionary that controls the encoding options of the image file to be created. The type field specifies the file format and has a default value of "image/png"; that type is also used if the requested type isn't supported. If the image format supports variable quality (such as "image/jpeg"), then the quality field is a number in the range 0.0 to 1.0 inclusive indicating the desired quality level for the resulting image.
|
|
2458
|
-
*/
|
|
2459
|
-
convertToBlob(options?: ImageEncodeOptions): Promise<Blob>;
|
|
2460
|
-
/**
|
|
2461
|
-
* Returns an object that exposes an API for drawing on the OffscreenCanvas object. contextId specifies the desired API: "2d", "bitmaprenderer", "webgl", or "webgl2". options is handled by that API.
|
|
2462
|
-
*
|
|
2463
|
-
* This specification defines the "2d" context below, which is similar but distinct from the "2d" context that is created from a canvas element. The WebGL specifications define the "webgl" and "webgl2" contexts. [WEBGL]
|
|
2464
|
-
*
|
|
2465
|
-
* Returns null if the canvas has already been initialized with another context type (e.g., trying to get a "2d" context after getting a "webgl" context).
|
|
2466
|
-
*/
|
|
2467
|
-
getContext(contextId: "2d", options?: CanvasRenderingContext2DSettings): OffscreenCanvasRenderingContext2D | null;
|
|
2468
|
-
getContext(contextId: "bitmaprenderer", options?: ImageBitmapRenderingContextSettings): ImageBitmapRenderingContext | null;
|
|
2469
|
-
getContext(contextId: "webgl", options?: WebGLContextAttributes): WebGLRenderingContext | null;
|
|
2470
|
-
getContext(contextId: "webgl2", options?: WebGLContextAttributes): WebGL2RenderingContext | null;
|
|
2471
|
-
getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null;
|
|
2472
|
-
/**
|
|
2473
|
-
* Returns a newly created ImageBitmap object with the image in the OffscreenCanvas object. The image in the OffscreenCanvas object is replaced with a new blank image.
|
|
2474
|
-
*/
|
|
2475
|
-
transferToImageBitmap(): ImageBitmap;
|
|
2265
|
+
interface OVR_multiview2 {
|
|
2266
|
+
framebufferTextureMultiviewOVR(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, baseViewIndex: GLint, numViews: GLsizei): void;
|
|
2267
|
+
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR: GLenum;
|
|
2268
|
+
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR: GLenum;
|
|
2269
|
+
readonly FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR: GLenum;
|
|
2270
|
+
readonly MAX_VIEWS_OVR: GLenum;
|
|
2476
2271
|
}
|
|
2477
2272
|
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
new(width: number, height: number): OffscreenCanvas;
|
|
2481
|
-
};
|
|
2482
|
-
|
|
2483
|
-
interface OffscreenCanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform {
|
|
2484
|
-
readonly canvas: OffscreenCanvas;
|
|
2485
|
-
commit(): void;
|
|
2273
|
+
/** @deprecated this is not available in most browsers */
|
|
2274
|
+
interface OffscreenCanvas extends EventTarget {
|
|
2486
2275
|
}
|
|
2487
2276
|
|
|
2488
|
-
declare var OffscreenCanvasRenderingContext2D: {
|
|
2489
|
-
prototype: OffscreenCanvasRenderingContext2D;
|
|
2490
|
-
new(): OffscreenCanvasRenderingContext2D;
|
|
2491
|
-
};
|
|
2492
|
-
|
|
2493
2277
|
/** This Canvas 2D API interface 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. */
|
|
2494
2278
|
interface Path2D extends CanvasPath {
|
|
2495
|
-
/**
|
|
2496
|
-
* Adds to the path the path given by the argument.
|
|
2497
|
-
*/
|
|
2279
|
+
/** Adds to the path the path given by the argument. */
|
|
2498
2280
|
addPath(path: Path2D, transform?: DOMMatrix2DInit): void;
|
|
2499
2281
|
}
|
|
2500
2282
|
|
|
@@ -2510,16 +2292,16 @@ interface PerformanceEventMap {
|
|
|
2510
2292
|
/** Provides access to performance-related information for the current page. It's part of the High Resolution Time API, but is enhanced by the Performance Timeline API, the Navigation Timing API, the User Timing API, and the Resource Timing API. */
|
|
2511
2293
|
interface Performance extends EventTarget {
|
|
2512
2294
|
onresourcetimingbufferfull: ((this: Performance, ev: Event) => any) | null;
|
|
2513
|
-
readonly timeOrigin:
|
|
2295
|
+
readonly timeOrigin: DOMHighResTimeStamp;
|
|
2514
2296
|
clearMarks(markName?: string): void;
|
|
2515
2297
|
clearMeasures(measureName?: string): void;
|
|
2516
2298
|
clearResourceTimings(): void;
|
|
2517
2299
|
getEntries(): PerformanceEntryList;
|
|
2518
2300
|
getEntriesByName(name: string, type?: string): PerformanceEntryList;
|
|
2519
2301
|
getEntriesByType(type: string): PerformanceEntryList;
|
|
2520
|
-
mark(markName: string):
|
|
2521
|
-
measure(measureName: string,
|
|
2522
|
-
now():
|
|
2302
|
+
mark(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;
|
|
2303
|
+
measure(measureName: string, startOrMeasureOptions?: string | PerformanceMeasureOptions, endMark?: string): PerformanceMeasure;
|
|
2304
|
+
now(): DOMHighResTimeStamp;
|
|
2523
2305
|
setResourceTimingBufferSize(maxSize: number): void;
|
|
2524
2306
|
toJSON(): any;
|
|
2525
2307
|
addEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -2535,10 +2317,10 @@ declare var Performance: {
|
|
|
2535
2317
|
|
|
2536
2318
|
/** Encapsulates a single performance metric that is part of the performance timeline. A performance entry can be directly created by making a performance mark or measure (for example by calling the mark() method) at an explicit point in an application. Performance entries are also created in indirect ways such as loading a resource (such as an image). */
|
|
2537
2319
|
interface PerformanceEntry {
|
|
2538
|
-
readonly duration:
|
|
2320
|
+
readonly duration: DOMHighResTimeStamp;
|
|
2539
2321
|
readonly entryType: string;
|
|
2540
2322
|
readonly name: string;
|
|
2541
|
-
readonly startTime:
|
|
2323
|
+
readonly startTime: DOMHighResTimeStamp;
|
|
2542
2324
|
toJSON(): any;
|
|
2543
2325
|
}
|
|
2544
2326
|
|
|
@@ -2549,15 +2331,17 @@ declare var PerformanceEntry: {
|
|
|
2549
2331
|
|
|
2550
2332
|
/** PerformanceMark is an abstract interface for PerformanceEntry objects with an entryType of "mark". Entries of this type are created by calling performance.mark() to add a named DOMHighResTimeStamp (the mark) to the browser's performance timeline. */
|
|
2551
2333
|
interface PerformanceMark extends PerformanceEntry {
|
|
2334
|
+
readonly detail: any;
|
|
2552
2335
|
}
|
|
2553
2336
|
|
|
2554
2337
|
declare var PerformanceMark: {
|
|
2555
2338
|
prototype: PerformanceMark;
|
|
2556
|
-
new(): PerformanceMark;
|
|
2339
|
+
new(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;
|
|
2557
2340
|
};
|
|
2558
2341
|
|
|
2559
2342
|
/** PerformanceMeasure is an abstract interface for PerformanceEntry objects with an entryType of "measure". Entries of this type are created by calling performance.measure() to add a named DOMHighResTimeStamp (the measure) between two marks to the browser's performance timeline. */
|
|
2560
2343
|
interface PerformanceMeasure extends PerformanceEntry {
|
|
2344
|
+
readonly detail: any;
|
|
2561
2345
|
}
|
|
2562
2346
|
|
|
2563
2347
|
declare var PerformanceMeasure: {
|
|
@@ -2590,23 +2374,24 @@ declare var PerformanceObserverEntryList: {
|
|
|
2590
2374
|
|
|
2591
2375
|
/** Enables retrieval and analysis of detailed network timing data regarding the loading of an application's resources. An application can use the timing metrics to determine, for example, the length of time it takes to fetch a specific resource, such as an XMLHttpRequest, <SVG>, image, or script. */
|
|
2592
2376
|
interface PerformanceResourceTiming extends PerformanceEntry {
|
|
2593
|
-
readonly connectEnd:
|
|
2594
|
-
readonly connectStart:
|
|
2377
|
+
readonly connectEnd: DOMHighResTimeStamp;
|
|
2378
|
+
readonly connectStart: DOMHighResTimeStamp;
|
|
2595
2379
|
readonly decodedBodySize: number;
|
|
2596
|
-
readonly domainLookupEnd:
|
|
2597
|
-
readonly domainLookupStart:
|
|
2380
|
+
readonly domainLookupEnd: DOMHighResTimeStamp;
|
|
2381
|
+
readonly domainLookupStart: DOMHighResTimeStamp;
|
|
2598
2382
|
readonly encodedBodySize: number;
|
|
2599
|
-
readonly fetchStart:
|
|
2383
|
+
readonly fetchStart: DOMHighResTimeStamp;
|
|
2600
2384
|
readonly initiatorType: string;
|
|
2601
2385
|
readonly nextHopProtocol: string;
|
|
2602
|
-
readonly redirectEnd:
|
|
2603
|
-
readonly redirectStart:
|
|
2604
|
-
readonly requestStart:
|
|
2605
|
-
readonly responseEnd:
|
|
2606
|
-
readonly responseStart:
|
|
2607
|
-
readonly secureConnectionStart:
|
|
2386
|
+
readonly redirectEnd: DOMHighResTimeStamp;
|
|
2387
|
+
readonly redirectStart: DOMHighResTimeStamp;
|
|
2388
|
+
readonly requestStart: DOMHighResTimeStamp;
|
|
2389
|
+
readonly responseEnd: DOMHighResTimeStamp;
|
|
2390
|
+
readonly responseStart: DOMHighResTimeStamp;
|
|
2391
|
+
readonly secureConnectionStart: DOMHighResTimeStamp;
|
|
2392
|
+
readonly serverTiming: ReadonlyArray<PerformanceServerTiming>;
|
|
2608
2393
|
readonly transferSize: number;
|
|
2609
|
-
readonly workerStart:
|
|
2394
|
+
readonly workerStart: DOMHighResTimeStamp;
|
|
2610
2395
|
toJSON(): any;
|
|
2611
2396
|
}
|
|
2612
2397
|
|
|
@@ -2615,6 +2400,18 @@ declare var PerformanceResourceTiming: {
|
|
|
2615
2400
|
new(): PerformanceResourceTiming;
|
|
2616
2401
|
};
|
|
2617
2402
|
|
|
2403
|
+
interface PerformanceServerTiming {
|
|
2404
|
+
readonly description: string;
|
|
2405
|
+
readonly duration: DOMHighResTimeStamp;
|
|
2406
|
+
readonly name: string;
|
|
2407
|
+
toJSON(): any;
|
|
2408
|
+
}
|
|
2409
|
+
|
|
2410
|
+
declare var PerformanceServerTiming: {
|
|
2411
|
+
prototype: PerformanceServerTiming;
|
|
2412
|
+
new(): PerformanceServerTiming;
|
|
2413
|
+
};
|
|
2414
|
+
|
|
2618
2415
|
interface PermissionStatusEventMap {
|
|
2619
2416
|
"change": Event;
|
|
2620
2417
|
}
|
|
@@ -2634,7 +2431,7 @@ declare var PermissionStatus: {
|
|
|
2634
2431
|
};
|
|
2635
2432
|
|
|
2636
2433
|
interface Permissions {
|
|
2637
|
-
query(permissionDesc: PermissionDescriptor
|
|
2434
|
+
query(permissionDesc: PermissionDescriptor): Promise<PermissionStatus>;
|
|
2638
2435
|
}
|
|
2639
2436
|
|
|
2640
2437
|
declare var Permissions: {
|
|
@@ -2665,7 +2462,10 @@ declare var PromiseRejectionEvent: {
|
|
|
2665
2462
|
new(type: string, eventInitDict: PromiseRejectionEventInit): PromiseRejectionEvent;
|
|
2666
2463
|
};
|
|
2667
2464
|
|
|
2668
|
-
/**
|
|
2465
|
+
/**
|
|
2466
|
+
* This Push API interface represents a push message that has been received. This event is sent to the global scope of a ServiceWorker. It contains the information sent from an application server to a PushSubscription.
|
|
2467
|
+
* Available only in secure contexts.
|
|
2468
|
+
*/
|
|
2669
2469
|
interface PushEvent extends ExtendableEvent {
|
|
2670
2470
|
readonly data: PushMessageData | null;
|
|
2671
2471
|
}
|
|
@@ -2675,7 +2475,10 @@ declare var PushEvent: {
|
|
|
2675
2475
|
new(type: string, eventInitDict?: PushEventInit): PushEvent;
|
|
2676
2476
|
};
|
|
2677
2477
|
|
|
2678
|
-
/**
|
|
2478
|
+
/**
|
|
2479
|
+
* This Push API interface provides a way to receive notifications from third-party servers as well as request URLs for push notifications.
|
|
2480
|
+
* Available only in secure contexts.
|
|
2481
|
+
*/
|
|
2679
2482
|
interface PushManager {
|
|
2680
2483
|
getSubscription(): Promise<PushSubscription | null>;
|
|
2681
2484
|
permissionState(options?: PushSubscriptionOptionsInit): Promise<PushPermissionState>;
|
|
@@ -2688,7 +2491,10 @@ declare var PushManager: {
|
|
|
2688
2491
|
readonly supportedContentEncodings: ReadonlyArray<string>;
|
|
2689
2492
|
};
|
|
2690
2493
|
|
|
2691
|
-
/**
|
|
2494
|
+
/**
|
|
2495
|
+
* This Push API interface provides methods which let you retrieve the push data sent by a server in various formats.
|
|
2496
|
+
* Available only in secure contexts.
|
|
2497
|
+
*/
|
|
2692
2498
|
interface PushMessageData {
|
|
2693
2499
|
arrayBuffer(): ArrayBuffer;
|
|
2694
2500
|
blob(): Blob;
|
|
@@ -2701,10 +2507,12 @@ declare var PushMessageData: {
|
|
|
2701
2507
|
new(): PushMessageData;
|
|
2702
2508
|
};
|
|
2703
2509
|
|
|
2704
|
-
/**
|
|
2510
|
+
/**
|
|
2511
|
+
* This Push API interface provides a subcription's URL endpoint and allows unsubscription from a push service.
|
|
2512
|
+
* Available only in secure contexts.
|
|
2513
|
+
*/
|
|
2705
2514
|
interface PushSubscription {
|
|
2706
2515
|
readonly endpoint: string;
|
|
2707
|
-
readonly expirationTime: number | null;
|
|
2708
2516
|
readonly options: PushSubscriptionOptions;
|
|
2709
2517
|
getKey(name: PushEncryptionKeyName): ArrayBuffer | null;
|
|
2710
2518
|
toJSON(): PushSubscriptionJSON;
|
|
@@ -2716,9 +2524,9 @@ declare var PushSubscription: {
|
|
|
2716
2524
|
new(): PushSubscription;
|
|
2717
2525
|
};
|
|
2718
2526
|
|
|
2527
|
+
/** Available only in secure contexts. */
|
|
2719
2528
|
interface PushSubscriptionOptions {
|
|
2720
2529
|
readonly applicationServerKey: ArrayBuffer | null;
|
|
2721
|
-
readonly userVisibleOnly: boolean;
|
|
2722
2530
|
}
|
|
2723
2531
|
|
|
2724
2532
|
declare var PushSubscriptionOptions: {
|
|
@@ -2732,7 +2540,7 @@ interface ReadableStream<R = any> {
|
|
|
2732
2540
|
cancel(reason?: any): Promise<void>;
|
|
2733
2541
|
getReader(): ReadableStreamDefaultReader<R>;
|
|
2734
2542
|
pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;
|
|
2735
|
-
pipeTo(
|
|
2543
|
+
pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;
|
|
2736
2544
|
tee(): [ReadableStream<R>, ReadableStream<R>];
|
|
2737
2545
|
}
|
|
2738
2546
|
|
|
@@ -2744,7 +2552,7 @@ declare var ReadableStream: {
|
|
|
2744
2552
|
interface ReadableStreamDefaultController<R = any> {
|
|
2745
2553
|
readonly desiredSize: number | null;
|
|
2746
2554
|
close(): void;
|
|
2747
|
-
enqueue(chunk
|
|
2555
|
+
enqueue(chunk?: R): void;
|
|
2748
2556
|
error(e?: any): void;
|
|
2749
2557
|
}
|
|
2750
2558
|
|
|
@@ -2770,65 +2578,31 @@ interface ReadableStreamGenericReader {
|
|
|
2770
2578
|
|
|
2771
2579
|
/** This Fetch API interface represents a resource request. */
|
|
2772
2580
|
interface Request extends Body {
|
|
2773
|
-
/**
|
|
2774
|
-
* Returns the cache mode associated with request, which is a string indicating how the request will interact with the browser's cache when fetching.
|
|
2775
|
-
*/
|
|
2581
|
+
/** Returns the cache mode associated with request, which is a string indicating how the request will interact with the browser's cache when fetching. */
|
|
2776
2582
|
readonly cache: RequestCache;
|
|
2777
|
-
/**
|
|
2778
|
-
* Returns the credentials mode associated with request, which is a string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL.
|
|
2779
|
-
*/
|
|
2583
|
+
/** Returns the credentials mode associated with request, which is a string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. */
|
|
2780
2584
|
readonly credentials: RequestCredentials;
|
|
2781
|
-
/**
|
|
2782
|
-
* Returns the kind of resource requested by request, e.g., "document" or "script".
|
|
2783
|
-
*/
|
|
2585
|
+
/** Returns the kind of resource requested by request, e.g., "document" or "script". */
|
|
2784
2586
|
readonly destination: RequestDestination;
|
|
2785
|
-
/**
|
|
2786
|
-
* Returns a Headers object consisting of the headers associated with request. Note that headers added in the network layer by the user agent will not be accounted for in this object, e.g., the "Host" header.
|
|
2787
|
-
*/
|
|
2587
|
+
/** Returns a Headers object consisting of the headers associated with request. Note that headers added in the network layer by the user agent will not be accounted for in this object, e.g., the "Host" header. */
|
|
2788
2588
|
readonly headers: Headers;
|
|
2789
|
-
/**
|
|
2790
|
-
* Returns request's subresource integrity metadata, which is a cryptographic hash of the resource being fetched. Its value consists of multiple hashes separated by whitespace. [SRI]
|
|
2791
|
-
*/
|
|
2589
|
+
/** Returns request's subresource integrity metadata, which is a cryptographic hash of the resource being fetched. Its value consists of multiple hashes separated by whitespace. [SRI] */
|
|
2792
2590
|
readonly integrity: string;
|
|
2793
|
-
/**
|
|
2794
|
-
* Returns a boolean indicating whether or not request is for a history navigation (a.k.a. back-foward navigation).
|
|
2795
|
-
*/
|
|
2796
|
-
readonly isHistoryNavigation: boolean;
|
|
2797
|
-
/**
|
|
2798
|
-
* Returns a boolean indicating whether or not request is for a reload navigation.
|
|
2799
|
-
*/
|
|
2800
|
-
readonly isReloadNavigation: boolean;
|
|
2801
|
-
/**
|
|
2802
|
-
* Returns a boolean indicating whether or not request can outlive the global in which it was created.
|
|
2803
|
-
*/
|
|
2591
|
+
/** Returns a boolean indicating whether or not request can outlive the global in which it was created. */
|
|
2804
2592
|
readonly keepalive: boolean;
|
|
2805
|
-
/**
|
|
2806
|
-
* Returns request's HTTP method, which is "GET" by default.
|
|
2807
|
-
*/
|
|
2593
|
+
/** Returns request's HTTP method, which is "GET" by default. */
|
|
2808
2594
|
readonly method: string;
|
|
2809
|
-
/**
|
|
2810
|
-
* Returns the mode associated with request, which is a string indicating whether the request will use CORS, or will be restricted to same-origin URLs.
|
|
2811
|
-
*/
|
|
2595
|
+
/** Returns the mode associated with request, which is a string indicating whether the request will use CORS, or will be restricted to same-origin URLs. */
|
|
2812
2596
|
readonly mode: RequestMode;
|
|
2813
|
-
/**
|
|
2814
|
-
* Returns the redirect mode associated with request, which is a string indicating how redirects for the request will be handled during fetching. A request will follow redirects by default.
|
|
2815
|
-
*/
|
|
2597
|
+
/** Returns the redirect mode associated with request, which is a string indicating how redirects for the request will be handled during fetching. A request will follow redirects by default. */
|
|
2816
2598
|
readonly redirect: RequestRedirect;
|
|
2817
|
-
/**
|
|
2818
|
-
* Returns the referrer of request. Its value can be a same-origin URL if explicitly set in init, the empty string to indicate no referrer, and "about:client" when defaulting to the global's default. This is used during fetching to determine the value of the `Referer` header of the request being made.
|
|
2819
|
-
*/
|
|
2599
|
+
/** Returns the referrer of request. Its value can be a same-origin URL if explicitly set in init, the empty string to indicate no referrer, and "about:client" when defaulting to the global's default. This is used during fetching to determine the value of the `Referer` header of the request being made. */
|
|
2820
2600
|
readonly referrer: string;
|
|
2821
|
-
/**
|
|
2822
|
-
* Returns the referrer policy associated with request. This is used during fetching to compute the value of the request's referrer.
|
|
2823
|
-
*/
|
|
2601
|
+
/** Returns the referrer policy associated with request. This is used during fetching to compute the value of the request's referrer. */
|
|
2824
2602
|
readonly referrerPolicy: ReferrerPolicy;
|
|
2825
|
-
/**
|
|
2826
|
-
* Returns the signal associated with request, which is an AbortSignal object indicating whether or not request has been aborted, and its abort event handler.
|
|
2827
|
-
*/
|
|
2603
|
+
/** Returns the signal associated with request, which is an AbortSignal object indicating whether or not request has been aborted, and its abort event handler. */
|
|
2828
2604
|
readonly signal: AbortSignal;
|
|
2829
|
-
/**
|
|
2830
|
-
* Returns the URL of request as a string.
|
|
2831
|
-
*/
|
|
2605
|
+
/** Returns the URL of request as a string. */
|
|
2832
2606
|
readonly url: string;
|
|
2833
2607
|
clone(): Request;
|
|
2834
2608
|
}
|
|
@@ -2845,7 +2619,6 @@ interface Response extends Body {
|
|
|
2845
2619
|
readonly redirected: boolean;
|
|
2846
2620
|
readonly status: number;
|
|
2847
2621
|
readonly statusText: string;
|
|
2848
|
-
readonly trailer: Promise<Headers>;
|
|
2849
2622
|
readonly type: ResponseType;
|
|
2850
2623
|
readonly url: string;
|
|
2851
2624
|
clone(): Response;
|
|
@@ -2855,20 +2628,44 @@ declare var Response: {
|
|
|
2855
2628
|
prototype: Response;
|
|
2856
2629
|
new(body?: BodyInit | null, init?: ResponseInit): Response;
|
|
2857
2630
|
error(): Response;
|
|
2858
|
-
redirect(url: string, status?: number): Response;
|
|
2631
|
+
redirect(url: string | URL, status?: number): Response;
|
|
2632
|
+
};
|
|
2633
|
+
|
|
2634
|
+
/** Inherits from Event, and represents the event object of an event sent on a document or worker when its content security policy is violated. */
|
|
2635
|
+
interface SecurityPolicyViolationEvent extends Event {
|
|
2636
|
+
readonly blockedURI: string;
|
|
2637
|
+
readonly columnNumber: number;
|
|
2638
|
+
readonly disposition: SecurityPolicyViolationEventDisposition;
|
|
2639
|
+
readonly documentURI: string;
|
|
2640
|
+
readonly effectiveDirective: string;
|
|
2641
|
+
readonly lineNumber: number;
|
|
2642
|
+
readonly originalPolicy: string;
|
|
2643
|
+
readonly referrer: string;
|
|
2644
|
+
readonly sample: string;
|
|
2645
|
+
readonly sourceFile: string;
|
|
2646
|
+
readonly statusCode: number;
|
|
2647
|
+
readonly violatedDirective: string;
|
|
2648
|
+
}
|
|
2649
|
+
|
|
2650
|
+
declare var SecurityPolicyViolationEvent: {
|
|
2651
|
+
prototype: SecurityPolicyViolationEvent;
|
|
2652
|
+
new(type: string, eventInitDict?: SecurityPolicyViolationEventInit): SecurityPolicyViolationEvent;
|
|
2859
2653
|
};
|
|
2860
2654
|
|
|
2861
2655
|
interface ServiceWorkerEventMap extends AbstractWorkerEventMap {
|
|
2862
2656
|
"statechange": Event;
|
|
2863
2657
|
}
|
|
2864
2658
|
|
|
2865
|
-
/**
|
|
2659
|
+
/**
|
|
2660
|
+
* This ServiceWorker API interface provides a reference to a service worker. Multiple browsing contexts (e.g. pages, workers, etc.) can be associated with the same service worker, each through a unique ServiceWorker object.
|
|
2661
|
+
* Available only in secure contexts.
|
|
2662
|
+
*/
|
|
2866
2663
|
interface ServiceWorker extends EventTarget, AbstractWorker {
|
|
2867
2664
|
onstatechange: ((this: ServiceWorker, ev: Event) => any) | null;
|
|
2868
2665
|
readonly scriptURL: string;
|
|
2869
2666
|
readonly state: ServiceWorkerState;
|
|
2870
2667
|
postMessage(message: any, transfer: Transferable[]): void;
|
|
2871
|
-
postMessage(message: any, options?:
|
|
2668
|
+
postMessage(message: any, options?: StructuredSerializeOptions): void;
|
|
2872
2669
|
addEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2873
2670
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
2874
2671
|
removeEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -2886,14 +2683,17 @@ interface ServiceWorkerContainerEventMap {
|
|
|
2886
2683
|
"messageerror": MessageEvent;
|
|
2887
2684
|
}
|
|
2888
2685
|
|
|
2889
|
-
/**
|
|
2686
|
+
/**
|
|
2687
|
+
* The ServiceWorkerContainer interface of the ServiceWorker API provides an object representing the service worker as an overall unit in the network ecosystem, including facilities to register, unregister and update service workers, and access the state of service workers and their registrations.
|
|
2688
|
+
* Available only in secure contexts.
|
|
2689
|
+
*/
|
|
2890
2690
|
interface ServiceWorkerContainer extends EventTarget {
|
|
2891
2691
|
readonly controller: ServiceWorker | null;
|
|
2892
2692
|
oncontrollerchange: ((this: ServiceWorkerContainer, ev: Event) => any) | null;
|
|
2893
2693
|
onmessage: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
|
|
2894
2694
|
onmessageerror: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
|
|
2895
2695
|
readonly ready: Promise<ServiceWorkerRegistration>;
|
|
2896
|
-
getRegistration(clientURL?: string): Promise<ServiceWorkerRegistration | undefined>;
|
|
2696
|
+
getRegistration(clientURL?: string | URL): Promise<ServiceWorkerRegistration | undefined>;
|
|
2897
2697
|
getRegistrations(): Promise<ReadonlyArray<ServiceWorkerRegistration>>;
|
|
2898
2698
|
register(scriptURL: string | URL, options?: RegistrationOptions): Promise<ServiceWorkerRegistration>;
|
|
2899
2699
|
startMessages(): void;
|
|
@@ -2917,7 +2717,6 @@ interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
|
|
|
2917
2717
|
"notificationclick": NotificationEvent;
|
|
2918
2718
|
"notificationclose": NotificationEvent;
|
|
2919
2719
|
"push": PushEvent;
|
|
2920
|
-
"sync": SyncEvent;
|
|
2921
2720
|
}
|
|
2922
2721
|
|
|
2923
2722
|
/** This ServiceWorker API interface represents the global execution context of a service worker. */
|
|
@@ -2931,9 +2730,7 @@ interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
|
|
|
2931
2730
|
onnotificationclick: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
|
|
2932
2731
|
onnotificationclose: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
|
|
2933
2732
|
onpush: ((this: ServiceWorkerGlobalScope, ev: PushEvent) => any) | null;
|
|
2934
|
-
onsync: ((this: ServiceWorkerGlobalScope, ev: SyncEvent) => any) | null;
|
|
2935
2733
|
readonly registration: ServiceWorkerRegistration;
|
|
2936
|
-
readonly serviceWorker: ServiceWorker;
|
|
2937
2734
|
skipWaiting(): Promise<void>;
|
|
2938
2735
|
addEventListener<K extends keyof ServiceWorkerGlobalScopeEventMap>(type: K, listener: (this: ServiceWorkerGlobalScope, ev: ServiceWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2939
2736
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -2950,15 +2747,16 @@ interface ServiceWorkerRegistrationEventMap {
|
|
|
2950
2747
|
"updatefound": Event;
|
|
2951
2748
|
}
|
|
2952
2749
|
|
|
2953
|
-
/**
|
|
2750
|
+
/**
|
|
2751
|
+
* This ServiceWorker API interface represents the service worker registration. You register a service worker to control one or more pages that share the same origin.
|
|
2752
|
+
* Available only in secure contexts.
|
|
2753
|
+
*/
|
|
2954
2754
|
interface ServiceWorkerRegistration extends EventTarget {
|
|
2955
2755
|
readonly active: ServiceWorker | null;
|
|
2956
2756
|
readonly installing: ServiceWorker | null;
|
|
2957
|
-
readonly navigationPreload: NavigationPreloadManager;
|
|
2958
2757
|
onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null;
|
|
2959
2758
|
readonly pushManager: PushManager;
|
|
2960
2759
|
readonly scope: string;
|
|
2961
|
-
readonly sync: SyncManager;
|
|
2962
2760
|
readonly updateViaCache: ServiceWorkerUpdateViaCache;
|
|
2963
2761
|
readonly waiting: ServiceWorker | null;
|
|
2964
2762
|
getNotifications(filter?: GetNotificationOptions): Promise<Notification[]>;
|
|
@@ -2976,35 +2774,15 @@ declare var ServiceWorkerRegistration: {
|
|
|
2976
2774
|
new(): ServiceWorkerRegistration;
|
|
2977
2775
|
};
|
|
2978
2776
|
|
|
2979
|
-
interface SharedWorker extends EventTarget, AbstractWorker {
|
|
2980
|
-
/**
|
|
2981
|
-
* Returns sharedWorker's MessagePort object which can be used to communicate with the global environment.
|
|
2982
|
-
*/
|
|
2983
|
-
readonly port: MessagePort;
|
|
2984
|
-
addEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: SharedWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2985
|
-
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
2986
|
-
removeEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: SharedWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2987
|
-
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
2988
|
-
}
|
|
2989
|
-
|
|
2990
|
-
declare var SharedWorker: {
|
|
2991
|
-
prototype: SharedWorker;
|
|
2992
|
-
new(scriptURL: string, options?: string | WorkerOptions): SharedWorker;
|
|
2993
|
-
};
|
|
2994
|
-
|
|
2995
2777
|
interface SharedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
|
|
2996
2778
|
"connect": MessageEvent;
|
|
2997
2779
|
}
|
|
2998
2780
|
|
|
2999
2781
|
interface SharedWorkerGlobalScope extends WorkerGlobalScope {
|
|
3000
|
-
/**
|
|
3001
|
-
* Returns sharedWorkerGlobal's name, i.e. the value given to the SharedWorker constructor. Multiple SharedWorker objects can correspond to the same shared worker (and SharedWorkerGlobalScope), by reusing the same name.
|
|
3002
|
-
*/
|
|
2782
|
+
/** Returns sharedWorkerGlobal's name, i.e. the value given to the SharedWorker constructor. Multiple SharedWorker objects can correspond to the same shared worker (and SharedWorkerGlobalScope), by reusing the same name. */
|
|
3003
2783
|
readonly name: string;
|
|
3004
2784
|
onconnect: ((this: SharedWorkerGlobalScope, ev: MessageEvent) => any) | null;
|
|
3005
|
-
/**
|
|
3006
|
-
* Aborts sharedWorkerGlobal.
|
|
3007
|
-
*/
|
|
2785
|
+
/** Aborts sharedWorkerGlobal. */
|
|
3008
2786
|
close(): void;
|
|
3009
2787
|
addEventListener<K extends keyof SharedWorkerGlobalScopeEventMap>(type: K, listener: (this: SharedWorkerGlobalScope, ev: SharedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
3010
2788
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -3017,6 +2795,7 @@ declare var SharedWorkerGlobalScope: {
|
|
|
3017
2795
|
new(): SharedWorkerGlobalScope;
|
|
3018
2796
|
};
|
|
3019
2797
|
|
|
2798
|
+
/** Available only in secure contexts. */
|
|
3020
2799
|
interface StorageManager {
|
|
3021
2800
|
estimate(): Promise<StorageEstimate>;
|
|
3022
2801
|
persisted(): Promise<boolean>;
|
|
@@ -3027,26 +2806,27 @@ declare var StorageManager: {
|
|
|
3027
2806
|
new(): StorageManager;
|
|
3028
2807
|
};
|
|
3029
2808
|
|
|
3030
|
-
/**
|
|
2809
|
+
/**
|
|
2810
|
+
* This Web Crypto API interface provides a number of low-level cryptographic functions. It is accessed via the Crypto.subtle properties available in a window context (via Window.crypto).
|
|
2811
|
+
* Available only in secure contexts.
|
|
2812
|
+
*/
|
|
3031
2813
|
interface SubtleCrypto {
|
|
3032
|
-
decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams |
|
|
3033
|
-
deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams |
|
|
3034
|
-
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams |
|
|
3035
|
-
digest(algorithm: AlgorithmIdentifier, data:
|
|
3036
|
-
encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams |
|
|
2814
|
+
decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<any>;
|
|
2815
|
+
deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length: number): Promise<ArrayBuffer>;
|
|
2816
|
+
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
|
|
2817
|
+
digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>;
|
|
2818
|
+
encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<any>;
|
|
3037
2819
|
exportKey(format: "jwk", key: CryptoKey): Promise<JsonWebKey>;
|
|
3038
|
-
exportKey(format:
|
|
3039
|
-
|
|
3040
|
-
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams | DhKeyGenParams, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair>;
|
|
2820
|
+
exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>;
|
|
2821
|
+
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair>;
|
|
3041
2822
|
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
|
|
3042
2823
|
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>;
|
|
3043
|
-
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams |
|
|
3044
|
-
importKey(format:
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
wrapKey(format: "raw" | "pkcs8" | "spki" | "jwk" | string, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesCmacParams | AesGcmParams | AesCfbParams): Promise<ArrayBuffer>;
|
|
2824
|
+
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
|
|
2825
|
+
importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
|
|
2826
|
+
sign(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
|
|
2827
|
+
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>;
|
|
2828
|
+
verify(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, signature: BufferSource, data: BufferSource): Promise<boolean>;
|
|
2829
|
+
wrapKey(format: KeyFormat, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams): Promise<ArrayBuffer>;
|
|
3050
2830
|
}
|
|
3051
2831
|
|
|
3052
2832
|
declare var SubtleCrypto: {
|
|
@@ -3054,28 +2834,6 @@ declare var SubtleCrypto: {
|
|
|
3054
2834
|
new(): SubtleCrypto;
|
|
3055
2835
|
};
|
|
3056
2836
|
|
|
3057
|
-
/** A sync action that is dispatched on the ServiceWorkerGlobalScope of a ServiceWorker. */
|
|
3058
|
-
interface SyncEvent extends ExtendableEvent {
|
|
3059
|
-
readonly lastChance: boolean;
|
|
3060
|
-
readonly tag: string;
|
|
3061
|
-
}
|
|
3062
|
-
|
|
3063
|
-
declare var SyncEvent: {
|
|
3064
|
-
prototype: SyncEvent;
|
|
3065
|
-
new(type: string, init: SyncEventInit): SyncEvent;
|
|
3066
|
-
};
|
|
3067
|
-
|
|
3068
|
-
/** This ServiceWorker API interface provides an interface for registering and listing sync registrations. */
|
|
3069
|
-
interface SyncManager {
|
|
3070
|
-
getTags(): Promise<string[]>;
|
|
3071
|
-
register(tag: string): Promise<void>;
|
|
3072
|
-
}
|
|
3073
|
-
|
|
3074
|
-
declare var SyncManager: {
|
|
3075
|
-
prototype: SyncManager;
|
|
3076
|
-
new(): SyncManager;
|
|
3077
|
-
};
|
|
3078
|
-
|
|
3079
2837
|
/** A decoder for a specific method, that is a specific character encoding, like utf-8, iso-8859-2, koi8, cp1261, gbk, etc. A decoder takes a stream of bytes as input and emits a stream of code points. For a more scalable, non-native library, see StringView – a C-like representation of strings based on typed arrays. */
|
|
3080
2838
|
interface TextDecoder extends TextDecoderCommon {
|
|
3081
2839
|
/**
|
|
@@ -3100,17 +2858,11 @@ declare var TextDecoder: {
|
|
|
3100
2858
|
};
|
|
3101
2859
|
|
|
3102
2860
|
interface TextDecoderCommon {
|
|
3103
|
-
/**
|
|
3104
|
-
* Returns encoding's name, lowercased.
|
|
3105
|
-
*/
|
|
2861
|
+
/** Returns encoding's name, lowercased. */
|
|
3106
2862
|
readonly encoding: string;
|
|
3107
|
-
/**
|
|
3108
|
-
* Returns true if error mode is "fatal", otherwise false.
|
|
3109
|
-
*/
|
|
2863
|
+
/** Returns true if error mode is "fatal", otherwise false. */
|
|
3110
2864
|
readonly fatal: boolean;
|
|
3111
|
-
/**
|
|
3112
|
-
* Returns the value of ignore BOM.
|
|
3113
|
-
*/
|
|
2865
|
+
/** Returns the value of ignore BOM. */
|
|
3114
2866
|
readonly ignoreBOM: boolean;
|
|
3115
2867
|
}
|
|
3116
2868
|
|
|
@@ -3126,13 +2878,9 @@ declare var TextDecoderStream: {
|
|
|
3126
2878
|
|
|
3127
2879
|
/** TextEncoder takes a stream of code points as input and emits a stream of bytes. For a more scalable, non-native library, see StringView – a C-like representation of strings based on typed arrays. */
|
|
3128
2880
|
interface TextEncoder extends TextEncoderCommon {
|
|
3129
|
-
/**
|
|
3130
|
-
* Returns the result of running UTF-8's encoder.
|
|
3131
|
-
*/
|
|
2881
|
+
/** Returns the result of running UTF-8's encoder. */
|
|
3132
2882
|
encode(input?: string): Uint8Array;
|
|
3133
|
-
/**
|
|
3134
|
-
* Runs the UTF-8 encoder on source, stores the result of that operation into destination, and returns the progress made as an object wherein read is the number of converted code units of source and written is the number of bytes modified in destination.
|
|
3135
|
-
*/
|
|
2883
|
+
/** Runs the UTF-8 encoder on source, stores the result of that operation into destination, and returns the progress made as an object wherein read is the number of converted code units of source and written is the number of bytes modified in destination. */
|
|
3136
2884
|
encodeInto(source: string, destination: Uint8Array): TextEncoderEncodeIntoResult;
|
|
3137
2885
|
}
|
|
3138
2886
|
|
|
@@ -3142,9 +2890,7 @@ declare var TextEncoder: {
|
|
|
3142
2890
|
};
|
|
3143
2891
|
|
|
3144
2892
|
interface TextEncoderCommon {
|
|
3145
|
-
/**
|
|
3146
|
-
* Returns "utf-8".
|
|
3147
|
-
*/
|
|
2893
|
+
/** Returns "utf-8". */
|
|
3148
2894
|
readonly encoding: string;
|
|
3149
2895
|
}
|
|
3150
2896
|
|
|
@@ -3160,25 +2906,19 @@ declare var TextEncoderStream: {
|
|
|
3160
2906
|
|
|
3161
2907
|
/** The dimensions of a piece of text in the canvas, as created by the CanvasRenderingContext2D.measureText() method. */
|
|
3162
2908
|
interface TextMetrics {
|
|
3163
|
-
/**
|
|
3164
|
-
* Returns the measurement described below.
|
|
3165
|
-
*/
|
|
2909
|
+
/** Returns the measurement described below. */
|
|
3166
2910
|
readonly actualBoundingBoxAscent: number;
|
|
3167
|
-
/**
|
|
3168
|
-
* Returns the measurement described below.
|
|
3169
|
-
*/
|
|
2911
|
+
/** Returns the measurement described below. */
|
|
3170
2912
|
readonly actualBoundingBoxDescent: number;
|
|
3171
|
-
/**
|
|
3172
|
-
* Returns the measurement described below.
|
|
3173
|
-
*/
|
|
2913
|
+
/** Returns the measurement described below. */
|
|
3174
2914
|
readonly actualBoundingBoxLeft: number;
|
|
3175
|
-
/**
|
|
3176
|
-
* Returns the measurement described below.
|
|
3177
|
-
*/
|
|
2915
|
+
/** Returns the measurement described below. */
|
|
3178
2916
|
readonly actualBoundingBoxRight: number;
|
|
3179
|
-
/**
|
|
3180
|
-
|
|
3181
|
-
|
|
2917
|
+
/** Returns the measurement described below. */
|
|
2918
|
+
readonly fontBoundingBoxAscent: number;
|
|
2919
|
+
/** Returns the measurement described below. */
|
|
2920
|
+
readonly fontBoundingBoxDescent: number;
|
|
2921
|
+
/** Returns the measurement described below. */
|
|
3182
2922
|
readonly width: number;
|
|
3183
2923
|
}
|
|
3184
2924
|
|
|
@@ -3199,7 +2939,7 @@ declare var TransformStream: {
|
|
|
3199
2939
|
|
|
3200
2940
|
interface TransformStreamDefaultController<O = any> {
|
|
3201
2941
|
readonly desiredSize: number | null;
|
|
3202
|
-
enqueue(chunk
|
|
2942
|
+
enqueue(chunk?: O): void;
|
|
3203
2943
|
error(reason?: any): void;
|
|
3204
2944
|
terminate(): void;
|
|
3205
2945
|
}
|
|
@@ -3229,40 +2969,26 @@ interface URL {
|
|
|
3229
2969
|
|
|
3230
2970
|
declare var URL: {
|
|
3231
2971
|
prototype: URL;
|
|
3232
|
-
new(url: string, base?: string | URL): URL;
|
|
3233
|
-
createObjectURL(
|
|
2972
|
+
new(url: string | URL, base?: string | URL): URL;
|
|
2973
|
+
createObjectURL(obj: Blob): string;
|
|
3234
2974
|
revokeObjectURL(url: string): void;
|
|
3235
2975
|
};
|
|
3236
2976
|
|
|
3237
2977
|
interface URLSearchParams {
|
|
3238
|
-
/**
|
|
3239
|
-
* Appends a specified key/value pair as a new search parameter.
|
|
3240
|
-
*/
|
|
2978
|
+
/** Appends a specified key/value pair as a new search parameter. */
|
|
3241
2979
|
append(name: string, value: string): void;
|
|
3242
|
-
/**
|
|
3243
|
-
* Deletes the given search parameter, and its associated value, from the list of all search parameters.
|
|
3244
|
-
*/
|
|
2980
|
+
/** Deletes the given search parameter, and its associated value, from the list of all search parameters. */
|
|
3245
2981
|
delete(name: string): void;
|
|
3246
|
-
/**
|
|
3247
|
-
* Returns the first value associated to the given search parameter.
|
|
3248
|
-
*/
|
|
2982
|
+
/** Returns the first value associated to the given search parameter. */
|
|
3249
2983
|
get(name: string): string | null;
|
|
3250
|
-
/**
|
|
3251
|
-
* Returns all the values association with a given search parameter.
|
|
3252
|
-
*/
|
|
2984
|
+
/** Returns all the values association with a given search parameter. */
|
|
3253
2985
|
getAll(name: string): string[];
|
|
3254
|
-
/**
|
|
3255
|
-
* Returns a Boolean indicating if such a search parameter exists.
|
|
3256
|
-
*/
|
|
2986
|
+
/** Returns a Boolean indicating if such a search parameter exists. */
|
|
3257
2987
|
has(name: string): boolean;
|
|
3258
|
-
/**
|
|
3259
|
-
* Sets the value associated to a given search parameter to the given value. If there were several values, delete the others.
|
|
3260
|
-
*/
|
|
2988
|
+
/** Sets the value associated to a given search parameter to the given value. If there were several values, delete the others. */
|
|
3261
2989
|
set(name: string, value: string): void;
|
|
3262
2990
|
sort(): void;
|
|
3263
|
-
/**
|
|
3264
|
-
* Returns a string containing a query string suitable for use in a URL. Does not include the question mark.
|
|
3265
|
-
*/
|
|
2991
|
+
/** Returns a string containing a query string suitable for use in a URL. Does not include the question mark. */
|
|
3266
2992
|
toString(): string;
|
|
3267
2993
|
forEach(callbackfn: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any): void;
|
|
3268
2994
|
}
|
|
@@ -3311,6 +3037,30 @@ interface WEBGL_compressed_texture_astc {
|
|
|
3311
3037
|
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR: GLenum;
|
|
3312
3038
|
}
|
|
3313
3039
|
|
|
3040
|
+
interface WEBGL_compressed_texture_etc {
|
|
3041
|
+
readonly COMPRESSED_R11_EAC: GLenum;
|
|
3042
|
+
readonly COMPRESSED_RG11_EAC: GLenum;
|
|
3043
|
+
readonly COMPRESSED_RGB8_ETC2: GLenum;
|
|
3044
|
+
readonly COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2: GLenum;
|
|
3045
|
+
readonly COMPRESSED_RGBA8_ETC2_EAC: GLenum;
|
|
3046
|
+
readonly COMPRESSED_SIGNED_R11_EAC: GLenum;
|
|
3047
|
+
readonly COMPRESSED_SIGNED_RG11_EAC: GLenum;
|
|
3048
|
+
readonly COMPRESSED_SRGB8_ALPHA8_ETC2_EAC: GLenum;
|
|
3049
|
+
readonly COMPRESSED_SRGB8_ETC2: GLenum;
|
|
3050
|
+
readonly COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2: GLenum;
|
|
3051
|
+
}
|
|
3052
|
+
|
|
3053
|
+
interface WEBGL_compressed_texture_etc1 {
|
|
3054
|
+
readonly COMPRESSED_RGB_ETC1_WEBGL: GLenum;
|
|
3055
|
+
}
|
|
3056
|
+
|
|
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
|
+
|
|
3314
3064
|
/** The WEBGL_compressed_texture_s3tc extension is part of the WebGL API and exposes four S3TC compressed texture formats. */
|
|
3315
3065
|
interface WEBGL_compressed_texture_s3tc {
|
|
3316
3066
|
readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: GLenum;
|
|
@@ -3390,302 +3140,6 @@ interface WebGL2RenderingContext extends WebGL2RenderingContextBase, WebGL2Rende
|
|
|
3390
3140
|
declare var WebGL2RenderingContext: {
|
|
3391
3141
|
prototype: WebGL2RenderingContext;
|
|
3392
3142
|
new(): WebGL2RenderingContext;
|
|
3393
|
-
readonly ACTIVE_ATTRIBUTES: GLenum;
|
|
3394
|
-
readonly ACTIVE_TEXTURE: GLenum;
|
|
3395
|
-
readonly ACTIVE_UNIFORMS: GLenum;
|
|
3396
|
-
readonly ALIASED_LINE_WIDTH_RANGE: GLenum;
|
|
3397
|
-
readonly ALIASED_POINT_SIZE_RANGE: GLenum;
|
|
3398
|
-
readonly ALPHA: GLenum;
|
|
3399
|
-
readonly ALPHA_BITS: GLenum;
|
|
3400
|
-
readonly ALWAYS: GLenum;
|
|
3401
|
-
readonly ARRAY_BUFFER: GLenum;
|
|
3402
|
-
readonly ARRAY_BUFFER_BINDING: GLenum;
|
|
3403
|
-
readonly ATTACHED_SHADERS: GLenum;
|
|
3404
|
-
readonly BACK: GLenum;
|
|
3405
|
-
readonly BLEND: GLenum;
|
|
3406
|
-
readonly BLEND_COLOR: GLenum;
|
|
3407
|
-
readonly BLEND_DST_ALPHA: GLenum;
|
|
3408
|
-
readonly BLEND_DST_RGB: GLenum;
|
|
3409
|
-
readonly BLEND_EQUATION: GLenum;
|
|
3410
|
-
readonly BLEND_EQUATION_ALPHA: GLenum;
|
|
3411
|
-
readonly BLEND_EQUATION_RGB: GLenum;
|
|
3412
|
-
readonly BLEND_SRC_ALPHA: GLenum;
|
|
3413
|
-
readonly BLEND_SRC_RGB: GLenum;
|
|
3414
|
-
readonly BLUE_BITS: GLenum;
|
|
3415
|
-
readonly BOOL: GLenum;
|
|
3416
|
-
readonly BOOL_VEC2: GLenum;
|
|
3417
|
-
readonly BOOL_VEC3: GLenum;
|
|
3418
|
-
readonly BOOL_VEC4: GLenum;
|
|
3419
|
-
readonly BROWSER_DEFAULT_WEBGL: GLenum;
|
|
3420
|
-
readonly BUFFER_SIZE: GLenum;
|
|
3421
|
-
readonly BUFFER_USAGE: GLenum;
|
|
3422
|
-
readonly BYTE: GLenum;
|
|
3423
|
-
readonly CCW: GLenum;
|
|
3424
|
-
readonly CLAMP_TO_EDGE: GLenum;
|
|
3425
|
-
readonly COLOR_ATTACHMENT0: GLenum;
|
|
3426
|
-
readonly COLOR_BUFFER_BIT: GLenum;
|
|
3427
|
-
readonly COLOR_CLEAR_VALUE: GLenum;
|
|
3428
|
-
readonly COLOR_WRITEMASK: GLenum;
|
|
3429
|
-
readonly COMPILE_STATUS: GLenum;
|
|
3430
|
-
readonly COMPRESSED_TEXTURE_FORMATS: GLenum;
|
|
3431
|
-
readonly CONSTANT_ALPHA: GLenum;
|
|
3432
|
-
readonly CONSTANT_COLOR: GLenum;
|
|
3433
|
-
readonly CONTEXT_LOST_WEBGL: GLenum;
|
|
3434
|
-
readonly CULL_FACE: GLenum;
|
|
3435
|
-
readonly CULL_FACE_MODE: GLenum;
|
|
3436
|
-
readonly CURRENT_PROGRAM: GLenum;
|
|
3437
|
-
readonly CURRENT_VERTEX_ATTRIB: GLenum;
|
|
3438
|
-
readonly CW: GLenum;
|
|
3439
|
-
readonly DECR: GLenum;
|
|
3440
|
-
readonly DECR_WRAP: GLenum;
|
|
3441
|
-
readonly DELETE_STATUS: GLenum;
|
|
3442
|
-
readonly DEPTH_ATTACHMENT: GLenum;
|
|
3443
|
-
readonly DEPTH_BITS: GLenum;
|
|
3444
|
-
readonly DEPTH_BUFFER_BIT: GLenum;
|
|
3445
|
-
readonly DEPTH_CLEAR_VALUE: GLenum;
|
|
3446
|
-
readonly DEPTH_COMPONENT: GLenum;
|
|
3447
|
-
readonly DEPTH_COMPONENT16: GLenum;
|
|
3448
|
-
readonly DEPTH_FUNC: GLenum;
|
|
3449
|
-
readonly DEPTH_RANGE: GLenum;
|
|
3450
|
-
readonly DEPTH_STENCIL: GLenum;
|
|
3451
|
-
readonly DEPTH_STENCIL_ATTACHMENT: GLenum;
|
|
3452
|
-
readonly DEPTH_TEST: GLenum;
|
|
3453
|
-
readonly DEPTH_WRITEMASK: GLenum;
|
|
3454
|
-
readonly DITHER: GLenum;
|
|
3455
|
-
readonly DONT_CARE: GLenum;
|
|
3456
|
-
readonly DST_ALPHA: GLenum;
|
|
3457
|
-
readonly DST_COLOR: GLenum;
|
|
3458
|
-
readonly DYNAMIC_DRAW: GLenum;
|
|
3459
|
-
readonly ELEMENT_ARRAY_BUFFER: GLenum;
|
|
3460
|
-
readonly ELEMENT_ARRAY_BUFFER_BINDING: GLenum;
|
|
3461
|
-
readonly EQUAL: GLenum;
|
|
3462
|
-
readonly FASTEST: GLenum;
|
|
3463
|
-
readonly FLOAT: GLenum;
|
|
3464
|
-
readonly FLOAT_MAT2: GLenum;
|
|
3465
|
-
readonly FLOAT_MAT3: GLenum;
|
|
3466
|
-
readonly FLOAT_MAT4: GLenum;
|
|
3467
|
-
readonly FLOAT_VEC2: GLenum;
|
|
3468
|
-
readonly FLOAT_VEC3: GLenum;
|
|
3469
|
-
readonly FLOAT_VEC4: GLenum;
|
|
3470
|
-
readonly FRAGMENT_SHADER: GLenum;
|
|
3471
|
-
readonly FRAMEBUFFER: GLenum;
|
|
3472
|
-
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: GLenum;
|
|
3473
|
-
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: GLenum;
|
|
3474
|
-
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: GLenum;
|
|
3475
|
-
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: GLenum;
|
|
3476
|
-
readonly FRAMEBUFFER_BINDING: GLenum;
|
|
3477
|
-
readonly FRAMEBUFFER_COMPLETE: GLenum;
|
|
3478
|
-
readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: GLenum;
|
|
3479
|
-
readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: GLenum;
|
|
3480
|
-
readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: GLenum;
|
|
3481
|
-
readonly FRAMEBUFFER_UNSUPPORTED: GLenum;
|
|
3482
|
-
readonly FRONT: GLenum;
|
|
3483
|
-
readonly FRONT_AND_BACK: GLenum;
|
|
3484
|
-
readonly FRONT_FACE: GLenum;
|
|
3485
|
-
readonly FUNC_ADD: GLenum;
|
|
3486
|
-
readonly FUNC_REVERSE_SUBTRACT: GLenum;
|
|
3487
|
-
readonly FUNC_SUBTRACT: GLenum;
|
|
3488
|
-
readonly GENERATE_MIPMAP_HINT: GLenum;
|
|
3489
|
-
readonly GEQUAL: GLenum;
|
|
3490
|
-
readonly GREATER: GLenum;
|
|
3491
|
-
readonly GREEN_BITS: GLenum;
|
|
3492
|
-
readonly HIGH_FLOAT: GLenum;
|
|
3493
|
-
readonly HIGH_INT: GLenum;
|
|
3494
|
-
readonly IMPLEMENTATION_COLOR_READ_FORMAT: GLenum;
|
|
3495
|
-
readonly IMPLEMENTATION_COLOR_READ_TYPE: GLenum;
|
|
3496
|
-
readonly INCR: GLenum;
|
|
3497
|
-
readonly INCR_WRAP: GLenum;
|
|
3498
|
-
readonly INT: GLenum;
|
|
3499
|
-
readonly INT_VEC2: GLenum;
|
|
3500
|
-
readonly INT_VEC3: GLenum;
|
|
3501
|
-
readonly INT_VEC4: GLenum;
|
|
3502
|
-
readonly INVALID_ENUM: GLenum;
|
|
3503
|
-
readonly INVALID_FRAMEBUFFER_OPERATION: GLenum;
|
|
3504
|
-
readonly INVALID_OPERATION: GLenum;
|
|
3505
|
-
readonly INVALID_VALUE: GLenum;
|
|
3506
|
-
readonly INVERT: GLenum;
|
|
3507
|
-
readonly KEEP: GLenum;
|
|
3508
|
-
readonly LEQUAL: GLenum;
|
|
3509
|
-
readonly LESS: GLenum;
|
|
3510
|
-
readonly LINEAR: GLenum;
|
|
3511
|
-
readonly LINEAR_MIPMAP_LINEAR: GLenum;
|
|
3512
|
-
readonly LINEAR_MIPMAP_NEAREST: GLenum;
|
|
3513
|
-
readonly LINES: GLenum;
|
|
3514
|
-
readonly LINE_LOOP: GLenum;
|
|
3515
|
-
readonly LINE_STRIP: GLenum;
|
|
3516
|
-
readonly LINE_WIDTH: GLenum;
|
|
3517
|
-
readonly LINK_STATUS: GLenum;
|
|
3518
|
-
readonly LOW_FLOAT: GLenum;
|
|
3519
|
-
readonly LOW_INT: GLenum;
|
|
3520
|
-
readonly LUMINANCE: GLenum;
|
|
3521
|
-
readonly LUMINANCE_ALPHA: GLenum;
|
|
3522
|
-
readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: GLenum;
|
|
3523
|
-
readonly MAX_CUBE_MAP_TEXTURE_SIZE: GLenum;
|
|
3524
|
-
readonly MAX_FRAGMENT_UNIFORM_VECTORS: GLenum;
|
|
3525
|
-
readonly MAX_RENDERBUFFER_SIZE: GLenum;
|
|
3526
|
-
readonly MAX_TEXTURE_IMAGE_UNITS: GLenum;
|
|
3527
|
-
readonly MAX_TEXTURE_SIZE: GLenum;
|
|
3528
|
-
readonly MAX_VARYING_VECTORS: GLenum;
|
|
3529
|
-
readonly MAX_VERTEX_ATTRIBS: GLenum;
|
|
3530
|
-
readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: GLenum;
|
|
3531
|
-
readonly MAX_VERTEX_UNIFORM_VECTORS: GLenum;
|
|
3532
|
-
readonly MAX_VIEWPORT_DIMS: GLenum;
|
|
3533
|
-
readonly MEDIUM_FLOAT: GLenum;
|
|
3534
|
-
readonly MEDIUM_INT: GLenum;
|
|
3535
|
-
readonly MIRRORED_REPEAT: GLenum;
|
|
3536
|
-
readonly NEAREST: GLenum;
|
|
3537
|
-
readonly NEAREST_MIPMAP_LINEAR: GLenum;
|
|
3538
|
-
readonly NEAREST_MIPMAP_NEAREST: GLenum;
|
|
3539
|
-
readonly NEVER: GLenum;
|
|
3540
|
-
readonly NICEST: GLenum;
|
|
3541
|
-
readonly NONE: GLenum;
|
|
3542
|
-
readonly NOTEQUAL: GLenum;
|
|
3543
|
-
readonly NO_ERROR: GLenum;
|
|
3544
|
-
readonly ONE: GLenum;
|
|
3545
|
-
readonly ONE_MINUS_CONSTANT_ALPHA: GLenum;
|
|
3546
|
-
readonly ONE_MINUS_CONSTANT_COLOR: GLenum;
|
|
3547
|
-
readonly ONE_MINUS_DST_ALPHA: GLenum;
|
|
3548
|
-
readonly ONE_MINUS_DST_COLOR: GLenum;
|
|
3549
|
-
readonly ONE_MINUS_SRC_ALPHA: GLenum;
|
|
3550
|
-
readonly ONE_MINUS_SRC_COLOR: GLenum;
|
|
3551
|
-
readonly OUT_OF_MEMORY: GLenum;
|
|
3552
|
-
readonly PACK_ALIGNMENT: GLenum;
|
|
3553
|
-
readonly POINTS: GLenum;
|
|
3554
|
-
readonly POLYGON_OFFSET_FACTOR: GLenum;
|
|
3555
|
-
readonly POLYGON_OFFSET_FILL: GLenum;
|
|
3556
|
-
readonly POLYGON_OFFSET_UNITS: GLenum;
|
|
3557
|
-
readonly RED_BITS: GLenum;
|
|
3558
|
-
readonly RENDERBUFFER: GLenum;
|
|
3559
|
-
readonly RENDERBUFFER_ALPHA_SIZE: GLenum;
|
|
3560
|
-
readonly RENDERBUFFER_BINDING: GLenum;
|
|
3561
|
-
readonly RENDERBUFFER_BLUE_SIZE: GLenum;
|
|
3562
|
-
readonly RENDERBUFFER_DEPTH_SIZE: GLenum;
|
|
3563
|
-
readonly RENDERBUFFER_GREEN_SIZE: GLenum;
|
|
3564
|
-
readonly RENDERBUFFER_HEIGHT: GLenum;
|
|
3565
|
-
readonly RENDERBUFFER_INTERNAL_FORMAT: GLenum;
|
|
3566
|
-
readonly RENDERBUFFER_RED_SIZE: GLenum;
|
|
3567
|
-
readonly RENDERBUFFER_STENCIL_SIZE: GLenum;
|
|
3568
|
-
readonly RENDERBUFFER_WIDTH: GLenum;
|
|
3569
|
-
readonly RENDERER: GLenum;
|
|
3570
|
-
readonly REPEAT: GLenum;
|
|
3571
|
-
readonly REPLACE: GLenum;
|
|
3572
|
-
readonly RGB: GLenum;
|
|
3573
|
-
readonly RGB565: GLenum;
|
|
3574
|
-
readonly RGB5_A1: GLenum;
|
|
3575
|
-
readonly RGBA: GLenum;
|
|
3576
|
-
readonly RGBA4: GLenum;
|
|
3577
|
-
readonly SAMPLER_2D: GLenum;
|
|
3578
|
-
readonly SAMPLER_CUBE: GLenum;
|
|
3579
|
-
readonly SAMPLES: GLenum;
|
|
3580
|
-
readonly SAMPLE_ALPHA_TO_COVERAGE: GLenum;
|
|
3581
|
-
readonly SAMPLE_BUFFERS: GLenum;
|
|
3582
|
-
readonly SAMPLE_COVERAGE: GLenum;
|
|
3583
|
-
readonly SAMPLE_COVERAGE_INVERT: GLenum;
|
|
3584
|
-
readonly SAMPLE_COVERAGE_VALUE: GLenum;
|
|
3585
|
-
readonly SCISSOR_BOX: GLenum;
|
|
3586
|
-
readonly SCISSOR_TEST: GLenum;
|
|
3587
|
-
readonly SHADER_TYPE: GLenum;
|
|
3588
|
-
readonly SHADING_LANGUAGE_VERSION: GLenum;
|
|
3589
|
-
readonly SHORT: GLenum;
|
|
3590
|
-
readonly SRC_ALPHA: GLenum;
|
|
3591
|
-
readonly SRC_ALPHA_SATURATE: GLenum;
|
|
3592
|
-
readonly SRC_COLOR: GLenum;
|
|
3593
|
-
readonly STATIC_DRAW: GLenum;
|
|
3594
|
-
readonly STENCIL_ATTACHMENT: GLenum;
|
|
3595
|
-
readonly STENCIL_BACK_FAIL: GLenum;
|
|
3596
|
-
readonly STENCIL_BACK_FUNC: GLenum;
|
|
3597
|
-
readonly STENCIL_BACK_PASS_DEPTH_FAIL: GLenum;
|
|
3598
|
-
readonly STENCIL_BACK_PASS_DEPTH_PASS: GLenum;
|
|
3599
|
-
readonly STENCIL_BACK_REF: GLenum;
|
|
3600
|
-
readonly STENCIL_BACK_VALUE_MASK: GLenum;
|
|
3601
|
-
readonly STENCIL_BACK_WRITEMASK: GLenum;
|
|
3602
|
-
readonly STENCIL_BITS: GLenum;
|
|
3603
|
-
readonly STENCIL_BUFFER_BIT: GLenum;
|
|
3604
|
-
readonly STENCIL_CLEAR_VALUE: GLenum;
|
|
3605
|
-
readonly STENCIL_FAIL: GLenum;
|
|
3606
|
-
readonly STENCIL_FUNC: GLenum;
|
|
3607
|
-
readonly STENCIL_INDEX8: GLenum;
|
|
3608
|
-
readonly STENCIL_PASS_DEPTH_FAIL: GLenum;
|
|
3609
|
-
readonly STENCIL_PASS_DEPTH_PASS: GLenum;
|
|
3610
|
-
readonly STENCIL_REF: GLenum;
|
|
3611
|
-
readonly STENCIL_TEST: GLenum;
|
|
3612
|
-
readonly STENCIL_VALUE_MASK: GLenum;
|
|
3613
|
-
readonly STENCIL_WRITEMASK: GLenum;
|
|
3614
|
-
readonly STREAM_DRAW: GLenum;
|
|
3615
|
-
readonly SUBPIXEL_BITS: GLenum;
|
|
3616
|
-
readonly TEXTURE: GLenum;
|
|
3617
|
-
readonly TEXTURE0: GLenum;
|
|
3618
|
-
readonly TEXTURE1: GLenum;
|
|
3619
|
-
readonly TEXTURE10: GLenum;
|
|
3620
|
-
readonly TEXTURE11: GLenum;
|
|
3621
|
-
readonly TEXTURE12: GLenum;
|
|
3622
|
-
readonly TEXTURE13: GLenum;
|
|
3623
|
-
readonly TEXTURE14: GLenum;
|
|
3624
|
-
readonly TEXTURE15: GLenum;
|
|
3625
|
-
readonly TEXTURE16: GLenum;
|
|
3626
|
-
readonly TEXTURE17: GLenum;
|
|
3627
|
-
readonly TEXTURE18: GLenum;
|
|
3628
|
-
readonly TEXTURE19: GLenum;
|
|
3629
|
-
readonly TEXTURE2: GLenum;
|
|
3630
|
-
readonly TEXTURE20: GLenum;
|
|
3631
|
-
readonly TEXTURE21: GLenum;
|
|
3632
|
-
readonly TEXTURE22: GLenum;
|
|
3633
|
-
readonly TEXTURE23: GLenum;
|
|
3634
|
-
readonly TEXTURE24: GLenum;
|
|
3635
|
-
readonly TEXTURE25: GLenum;
|
|
3636
|
-
readonly TEXTURE26: GLenum;
|
|
3637
|
-
readonly TEXTURE27: GLenum;
|
|
3638
|
-
readonly TEXTURE28: GLenum;
|
|
3639
|
-
readonly TEXTURE29: GLenum;
|
|
3640
|
-
readonly TEXTURE3: GLenum;
|
|
3641
|
-
readonly TEXTURE30: GLenum;
|
|
3642
|
-
readonly TEXTURE31: GLenum;
|
|
3643
|
-
readonly TEXTURE4: GLenum;
|
|
3644
|
-
readonly TEXTURE5: GLenum;
|
|
3645
|
-
readonly TEXTURE6: GLenum;
|
|
3646
|
-
readonly TEXTURE7: GLenum;
|
|
3647
|
-
readonly TEXTURE8: GLenum;
|
|
3648
|
-
readonly TEXTURE9: GLenum;
|
|
3649
|
-
readonly TEXTURE_2D: GLenum;
|
|
3650
|
-
readonly TEXTURE_BINDING_2D: GLenum;
|
|
3651
|
-
readonly TEXTURE_BINDING_CUBE_MAP: GLenum;
|
|
3652
|
-
readonly TEXTURE_CUBE_MAP: GLenum;
|
|
3653
|
-
readonly TEXTURE_CUBE_MAP_NEGATIVE_X: GLenum;
|
|
3654
|
-
readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: GLenum;
|
|
3655
|
-
readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: GLenum;
|
|
3656
|
-
readonly TEXTURE_CUBE_MAP_POSITIVE_X: GLenum;
|
|
3657
|
-
readonly TEXTURE_CUBE_MAP_POSITIVE_Y: GLenum;
|
|
3658
|
-
readonly TEXTURE_CUBE_MAP_POSITIVE_Z: GLenum;
|
|
3659
|
-
readonly TEXTURE_MAG_FILTER: GLenum;
|
|
3660
|
-
readonly TEXTURE_MIN_FILTER: GLenum;
|
|
3661
|
-
readonly TEXTURE_WRAP_S: GLenum;
|
|
3662
|
-
readonly TEXTURE_WRAP_T: GLenum;
|
|
3663
|
-
readonly TRIANGLES: GLenum;
|
|
3664
|
-
readonly TRIANGLE_FAN: GLenum;
|
|
3665
|
-
readonly TRIANGLE_STRIP: GLenum;
|
|
3666
|
-
readonly UNPACK_ALIGNMENT: GLenum;
|
|
3667
|
-
readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: GLenum;
|
|
3668
|
-
readonly UNPACK_FLIP_Y_WEBGL: GLenum;
|
|
3669
|
-
readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: GLenum;
|
|
3670
|
-
readonly UNSIGNED_BYTE: GLenum;
|
|
3671
|
-
readonly UNSIGNED_INT: GLenum;
|
|
3672
|
-
readonly UNSIGNED_SHORT: GLenum;
|
|
3673
|
-
readonly UNSIGNED_SHORT_4_4_4_4: GLenum;
|
|
3674
|
-
readonly UNSIGNED_SHORT_5_5_5_1: GLenum;
|
|
3675
|
-
readonly UNSIGNED_SHORT_5_6_5: GLenum;
|
|
3676
|
-
readonly VALIDATE_STATUS: GLenum;
|
|
3677
|
-
readonly VENDOR: GLenum;
|
|
3678
|
-
readonly VERSION: GLenum;
|
|
3679
|
-
readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: GLenum;
|
|
3680
|
-
readonly VERTEX_ATTRIB_ARRAY_ENABLED: GLenum;
|
|
3681
|
-
readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: GLenum;
|
|
3682
|
-
readonly VERTEX_ATTRIB_ARRAY_POINTER: GLenum;
|
|
3683
|
-
readonly VERTEX_ATTRIB_ARRAY_SIZE: GLenum;
|
|
3684
|
-
readonly VERTEX_ATTRIB_ARRAY_STRIDE: GLenum;
|
|
3685
|
-
readonly VERTEX_ATTRIB_ARRAY_TYPE: GLenum;
|
|
3686
|
-
readonly VERTEX_SHADER: GLenum;
|
|
3687
|
-
readonly VIEWPORT: GLenum;
|
|
3688
|
-
readonly ZERO: GLenum;
|
|
3689
3143
|
readonly ACTIVE_UNIFORM_BLOCKS: GLenum;
|
|
3690
3144
|
readonly ALREADY_SIGNALED: GLenum;
|
|
3691
3145
|
readonly ANY_SAMPLES_PASSED: GLenum;
|
|
@@ -3949,6 +3403,302 @@ declare var WebGL2RenderingContext: {
|
|
|
3949
3403
|
readonly VERTEX_ATTRIB_ARRAY_DIVISOR: GLenum;
|
|
3950
3404
|
readonly VERTEX_ATTRIB_ARRAY_INTEGER: GLenum;
|
|
3951
3405
|
readonly WAIT_FAILED: GLenum;
|
|
3406
|
+
readonly ACTIVE_ATTRIBUTES: GLenum;
|
|
3407
|
+
readonly ACTIVE_TEXTURE: GLenum;
|
|
3408
|
+
readonly ACTIVE_UNIFORMS: GLenum;
|
|
3409
|
+
readonly ALIASED_LINE_WIDTH_RANGE: GLenum;
|
|
3410
|
+
readonly ALIASED_POINT_SIZE_RANGE: GLenum;
|
|
3411
|
+
readonly ALPHA: GLenum;
|
|
3412
|
+
readonly ALPHA_BITS: GLenum;
|
|
3413
|
+
readonly ALWAYS: GLenum;
|
|
3414
|
+
readonly ARRAY_BUFFER: GLenum;
|
|
3415
|
+
readonly ARRAY_BUFFER_BINDING: GLenum;
|
|
3416
|
+
readonly ATTACHED_SHADERS: GLenum;
|
|
3417
|
+
readonly BACK: GLenum;
|
|
3418
|
+
readonly BLEND: GLenum;
|
|
3419
|
+
readonly BLEND_COLOR: GLenum;
|
|
3420
|
+
readonly BLEND_DST_ALPHA: GLenum;
|
|
3421
|
+
readonly BLEND_DST_RGB: GLenum;
|
|
3422
|
+
readonly BLEND_EQUATION: GLenum;
|
|
3423
|
+
readonly BLEND_EQUATION_ALPHA: GLenum;
|
|
3424
|
+
readonly BLEND_EQUATION_RGB: GLenum;
|
|
3425
|
+
readonly BLEND_SRC_ALPHA: GLenum;
|
|
3426
|
+
readonly BLEND_SRC_RGB: GLenum;
|
|
3427
|
+
readonly BLUE_BITS: GLenum;
|
|
3428
|
+
readonly BOOL: GLenum;
|
|
3429
|
+
readonly BOOL_VEC2: GLenum;
|
|
3430
|
+
readonly BOOL_VEC3: GLenum;
|
|
3431
|
+
readonly BOOL_VEC4: GLenum;
|
|
3432
|
+
readonly BROWSER_DEFAULT_WEBGL: GLenum;
|
|
3433
|
+
readonly BUFFER_SIZE: GLenum;
|
|
3434
|
+
readonly BUFFER_USAGE: GLenum;
|
|
3435
|
+
readonly BYTE: GLenum;
|
|
3436
|
+
readonly CCW: GLenum;
|
|
3437
|
+
readonly CLAMP_TO_EDGE: GLenum;
|
|
3438
|
+
readonly COLOR_ATTACHMENT0: GLenum;
|
|
3439
|
+
readonly COLOR_BUFFER_BIT: GLenum;
|
|
3440
|
+
readonly COLOR_CLEAR_VALUE: GLenum;
|
|
3441
|
+
readonly COLOR_WRITEMASK: GLenum;
|
|
3442
|
+
readonly COMPILE_STATUS: GLenum;
|
|
3443
|
+
readonly COMPRESSED_TEXTURE_FORMATS: GLenum;
|
|
3444
|
+
readonly CONSTANT_ALPHA: GLenum;
|
|
3445
|
+
readonly CONSTANT_COLOR: GLenum;
|
|
3446
|
+
readonly CONTEXT_LOST_WEBGL: GLenum;
|
|
3447
|
+
readonly CULL_FACE: GLenum;
|
|
3448
|
+
readonly CULL_FACE_MODE: GLenum;
|
|
3449
|
+
readonly CURRENT_PROGRAM: GLenum;
|
|
3450
|
+
readonly CURRENT_VERTEX_ATTRIB: GLenum;
|
|
3451
|
+
readonly CW: GLenum;
|
|
3452
|
+
readonly DECR: GLenum;
|
|
3453
|
+
readonly DECR_WRAP: GLenum;
|
|
3454
|
+
readonly DELETE_STATUS: GLenum;
|
|
3455
|
+
readonly DEPTH_ATTACHMENT: GLenum;
|
|
3456
|
+
readonly DEPTH_BITS: GLenum;
|
|
3457
|
+
readonly DEPTH_BUFFER_BIT: GLenum;
|
|
3458
|
+
readonly DEPTH_CLEAR_VALUE: GLenum;
|
|
3459
|
+
readonly DEPTH_COMPONENT: GLenum;
|
|
3460
|
+
readonly DEPTH_COMPONENT16: GLenum;
|
|
3461
|
+
readonly DEPTH_FUNC: GLenum;
|
|
3462
|
+
readonly DEPTH_RANGE: GLenum;
|
|
3463
|
+
readonly DEPTH_STENCIL: GLenum;
|
|
3464
|
+
readonly DEPTH_STENCIL_ATTACHMENT: GLenum;
|
|
3465
|
+
readonly DEPTH_TEST: GLenum;
|
|
3466
|
+
readonly DEPTH_WRITEMASK: GLenum;
|
|
3467
|
+
readonly DITHER: GLenum;
|
|
3468
|
+
readonly DONT_CARE: GLenum;
|
|
3469
|
+
readonly DST_ALPHA: GLenum;
|
|
3470
|
+
readonly DST_COLOR: GLenum;
|
|
3471
|
+
readonly DYNAMIC_DRAW: GLenum;
|
|
3472
|
+
readonly ELEMENT_ARRAY_BUFFER: GLenum;
|
|
3473
|
+
readonly ELEMENT_ARRAY_BUFFER_BINDING: GLenum;
|
|
3474
|
+
readonly EQUAL: GLenum;
|
|
3475
|
+
readonly FASTEST: GLenum;
|
|
3476
|
+
readonly FLOAT: GLenum;
|
|
3477
|
+
readonly FLOAT_MAT2: GLenum;
|
|
3478
|
+
readonly FLOAT_MAT3: GLenum;
|
|
3479
|
+
readonly FLOAT_MAT4: GLenum;
|
|
3480
|
+
readonly FLOAT_VEC2: GLenum;
|
|
3481
|
+
readonly FLOAT_VEC3: GLenum;
|
|
3482
|
+
readonly FLOAT_VEC4: GLenum;
|
|
3483
|
+
readonly FRAGMENT_SHADER: GLenum;
|
|
3484
|
+
readonly FRAMEBUFFER: GLenum;
|
|
3485
|
+
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: GLenum;
|
|
3486
|
+
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: GLenum;
|
|
3487
|
+
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: GLenum;
|
|
3488
|
+
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: GLenum;
|
|
3489
|
+
readonly FRAMEBUFFER_BINDING: GLenum;
|
|
3490
|
+
readonly FRAMEBUFFER_COMPLETE: GLenum;
|
|
3491
|
+
readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: GLenum;
|
|
3492
|
+
readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: GLenum;
|
|
3493
|
+
readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: GLenum;
|
|
3494
|
+
readonly FRAMEBUFFER_UNSUPPORTED: GLenum;
|
|
3495
|
+
readonly FRONT: GLenum;
|
|
3496
|
+
readonly FRONT_AND_BACK: GLenum;
|
|
3497
|
+
readonly FRONT_FACE: GLenum;
|
|
3498
|
+
readonly FUNC_ADD: GLenum;
|
|
3499
|
+
readonly FUNC_REVERSE_SUBTRACT: GLenum;
|
|
3500
|
+
readonly FUNC_SUBTRACT: GLenum;
|
|
3501
|
+
readonly GENERATE_MIPMAP_HINT: GLenum;
|
|
3502
|
+
readonly GEQUAL: GLenum;
|
|
3503
|
+
readonly GREATER: GLenum;
|
|
3504
|
+
readonly GREEN_BITS: GLenum;
|
|
3505
|
+
readonly HIGH_FLOAT: GLenum;
|
|
3506
|
+
readonly HIGH_INT: GLenum;
|
|
3507
|
+
readonly IMPLEMENTATION_COLOR_READ_FORMAT: GLenum;
|
|
3508
|
+
readonly IMPLEMENTATION_COLOR_READ_TYPE: GLenum;
|
|
3509
|
+
readonly INCR: GLenum;
|
|
3510
|
+
readonly INCR_WRAP: GLenum;
|
|
3511
|
+
readonly INT: GLenum;
|
|
3512
|
+
readonly INT_VEC2: GLenum;
|
|
3513
|
+
readonly INT_VEC3: GLenum;
|
|
3514
|
+
readonly INT_VEC4: GLenum;
|
|
3515
|
+
readonly INVALID_ENUM: GLenum;
|
|
3516
|
+
readonly INVALID_FRAMEBUFFER_OPERATION: GLenum;
|
|
3517
|
+
readonly INVALID_OPERATION: GLenum;
|
|
3518
|
+
readonly INVALID_VALUE: GLenum;
|
|
3519
|
+
readonly INVERT: GLenum;
|
|
3520
|
+
readonly KEEP: GLenum;
|
|
3521
|
+
readonly LEQUAL: GLenum;
|
|
3522
|
+
readonly LESS: GLenum;
|
|
3523
|
+
readonly LINEAR: GLenum;
|
|
3524
|
+
readonly LINEAR_MIPMAP_LINEAR: GLenum;
|
|
3525
|
+
readonly LINEAR_MIPMAP_NEAREST: GLenum;
|
|
3526
|
+
readonly LINES: GLenum;
|
|
3527
|
+
readonly LINE_LOOP: GLenum;
|
|
3528
|
+
readonly LINE_STRIP: GLenum;
|
|
3529
|
+
readonly LINE_WIDTH: GLenum;
|
|
3530
|
+
readonly LINK_STATUS: GLenum;
|
|
3531
|
+
readonly LOW_FLOAT: GLenum;
|
|
3532
|
+
readonly LOW_INT: GLenum;
|
|
3533
|
+
readonly LUMINANCE: GLenum;
|
|
3534
|
+
readonly LUMINANCE_ALPHA: GLenum;
|
|
3535
|
+
readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: GLenum;
|
|
3536
|
+
readonly MAX_CUBE_MAP_TEXTURE_SIZE: GLenum;
|
|
3537
|
+
readonly MAX_FRAGMENT_UNIFORM_VECTORS: GLenum;
|
|
3538
|
+
readonly MAX_RENDERBUFFER_SIZE: GLenum;
|
|
3539
|
+
readonly MAX_TEXTURE_IMAGE_UNITS: GLenum;
|
|
3540
|
+
readonly MAX_TEXTURE_SIZE: GLenum;
|
|
3541
|
+
readonly MAX_VARYING_VECTORS: GLenum;
|
|
3542
|
+
readonly MAX_VERTEX_ATTRIBS: GLenum;
|
|
3543
|
+
readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: GLenum;
|
|
3544
|
+
readonly MAX_VERTEX_UNIFORM_VECTORS: GLenum;
|
|
3545
|
+
readonly MAX_VIEWPORT_DIMS: GLenum;
|
|
3546
|
+
readonly MEDIUM_FLOAT: GLenum;
|
|
3547
|
+
readonly MEDIUM_INT: GLenum;
|
|
3548
|
+
readonly MIRRORED_REPEAT: GLenum;
|
|
3549
|
+
readonly NEAREST: GLenum;
|
|
3550
|
+
readonly NEAREST_MIPMAP_LINEAR: GLenum;
|
|
3551
|
+
readonly NEAREST_MIPMAP_NEAREST: GLenum;
|
|
3552
|
+
readonly NEVER: GLenum;
|
|
3553
|
+
readonly NICEST: GLenum;
|
|
3554
|
+
readonly NONE: GLenum;
|
|
3555
|
+
readonly NOTEQUAL: GLenum;
|
|
3556
|
+
readonly NO_ERROR: GLenum;
|
|
3557
|
+
readonly ONE: GLenum;
|
|
3558
|
+
readonly ONE_MINUS_CONSTANT_ALPHA: GLenum;
|
|
3559
|
+
readonly ONE_MINUS_CONSTANT_COLOR: GLenum;
|
|
3560
|
+
readonly ONE_MINUS_DST_ALPHA: GLenum;
|
|
3561
|
+
readonly ONE_MINUS_DST_COLOR: GLenum;
|
|
3562
|
+
readonly ONE_MINUS_SRC_ALPHA: GLenum;
|
|
3563
|
+
readonly ONE_MINUS_SRC_COLOR: GLenum;
|
|
3564
|
+
readonly OUT_OF_MEMORY: GLenum;
|
|
3565
|
+
readonly PACK_ALIGNMENT: GLenum;
|
|
3566
|
+
readonly POINTS: GLenum;
|
|
3567
|
+
readonly POLYGON_OFFSET_FACTOR: GLenum;
|
|
3568
|
+
readonly POLYGON_OFFSET_FILL: GLenum;
|
|
3569
|
+
readonly POLYGON_OFFSET_UNITS: GLenum;
|
|
3570
|
+
readonly RED_BITS: GLenum;
|
|
3571
|
+
readonly RENDERBUFFER: GLenum;
|
|
3572
|
+
readonly RENDERBUFFER_ALPHA_SIZE: GLenum;
|
|
3573
|
+
readonly RENDERBUFFER_BINDING: GLenum;
|
|
3574
|
+
readonly RENDERBUFFER_BLUE_SIZE: GLenum;
|
|
3575
|
+
readonly RENDERBUFFER_DEPTH_SIZE: GLenum;
|
|
3576
|
+
readonly RENDERBUFFER_GREEN_SIZE: GLenum;
|
|
3577
|
+
readonly RENDERBUFFER_HEIGHT: GLenum;
|
|
3578
|
+
readonly RENDERBUFFER_INTERNAL_FORMAT: GLenum;
|
|
3579
|
+
readonly RENDERBUFFER_RED_SIZE: GLenum;
|
|
3580
|
+
readonly RENDERBUFFER_STENCIL_SIZE: GLenum;
|
|
3581
|
+
readonly RENDERBUFFER_WIDTH: GLenum;
|
|
3582
|
+
readonly RENDERER: GLenum;
|
|
3583
|
+
readonly REPEAT: GLenum;
|
|
3584
|
+
readonly REPLACE: GLenum;
|
|
3585
|
+
readonly RGB: GLenum;
|
|
3586
|
+
readonly RGB565: GLenum;
|
|
3587
|
+
readonly RGB5_A1: GLenum;
|
|
3588
|
+
readonly RGBA: GLenum;
|
|
3589
|
+
readonly RGBA4: GLenum;
|
|
3590
|
+
readonly SAMPLER_2D: GLenum;
|
|
3591
|
+
readonly SAMPLER_CUBE: GLenum;
|
|
3592
|
+
readonly SAMPLES: GLenum;
|
|
3593
|
+
readonly SAMPLE_ALPHA_TO_COVERAGE: GLenum;
|
|
3594
|
+
readonly SAMPLE_BUFFERS: GLenum;
|
|
3595
|
+
readonly SAMPLE_COVERAGE: GLenum;
|
|
3596
|
+
readonly SAMPLE_COVERAGE_INVERT: GLenum;
|
|
3597
|
+
readonly SAMPLE_COVERAGE_VALUE: GLenum;
|
|
3598
|
+
readonly SCISSOR_BOX: GLenum;
|
|
3599
|
+
readonly SCISSOR_TEST: GLenum;
|
|
3600
|
+
readonly SHADER_TYPE: GLenum;
|
|
3601
|
+
readonly SHADING_LANGUAGE_VERSION: GLenum;
|
|
3602
|
+
readonly SHORT: GLenum;
|
|
3603
|
+
readonly SRC_ALPHA: GLenum;
|
|
3604
|
+
readonly SRC_ALPHA_SATURATE: GLenum;
|
|
3605
|
+
readonly SRC_COLOR: GLenum;
|
|
3606
|
+
readonly STATIC_DRAW: GLenum;
|
|
3607
|
+
readonly STENCIL_ATTACHMENT: GLenum;
|
|
3608
|
+
readonly STENCIL_BACK_FAIL: GLenum;
|
|
3609
|
+
readonly STENCIL_BACK_FUNC: GLenum;
|
|
3610
|
+
readonly STENCIL_BACK_PASS_DEPTH_FAIL: GLenum;
|
|
3611
|
+
readonly STENCIL_BACK_PASS_DEPTH_PASS: GLenum;
|
|
3612
|
+
readonly STENCIL_BACK_REF: GLenum;
|
|
3613
|
+
readonly STENCIL_BACK_VALUE_MASK: GLenum;
|
|
3614
|
+
readonly STENCIL_BACK_WRITEMASK: GLenum;
|
|
3615
|
+
readonly STENCIL_BITS: GLenum;
|
|
3616
|
+
readonly STENCIL_BUFFER_BIT: GLenum;
|
|
3617
|
+
readonly STENCIL_CLEAR_VALUE: GLenum;
|
|
3618
|
+
readonly STENCIL_FAIL: GLenum;
|
|
3619
|
+
readonly STENCIL_FUNC: GLenum;
|
|
3620
|
+
readonly STENCIL_INDEX8: GLenum;
|
|
3621
|
+
readonly STENCIL_PASS_DEPTH_FAIL: GLenum;
|
|
3622
|
+
readonly STENCIL_PASS_DEPTH_PASS: GLenum;
|
|
3623
|
+
readonly STENCIL_REF: GLenum;
|
|
3624
|
+
readonly STENCIL_TEST: GLenum;
|
|
3625
|
+
readonly STENCIL_VALUE_MASK: GLenum;
|
|
3626
|
+
readonly STENCIL_WRITEMASK: GLenum;
|
|
3627
|
+
readonly STREAM_DRAW: GLenum;
|
|
3628
|
+
readonly SUBPIXEL_BITS: GLenum;
|
|
3629
|
+
readonly TEXTURE: GLenum;
|
|
3630
|
+
readonly TEXTURE0: GLenum;
|
|
3631
|
+
readonly TEXTURE1: GLenum;
|
|
3632
|
+
readonly TEXTURE10: GLenum;
|
|
3633
|
+
readonly TEXTURE11: GLenum;
|
|
3634
|
+
readonly TEXTURE12: GLenum;
|
|
3635
|
+
readonly TEXTURE13: GLenum;
|
|
3636
|
+
readonly TEXTURE14: GLenum;
|
|
3637
|
+
readonly TEXTURE15: GLenum;
|
|
3638
|
+
readonly TEXTURE16: GLenum;
|
|
3639
|
+
readonly TEXTURE17: GLenum;
|
|
3640
|
+
readonly TEXTURE18: GLenum;
|
|
3641
|
+
readonly TEXTURE19: GLenum;
|
|
3642
|
+
readonly TEXTURE2: GLenum;
|
|
3643
|
+
readonly TEXTURE20: GLenum;
|
|
3644
|
+
readonly TEXTURE21: GLenum;
|
|
3645
|
+
readonly TEXTURE22: GLenum;
|
|
3646
|
+
readonly TEXTURE23: GLenum;
|
|
3647
|
+
readonly TEXTURE24: GLenum;
|
|
3648
|
+
readonly TEXTURE25: GLenum;
|
|
3649
|
+
readonly TEXTURE26: GLenum;
|
|
3650
|
+
readonly TEXTURE27: GLenum;
|
|
3651
|
+
readonly TEXTURE28: GLenum;
|
|
3652
|
+
readonly TEXTURE29: GLenum;
|
|
3653
|
+
readonly TEXTURE3: GLenum;
|
|
3654
|
+
readonly TEXTURE30: GLenum;
|
|
3655
|
+
readonly TEXTURE31: GLenum;
|
|
3656
|
+
readonly TEXTURE4: GLenum;
|
|
3657
|
+
readonly TEXTURE5: GLenum;
|
|
3658
|
+
readonly TEXTURE6: GLenum;
|
|
3659
|
+
readonly TEXTURE7: GLenum;
|
|
3660
|
+
readonly TEXTURE8: GLenum;
|
|
3661
|
+
readonly TEXTURE9: GLenum;
|
|
3662
|
+
readonly TEXTURE_2D: GLenum;
|
|
3663
|
+
readonly TEXTURE_BINDING_2D: GLenum;
|
|
3664
|
+
readonly TEXTURE_BINDING_CUBE_MAP: GLenum;
|
|
3665
|
+
readonly TEXTURE_CUBE_MAP: GLenum;
|
|
3666
|
+
readonly TEXTURE_CUBE_MAP_NEGATIVE_X: GLenum;
|
|
3667
|
+
readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: GLenum;
|
|
3668
|
+
readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: GLenum;
|
|
3669
|
+
readonly TEXTURE_CUBE_MAP_POSITIVE_X: GLenum;
|
|
3670
|
+
readonly TEXTURE_CUBE_MAP_POSITIVE_Y: GLenum;
|
|
3671
|
+
readonly TEXTURE_CUBE_MAP_POSITIVE_Z: GLenum;
|
|
3672
|
+
readonly TEXTURE_MAG_FILTER: GLenum;
|
|
3673
|
+
readonly TEXTURE_MIN_FILTER: GLenum;
|
|
3674
|
+
readonly TEXTURE_WRAP_S: GLenum;
|
|
3675
|
+
readonly TEXTURE_WRAP_T: GLenum;
|
|
3676
|
+
readonly TRIANGLES: GLenum;
|
|
3677
|
+
readonly TRIANGLE_FAN: GLenum;
|
|
3678
|
+
readonly TRIANGLE_STRIP: GLenum;
|
|
3679
|
+
readonly UNPACK_ALIGNMENT: GLenum;
|
|
3680
|
+
readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: GLenum;
|
|
3681
|
+
readonly UNPACK_FLIP_Y_WEBGL: GLenum;
|
|
3682
|
+
readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: GLenum;
|
|
3683
|
+
readonly UNSIGNED_BYTE: GLenum;
|
|
3684
|
+
readonly UNSIGNED_INT: GLenum;
|
|
3685
|
+
readonly UNSIGNED_SHORT: GLenum;
|
|
3686
|
+
readonly UNSIGNED_SHORT_4_4_4_4: GLenum;
|
|
3687
|
+
readonly UNSIGNED_SHORT_5_5_5_1: GLenum;
|
|
3688
|
+
readonly UNSIGNED_SHORT_5_6_5: GLenum;
|
|
3689
|
+
readonly VALIDATE_STATUS: GLenum;
|
|
3690
|
+
readonly VENDOR: GLenum;
|
|
3691
|
+
readonly VERSION: GLenum;
|
|
3692
|
+
readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: GLenum;
|
|
3693
|
+
readonly VERTEX_ATTRIB_ARRAY_ENABLED: GLenum;
|
|
3694
|
+
readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: GLenum;
|
|
3695
|
+
readonly VERTEX_ATTRIB_ARRAY_POINTER: GLenum;
|
|
3696
|
+
readonly VERTEX_ATTRIB_ARRAY_SIZE: GLenum;
|
|
3697
|
+
readonly VERTEX_ATTRIB_ARRAY_STRIDE: GLenum;
|
|
3698
|
+
readonly VERTEX_ATTRIB_ARRAY_TYPE: GLenum;
|
|
3699
|
+
readonly VERTEX_SHADER: GLenum;
|
|
3700
|
+
readonly VIEWPORT: GLenum;
|
|
3701
|
+
readonly ZERO: GLenum;
|
|
3952
3702
|
};
|
|
3953
3703
|
|
|
3954
3704
|
interface WebGL2RenderingContextBase {
|
|
@@ -4720,7 +4470,6 @@ declare var WebGLRenderingContext: {
|
|
|
4720
4470
|
};
|
|
4721
4471
|
|
|
4722
4472
|
interface WebGLRenderingContextBase {
|
|
4723
|
-
readonly canvas: OffscreenCanvas;
|
|
4724
4473
|
readonly drawingBufferHeight: GLsizei;
|
|
4725
4474
|
readonly drawingBufferWidth: GLsizei;
|
|
4726
4475
|
activeTexture(texture: GLenum): void;
|
|
@@ -4781,13 +4530,21 @@ interface WebGLRenderingContextBase {
|
|
|
4781
4530
|
getContextAttributes(): WebGLContextAttributes | null;
|
|
4782
4531
|
getError(): GLenum;
|
|
4783
4532
|
getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null;
|
|
4533
|
+
getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null;
|
|
4534
|
+
getExtension(extensionName: "EXT_color_buffer_half_float"): EXT_color_buffer_half_float | null;
|
|
4535
|
+
getExtension(extensionName: "EXT_float_blend"): EXT_float_blend | null;
|
|
4784
4536
|
getExtension(extensionName: "EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic | null;
|
|
4785
4537
|
getExtension(extensionName: "EXT_frag_depth"): EXT_frag_depth | null;
|
|
4786
4538
|
getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod | null;
|
|
4787
4539
|
getExtension(extensionName: "EXT_sRGB"): EXT_sRGB | null;
|
|
4540
|
+
getExtension(extensionName: "KHR_parallel_shader_compile"): KHR_parallel_shader_compile | null;
|
|
4788
4541
|
getExtension(extensionName: "OES_vertex_array_object"): OES_vertex_array_object | null;
|
|
4542
|
+
getExtension(extensionName: "OVR_multiview2"): OVR_multiview2 | null;
|
|
4789
4543
|
getExtension(extensionName: "WEBGL_color_buffer_float"): WEBGL_color_buffer_float | null;
|
|
4790
4544
|
getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc | null;
|
|
4545
|
+
getExtension(extensionName: "WEBGL_compressed_texture_etc"): WEBGL_compressed_texture_etc | null;
|
|
4546
|
+
getExtension(extensionName: "WEBGL_compressed_texture_etc1"): WEBGL_compressed_texture_etc1 | null;
|
|
4547
|
+
getExtension(extensionName: "WEBGL_compressed_texture_pvrtc"): WEBGL_compressed_texture_pvrtc | null;
|
|
4791
4548
|
getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb | null;
|
|
4792
4549
|
getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null;
|
|
4793
4550
|
getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;
|
|
@@ -4802,7 +4559,7 @@ interface WebGLRenderingContextBase {
|
|
|
4802
4559
|
getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null;
|
|
4803
4560
|
getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null;
|
|
4804
4561
|
getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;
|
|
4805
|
-
getExtension(
|
|
4562
|
+
getExtension(name: string): any;
|
|
4806
4563
|
getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any;
|
|
4807
4564
|
getParameter(pname: GLenum): any;
|
|
4808
4565
|
getProgramInfoLog(program: WebGLProgram): string | null;
|
|
@@ -5280,33 +5037,21 @@ interface WebSocket extends EventTarget {
|
|
|
5280
5037
|
* 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.)
|
|
5281
5038
|
*/
|
|
5282
5039
|
readonly bufferedAmount: number;
|
|
5283
|
-
/**
|
|
5284
|
-
* Returns the extensions selected by the server, if any.
|
|
5285
|
-
*/
|
|
5040
|
+
/** Returns the extensions selected by the server, if any. */
|
|
5286
5041
|
readonly extensions: string;
|
|
5287
5042
|
onclose: ((this: WebSocket, ev: CloseEvent) => any) | null;
|
|
5288
5043
|
onerror: ((this: WebSocket, ev: Event) => any) | null;
|
|
5289
5044
|
onmessage: ((this: WebSocket, ev: MessageEvent) => any) | null;
|
|
5290
5045
|
onopen: ((this: WebSocket, ev: Event) => any) | null;
|
|
5291
|
-
/**
|
|
5292
|
-
* 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.
|
|
5293
|
-
*/
|
|
5046
|
+
/** 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. */
|
|
5294
5047
|
readonly protocol: string;
|
|
5295
|
-
/**
|
|
5296
|
-
* Returns the state of the WebSocket object's connection. It can have the values described below.
|
|
5297
|
-
*/
|
|
5048
|
+
/** Returns the state of the WebSocket object's connection. It can have the values described below. */
|
|
5298
5049
|
readonly readyState: number;
|
|
5299
|
-
/**
|
|
5300
|
-
* Returns the URL that was used to establish the WebSocket connection.
|
|
5301
|
-
*/
|
|
5050
|
+
/** Returns the URL that was used to establish the WebSocket connection. */
|
|
5302
5051
|
readonly url: string;
|
|
5303
|
-
/**
|
|
5304
|
-
* Closes the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason.
|
|
5305
|
-
*/
|
|
5052
|
+
/** Closes the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason. */
|
|
5306
5053
|
close(code?: number, reason?: string): void;
|
|
5307
|
-
/**
|
|
5308
|
-
* Transmits data using the WebSocket connection. data can be a string, a Blob, an ArrayBuffer, or an ArrayBufferView.
|
|
5309
|
-
*/
|
|
5054
|
+
/** Transmits data using the WebSocket connection. data can be a string, a Blob, an ArrayBuffer, or an ArrayBufferView. */
|
|
5310
5055
|
send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void;
|
|
5311
5056
|
readonly CLOSED: number;
|
|
5312
5057
|
readonly CLOSING: number;
|
|
@@ -5320,7 +5065,7 @@ interface WebSocket extends EventTarget {
|
|
|
5320
5065
|
|
|
5321
5066
|
declare var WebSocket: {
|
|
5322
5067
|
prototype: WebSocket;
|
|
5323
|
-
new(url: string, protocols?: string | string[]): WebSocket;
|
|
5068
|
+
new(url: string | URL, protocols?: string | string[]): WebSocket;
|
|
5324
5069
|
readonly CLOSED: number;
|
|
5325
5070
|
readonly CLOSING: number;
|
|
5326
5071
|
readonly CONNECTING: number;
|
|
@@ -5332,7 +5077,7 @@ interface WindowClient extends Client {
|
|
|
5332
5077
|
readonly focused: boolean;
|
|
5333
5078
|
readonly visibilityState: VisibilityState;
|
|
5334
5079
|
focus(): Promise<WindowClient>;
|
|
5335
|
-
navigate(url: string): Promise<WindowClient | null>;
|
|
5080
|
+
navigate(url: string | URL): Promise<WindowClient | null>;
|
|
5336
5081
|
}
|
|
5337
5082
|
|
|
5338
5083
|
declare var WindowClient: {
|
|
@@ -5341,7 +5086,9 @@ declare var WindowClient: {
|
|
|
5341
5086
|
};
|
|
5342
5087
|
|
|
5343
5088
|
interface WindowOrWorkerGlobalScope {
|
|
5089
|
+
/** Available only in secure contexts. */
|
|
5344
5090
|
readonly caches: CacheStorage;
|
|
5091
|
+
readonly crossOriginIsolated: boolean;
|
|
5345
5092
|
readonly crypto: Crypto;
|
|
5346
5093
|
readonly indexedDB: IDBFactory;
|
|
5347
5094
|
readonly isSecureContext: boolean;
|
|
@@ -5368,14 +5115,10 @@ interface WorkerEventMap extends AbstractWorkerEventMap {
|
|
|
5368
5115
|
interface Worker extends EventTarget, AbstractWorker {
|
|
5369
5116
|
onmessage: ((this: Worker, ev: MessageEvent) => any) | null;
|
|
5370
5117
|
onmessageerror: ((this: Worker, ev: MessageEvent) => any) | null;
|
|
5371
|
-
/**
|
|
5372
|
-
* Clones message and transmits it to worker's global environment. transfer can be passed as a list of objects that are to be transferred rather than cloned.
|
|
5373
|
-
*/
|
|
5118
|
+
/** Clones message and transmits it to worker's global environment. transfer can be passed as a list of objects that are to be transferred rather than cloned. */
|
|
5374
5119
|
postMessage(message: any, transfer: Transferable[]): void;
|
|
5375
|
-
postMessage(message: any, options?:
|
|
5376
|
-
/**
|
|
5377
|
-
* Aborts worker's associated global environment.
|
|
5378
|
-
*/
|
|
5120
|
+
postMessage(message: any, options?: StructuredSerializeOptions): void;
|
|
5121
|
+
/** Aborts worker's associated global environment. */
|
|
5379
5122
|
terminate(): void;
|
|
5380
5123
|
addEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
5381
5124
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -5385,7 +5128,7 @@ interface Worker extends EventTarget, AbstractWorker {
|
|
|
5385
5128
|
|
|
5386
5129
|
declare var Worker: {
|
|
5387
5130
|
prototype: Worker;
|
|
5388
|
-
new(
|
|
5131
|
+
new(scriptURL: string | URL, options?: WorkerOptions): Worker;
|
|
5389
5132
|
};
|
|
5390
5133
|
|
|
5391
5134
|
interface WorkerGlobalScopeEventMap {
|
|
@@ -5398,11 +5141,10 @@ interface WorkerGlobalScopeEventMap {
|
|
|
5398
5141
|
}
|
|
5399
5142
|
|
|
5400
5143
|
/** This Web Workers API interface is an interface representing the scope of any worker. Workers have no browsing context; this scope contains the information usually conveyed by Window objects — in this case event handlers, the console or the associated WorkerNavigator object. Each WorkerGlobalScope has its own event loop. */
|
|
5401
|
-
interface WorkerGlobalScope extends EventTarget, WindowOrWorkerGlobalScope {
|
|
5402
|
-
/**
|
|
5403
|
-
* Returns workerGlobal's WorkerLocation object.
|
|
5404
|
-
*/
|
|
5144
|
+
interface WorkerGlobalScope extends EventTarget, FontFaceSource, WindowOrWorkerGlobalScope {
|
|
5145
|
+
/** Returns workerGlobal's WorkerLocation object. */
|
|
5405
5146
|
readonly location: WorkerLocation;
|
|
5147
|
+
/** Returns workerGlobal's WorkerNavigator object. */
|
|
5406
5148
|
readonly navigator: WorkerNavigator;
|
|
5407
5149
|
onerror: ((this: WorkerGlobalScope, ev: ErrorEvent) => any) | null;
|
|
5408
5150
|
onlanguagechange: ((this: WorkerGlobalScope, ev: Event) => any) | null;
|
|
@@ -5410,14 +5152,10 @@ interface WorkerGlobalScope extends EventTarget, WindowOrWorkerGlobalScope {
|
|
|
5410
5152
|
ononline: ((this: WorkerGlobalScope, ev: Event) => any) | null;
|
|
5411
5153
|
onrejectionhandled: ((this: WorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
|
|
5412
5154
|
onunhandledrejection: ((this: WorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
|
|
5413
|
-
/**
|
|
5414
|
-
* Returns workerGlobal.
|
|
5415
|
-
*/
|
|
5155
|
+
/** Returns workerGlobal. */
|
|
5416
5156
|
readonly self: WorkerGlobalScope & typeof globalThis;
|
|
5417
|
-
/**
|
|
5418
|
-
|
|
5419
|
-
*/
|
|
5420
|
-
importScripts(...urls: string[]): void;
|
|
5157
|
+
/** Fetches each URL in urls, executes them one-by-one in the order they are passed, and then returns (or throws if something went amiss). */
|
|
5158
|
+
importScripts(...urls: (string | URL)[]): void;
|
|
5421
5159
|
addEventListener<K extends keyof WorkerGlobalScopeEventMap>(type: K, listener: (this: WorkerGlobalScope, ev: WorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
5422
5160
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
5423
5161
|
removeEventListener<K extends keyof WorkerGlobalScopeEventMap>(type: K, listener: (this: WorkerGlobalScope, ev: WorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -5449,8 +5187,8 @@ declare var WorkerLocation: {
|
|
|
5449
5187
|
};
|
|
5450
5188
|
|
|
5451
5189
|
/** 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. */
|
|
5452
|
-
interface WorkerNavigator extends NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorOnLine, NavigatorStorage {
|
|
5453
|
-
readonly
|
|
5190
|
+
interface WorkerNavigator extends NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorNetworkInformation, NavigatorOnLine, NavigatorStorage {
|
|
5191
|
+
readonly mediaCapabilities: MediaCapabilities;
|
|
5454
5192
|
}
|
|
5455
5193
|
|
|
5456
5194
|
declare var WorkerNavigator: {
|
|
@@ -5462,6 +5200,7 @@ declare var WorkerNavigator: {
|
|
|
5462
5200
|
interface WritableStream<W = any> {
|
|
5463
5201
|
readonly locked: boolean;
|
|
5464
5202
|
abort(reason?: any): Promise<void>;
|
|
5203
|
+
close(): Promise<void>;
|
|
5465
5204
|
getWriter(): WritableStreamDefaultWriter<W>;
|
|
5466
5205
|
}
|
|
5467
5206
|
|
|
@@ -5488,7 +5227,7 @@ interface WritableStreamDefaultWriter<W = any> {
|
|
|
5488
5227
|
abort(reason?: any): Promise<void>;
|
|
5489
5228
|
close(): Promise<void>;
|
|
5490
5229
|
releaseLock(): void;
|
|
5491
|
-
write(chunk
|
|
5230
|
+
write(chunk?: W): Promise<void>;
|
|
5492
5231
|
}
|
|
5493
5232
|
|
|
5494
5233
|
declare var WritableStreamDefaultWriter: {
|
|
@@ -5503,16 +5242,12 @@ interface XMLHttpRequestEventMap extends XMLHttpRequestEventTargetEventMap {
|
|
|
5503
5242
|
/** Use XMLHttpRequest (XHR) objects to interact with servers. You can retrieve data from a URL without having to do a full page refresh. This enables a Web page to update just part of a page without disrupting what the user is doing. */
|
|
5504
5243
|
interface XMLHttpRequest extends XMLHttpRequestEventTarget {
|
|
5505
5244
|
onreadystatechange: ((this: XMLHttpRequest, ev: Event) => any) | null;
|
|
5506
|
-
/**
|
|
5507
|
-
* Returns client's state.
|
|
5508
|
-
*/
|
|
5245
|
+
/** Returns client's state. */
|
|
5509
5246
|
readonly readyState: number;
|
|
5510
|
-
/**
|
|
5511
|
-
* Returns the response's body.
|
|
5512
|
-
*/
|
|
5247
|
+
/** Returns the response body. */
|
|
5513
5248
|
readonly response: any;
|
|
5514
5249
|
/**
|
|
5515
|
-
* Returns
|
|
5250
|
+
* Returns response as text.
|
|
5516
5251
|
*
|
|
5517
5252
|
* Throws an "InvalidStateError" DOMException if responseType is not the empty string or "text".
|
|
5518
5253
|
*/
|
|
@@ -5533,14 +5268,12 @@ interface XMLHttpRequest extends XMLHttpRequestEventTarget {
|
|
|
5533
5268
|
readonly status: number;
|
|
5534
5269
|
readonly statusText: string;
|
|
5535
5270
|
/**
|
|
5536
|
-
* Can be set to a time in milliseconds. When set to a non-zero value will cause fetching to terminate after the given time has passed. When the time has passed, the request has not yet completed, and
|
|
5271
|
+
* Can be set to a time in milliseconds. When set to a non-zero value will cause fetching to terminate after the given time has passed. When the time has passed, the request has not yet completed, and this's synchronous flag is unset, a timeout event will then be dispatched, or a "TimeoutError" DOMException will be thrown otherwise (for the send() method).
|
|
5537
5272
|
*
|
|
5538
5273
|
* When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.
|
|
5539
5274
|
*/
|
|
5540
5275
|
timeout: number;
|
|
5541
|
-
/**
|
|
5542
|
-
* Returns the associated XMLHttpRequestUpload object. It can be used to gather transmission information when data is transferred to a server.
|
|
5543
|
-
*/
|
|
5276
|
+
/** Returns the associated XMLHttpRequestUpload object. It can be used to gather transmission information when data is transferred to a server. */
|
|
5544
5277
|
readonly upload: XMLHttpRequestUpload;
|
|
5545
5278
|
/**
|
|
5546
5279
|
* True when credentials are to be included in a cross-origin request. False when they are to be excluded in a cross-origin request and when cookies are to be ignored in its response. Initially false.
|
|
@@ -5548,25 +5281,23 @@ interface XMLHttpRequest extends XMLHttpRequestEventTarget {
|
|
|
5548
5281
|
* When set: throws an "InvalidStateError" DOMException if state is not unsent or opened, or if the send() flag is set.
|
|
5549
5282
|
*/
|
|
5550
5283
|
withCredentials: boolean;
|
|
5551
|
-
/**
|
|
5552
|
-
* Cancels any network activity.
|
|
5553
|
-
*/
|
|
5284
|
+
/** Cancels any network activity. */
|
|
5554
5285
|
abort(): void;
|
|
5555
5286
|
getAllResponseHeaders(): string;
|
|
5556
5287
|
getResponseHeader(name: string): string | null;
|
|
5557
5288
|
/**
|
|
5558
5289
|
* Sets the request method, request URL, and synchronous flag.
|
|
5559
5290
|
*
|
|
5560
|
-
* Throws a "SyntaxError" DOMException if either method is not a valid
|
|
5291
|
+
* Throws a "SyntaxError" DOMException if either method is not a valid method or url cannot be parsed.
|
|
5561
5292
|
*
|
|
5562
5293
|
* Throws a "SecurityError" DOMException if method is a case-insensitive match for `CONNECT`, `TRACE`, or `TRACK`.
|
|
5563
5294
|
*
|
|
5564
5295
|
* Throws an "InvalidAccessError" DOMException if async is false, current global object is a Window object, and the timeout attribute is not zero or the responseType attribute is not the empty string.
|
|
5565
5296
|
*/
|
|
5566
|
-
open(method: string, url: string): void;
|
|
5567
|
-
open(method: string, url: string, async: boolean, username?: string | null, password?: string | null): void;
|
|
5297
|
+
open(method: string, url: string | URL): void;
|
|
5298
|
+
open(method: string, url: string | URL, async: boolean, username?: string | null, password?: string | null): void;
|
|
5568
5299
|
/**
|
|
5569
|
-
* Acts as if the `Content-Type` header value for response is mime. (It does not
|
|
5300
|
+
* Acts as if the `Content-Type` header value for a response is mime. (It does not change the header.)
|
|
5570
5301
|
*
|
|
5571
5302
|
* Throws an "InvalidStateError" DOMException if state is loading or done.
|
|
5572
5303
|
*/
|
|
@@ -5576,7 +5307,7 @@ interface XMLHttpRequest extends XMLHttpRequestEventTarget {
|
|
|
5576
5307
|
*
|
|
5577
5308
|
* Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.
|
|
5578
5309
|
*/
|
|
5579
|
-
send(body?:
|
|
5310
|
+
send(body?: XMLHttpRequestBodyInit | null): void;
|
|
5580
5311
|
/**
|
|
5581
5312
|
* Combines a header in author request headers.
|
|
5582
5313
|
*
|
|
@@ -5647,10 +5378,7 @@ declare var XMLHttpRequestUpload: {
|
|
|
5647
5378
|
new(): XMLHttpRequestUpload;
|
|
5648
5379
|
};
|
|
5649
5380
|
|
|
5650
|
-
declare type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
|
|
5651
|
-
|
|
5652
5381
|
interface Console {
|
|
5653
|
-
memory: any;
|
|
5654
5382
|
assert(condition?: boolean, ...data: any[]): void;
|
|
5655
5383
|
clear(): void;
|
|
5656
5384
|
count(label?: string): void;
|
|
@@ -5659,7 +5387,6 @@ interface Console {
|
|
|
5659
5387
|
dir(item?: any, options?: any): void;
|
|
5660
5388
|
dirxml(...data: any[]): void;
|
|
5661
5389
|
error(...data: any[]): void;
|
|
5662
|
-
exception(message?: string, ...optionalParams: any[]): void;
|
|
5663
5390
|
group(...data: any[]): void;
|
|
5664
5391
|
groupCollapsed(...data: any[]): void;
|
|
5665
5392
|
groupEnd(): void;
|
|
@@ -5677,6 +5404,15 @@ interface Console {
|
|
|
5677
5404
|
declare var console: Console;
|
|
5678
5405
|
|
|
5679
5406
|
declare namespace WebAssembly {
|
|
5407
|
+
interface CompileError extends Error {
|
|
5408
|
+
}
|
|
5409
|
+
|
|
5410
|
+
var CompileError: {
|
|
5411
|
+
prototype: CompileError;
|
|
5412
|
+
new(message?: string): CompileError;
|
|
5413
|
+
(message?: string): CompileError;
|
|
5414
|
+
};
|
|
5415
|
+
|
|
5680
5416
|
interface Global {
|
|
5681
5417
|
value: any;
|
|
5682
5418
|
valueOf(): any;
|
|
@@ -5696,6 +5432,15 @@ declare namespace WebAssembly {
|
|
|
5696
5432
|
new(module: Module, importObject?: Imports): Instance;
|
|
5697
5433
|
};
|
|
5698
5434
|
|
|
5435
|
+
interface LinkError extends Error {
|
|
5436
|
+
}
|
|
5437
|
+
|
|
5438
|
+
var LinkError: {
|
|
5439
|
+
prototype: LinkError;
|
|
5440
|
+
new(message?: string): LinkError;
|
|
5441
|
+
(message?: string): LinkError;
|
|
5442
|
+
};
|
|
5443
|
+
|
|
5699
5444
|
interface Memory {
|
|
5700
5445
|
readonly buffer: ArrayBuffer;
|
|
5701
5446
|
grow(delta: number): number;
|
|
@@ -5717,16 +5462,25 @@ declare namespace WebAssembly {
|
|
|
5717
5462
|
imports(moduleObject: Module): ModuleImportDescriptor[];
|
|
5718
5463
|
};
|
|
5719
5464
|
|
|
5465
|
+
interface RuntimeError extends Error {
|
|
5466
|
+
}
|
|
5467
|
+
|
|
5468
|
+
var RuntimeError: {
|
|
5469
|
+
prototype: RuntimeError;
|
|
5470
|
+
new(message?: string): RuntimeError;
|
|
5471
|
+
(message?: string): RuntimeError;
|
|
5472
|
+
};
|
|
5473
|
+
|
|
5720
5474
|
interface Table {
|
|
5721
5475
|
readonly length: number;
|
|
5722
|
-
get(index: number):
|
|
5723
|
-
grow(delta: number): number;
|
|
5724
|
-
set(index: number, value
|
|
5476
|
+
get(index: number): any;
|
|
5477
|
+
grow(delta: number, value?: any): number;
|
|
5478
|
+
set(index: number, value?: any): void;
|
|
5725
5479
|
}
|
|
5726
5480
|
|
|
5727
5481
|
var Table: {
|
|
5728
5482
|
prototype: Table;
|
|
5729
|
-
new(descriptor: TableDescriptor): Table;
|
|
5483
|
+
new(descriptor: TableDescriptor, value?: any): Table;
|
|
5730
5484
|
};
|
|
5731
5485
|
|
|
5732
5486
|
interface GlobalDescriptor {
|
|
@@ -5763,23 +5517,23 @@ declare namespace WebAssembly {
|
|
|
5763
5517
|
}
|
|
5764
5518
|
|
|
5765
5519
|
type ImportExportKind = "function" | "global" | "memory" | "table";
|
|
5766
|
-
type TableKind = "anyfunc";
|
|
5767
|
-
type ValueType = "f32" | "f64" | "i32" | "i64";
|
|
5520
|
+
type TableKind = "anyfunc" | "externref";
|
|
5521
|
+
type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64";
|
|
5768
5522
|
type ExportValue = Function | Global | Memory | Table;
|
|
5769
5523
|
type Exports = Record<string, ExportValue>;
|
|
5770
5524
|
type ImportValue = ExportValue | number;
|
|
5771
|
-
type ModuleImports = Record<string, ImportValue>;
|
|
5772
5525
|
type Imports = Record<string, ModuleImports>;
|
|
5526
|
+
type ModuleImports = Record<string, ImportValue>;
|
|
5773
5527
|
function compile(bytes: BufferSource): Promise<Module>;
|
|
5774
|
-
function compileStreaming(source: Response |
|
|
5528
|
+
function compileStreaming(source: Response | PromiseLike<Response>): Promise<Module>;
|
|
5775
5529
|
function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
|
|
5776
5530
|
function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;
|
|
5777
|
-
function instantiateStreaming(
|
|
5531
|
+
function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
|
|
5778
5532
|
function validate(bytes: BufferSource): boolean;
|
|
5779
5533
|
}
|
|
5780
5534
|
|
|
5781
5535
|
interface FrameRequestCallback {
|
|
5782
|
-
(time:
|
|
5536
|
+
(time: DOMHighResTimeStamp): void;
|
|
5783
5537
|
}
|
|
5784
5538
|
|
|
5785
5539
|
interface OnErrorEventHandlerNonNull {
|
|
@@ -5799,7 +5553,7 @@ interface TransformerFlushCallback<O> {
|
|
|
5799
5553
|
}
|
|
5800
5554
|
|
|
5801
5555
|
interface TransformerStartCallback<O> {
|
|
5802
|
-
(controller: TransformStreamDefaultController<O>):
|
|
5556
|
+
(controller: TransformStreamDefaultController<O>): any;
|
|
5803
5557
|
}
|
|
5804
5558
|
|
|
5805
5559
|
interface TransformerTransformCallback<I, O> {
|
|
@@ -5807,7 +5561,7 @@ interface TransformerTransformCallback<I, O> {
|
|
|
5807
5561
|
}
|
|
5808
5562
|
|
|
5809
5563
|
interface UnderlyingSinkAbortCallback {
|
|
5810
|
-
(reason
|
|
5564
|
+
(reason?: any): void | PromiseLike<void>;
|
|
5811
5565
|
}
|
|
5812
5566
|
|
|
5813
5567
|
interface UnderlyingSinkCloseCallback {
|
|
@@ -5815,7 +5569,7 @@ interface UnderlyingSinkCloseCallback {
|
|
|
5815
5569
|
}
|
|
5816
5570
|
|
|
5817
5571
|
interface UnderlyingSinkStartCallback {
|
|
5818
|
-
(controller: WritableStreamDefaultController):
|
|
5572
|
+
(controller: WritableStreamDefaultController): any;
|
|
5819
5573
|
}
|
|
5820
5574
|
|
|
5821
5575
|
interface UnderlyingSinkWriteCallback<W> {
|
|
@@ -5823,7 +5577,7 @@ interface UnderlyingSinkWriteCallback<W> {
|
|
|
5823
5577
|
}
|
|
5824
5578
|
|
|
5825
5579
|
interface UnderlyingSourceCancelCallback {
|
|
5826
|
-
(reason
|
|
5580
|
+
(reason?: any): void | PromiseLike<void>;
|
|
5827
5581
|
}
|
|
5828
5582
|
|
|
5829
5583
|
interface UnderlyingSourcePullCallback<R> {
|
|
@@ -5831,36 +5585,27 @@ interface UnderlyingSourcePullCallback<R> {
|
|
|
5831
5585
|
}
|
|
5832
5586
|
|
|
5833
5587
|
interface UnderlyingSourceStartCallback<R> {
|
|
5834
|
-
(controller: ReadableStreamController<R>):
|
|
5588
|
+
(controller: ReadableStreamController<R>): any;
|
|
5835
5589
|
}
|
|
5836
5590
|
|
|
5837
5591
|
interface VoidFunction {
|
|
5838
5592
|
(): void;
|
|
5839
5593
|
}
|
|
5840
5594
|
|
|
5841
|
-
/**
|
|
5842
|
-
* Returns dedicatedWorkerGlobal's name, i.e. the value given to the Worker constructor. Primarily useful for debugging.
|
|
5843
|
-
*/
|
|
5595
|
+
/** Returns dedicatedWorkerGlobal's name, i.e. the value given to the Worker constructor. Primarily useful for debugging. */
|
|
5844
5596
|
declare var name: string;
|
|
5845
5597
|
declare var onmessage: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
|
|
5846
5598
|
declare var onmessageerror: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
|
|
5847
|
-
/**
|
|
5848
|
-
* Aborts dedicatedWorkerGlobal.
|
|
5849
|
-
*/
|
|
5599
|
+
/** Aborts dedicatedWorkerGlobal. */
|
|
5850
5600
|
declare function close(): void;
|
|
5851
|
-
/**
|
|
5852
|
-
* Clones message and transmits it to the Worker object associated with dedicatedWorkerGlobal. transfer can be passed as a list of objects that are to be transferred rather than cloned.
|
|
5853
|
-
*/
|
|
5601
|
+
/** Clones message and transmits it to the Worker object associated with dedicatedWorkerGlobal. transfer can be passed as a list of objects that are to be transferred rather than cloned. */
|
|
5854
5602
|
declare function postMessage(message: any, transfer: Transferable[]): void;
|
|
5855
|
-
declare function postMessage(message: any, options?:
|
|
5856
|
-
/**
|
|
5857
|
-
* Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
|
|
5858
|
-
*/
|
|
5603
|
+
declare function postMessage(message: any, options?: StructuredSerializeOptions): void;
|
|
5604
|
+
/** Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. */
|
|
5859
5605
|
declare function dispatchEvent(event: Event): boolean;
|
|
5860
|
-
/**
|
|
5861
|
-
* Returns workerGlobal's WorkerLocation object.
|
|
5862
|
-
*/
|
|
5606
|
+
/** Returns workerGlobal's WorkerLocation object. */
|
|
5863
5607
|
declare var location: WorkerLocation;
|
|
5608
|
+
/** Returns workerGlobal's WorkerNavigator object. */
|
|
5864
5609
|
declare var navigator: WorkerNavigator;
|
|
5865
5610
|
declare var onerror: ((this: DedicatedWorkerGlobalScope, ev: ErrorEvent) => any) | null;
|
|
5866
5611
|
declare var onlanguagechange: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;
|
|
@@ -5868,19 +5613,16 @@ declare var onoffline: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) |
|
|
|
5868
5613
|
declare var ononline: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;
|
|
5869
5614
|
declare var onrejectionhandled: ((this: DedicatedWorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
|
|
5870
5615
|
declare var onunhandledrejection: ((this: DedicatedWorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
|
|
5871
|
-
/**
|
|
5872
|
-
* Returns workerGlobal.
|
|
5873
|
-
*/
|
|
5616
|
+
/** Returns workerGlobal. */
|
|
5874
5617
|
declare var self: WorkerGlobalScope & typeof globalThis;
|
|
5875
|
-
/**
|
|
5876
|
-
|
|
5877
|
-
*/
|
|
5878
|
-
declare function importScripts(...urls: string[]): void;
|
|
5879
|
-
/**
|
|
5880
|
-
* Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
|
|
5881
|
-
*/
|
|
5618
|
+
/** Fetches each URL in urls, executes them one-by-one in the order they are passed, and then returns (or throws if something went amiss). */
|
|
5619
|
+
declare function importScripts(...urls: (string | URL)[]): void;
|
|
5620
|
+
/** Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. */
|
|
5882
5621
|
declare function dispatchEvent(event: Event): boolean;
|
|
5622
|
+
declare var fonts: FontFaceSet;
|
|
5623
|
+
/** Available only in secure contexts. */
|
|
5883
5624
|
declare var caches: CacheStorage;
|
|
5625
|
+
declare var crossOriginIsolated: boolean;
|
|
5884
5626
|
declare var crypto: Crypto;
|
|
5885
5627
|
declare var indexedDB: IDBFactory;
|
|
5886
5628
|
declare var isSecureContext: boolean;
|
|
@@ -5902,85 +5644,89 @@ declare function addEventListener<K extends keyof DedicatedWorkerGlobalScopeEven
|
|
|
5902
5644
|
declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
5903
5645
|
declare function removeEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
5904
5646
|
declare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
5905
|
-
type
|
|
5906
|
-
type
|
|
5907
|
-
type
|
|
5647
|
+
type AlgorithmIdentifier = Algorithm | string;
|
|
5648
|
+
type BigInteger = Uint8Array;
|
|
5649
|
+
type BinaryData = ArrayBuffer | ArrayBufferView;
|
|
5908
5650
|
type BlobPart = BufferSource | Blob | string;
|
|
5909
|
-
type
|
|
5651
|
+
type BodyInit = ReadableStream | XMLHttpRequestBodyInit;
|
|
5652
|
+
type BufferSource = ArrayBufferView | ArrayBuffer;
|
|
5910
5653
|
type CanvasImageSource = ImageBitmap | OffscreenCanvas;
|
|
5911
|
-
type
|
|
5912
|
-
type
|
|
5913
|
-
type
|
|
5914
|
-
type
|
|
5915
|
-
type
|
|
5916
|
-
type PerformanceEntryList = PerformanceEntry[];
|
|
5917
|
-
type PushMessageDataInit = BufferSource | string;
|
|
5918
|
-
type ReadableStreamReader<T> = ReadableStreamDefaultReader<T>;
|
|
5919
|
-
type ReadableStreamController<T> = ReadableStreamDefaultController<T>;
|
|
5920
|
-
type VibratePattern = number | number[];
|
|
5921
|
-
type AlgorithmIdentifier = string | Algorithm;
|
|
5922
|
-
type HashAlgorithmIdentifier = AlgorithmIdentifier;
|
|
5923
|
-
type BigInteger = Uint8Array;
|
|
5924
|
-
type NamedCurve = string;
|
|
5925
|
-
type GLenum = number;
|
|
5926
|
-
type GLboolean = boolean;
|
|
5654
|
+
type DOMHighResTimeStamp = number;
|
|
5655
|
+
type DOMTimeStamp = number;
|
|
5656
|
+
type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
|
|
5657
|
+
type Float32List = Float32Array | GLfloat[];
|
|
5658
|
+
type FormDataEntryValue = File | string;
|
|
5927
5659
|
type GLbitfield = number;
|
|
5660
|
+
type GLboolean = boolean;
|
|
5661
|
+
type GLclampf = number;
|
|
5662
|
+
type GLenum = number;
|
|
5663
|
+
type GLfloat = number;
|
|
5928
5664
|
type GLint = number;
|
|
5929
|
-
type
|
|
5665
|
+
type GLint64 = number;
|
|
5930
5666
|
type GLintptr = number;
|
|
5667
|
+
type GLsizei = number;
|
|
5931
5668
|
type GLsizeiptr = number;
|
|
5932
5669
|
type GLuint = number;
|
|
5933
|
-
type GLfloat = number;
|
|
5934
|
-
type GLclampf = number;
|
|
5935
|
-
type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas;
|
|
5936
|
-
type Float32List = Float32Array | GLfloat[];
|
|
5937
|
-
type Int32List = Int32Array | GLint[];
|
|
5938
|
-
type GLint64 = number;
|
|
5939
5670
|
type GLuint64 = number;
|
|
5940
|
-
type
|
|
5941
|
-
type
|
|
5942
|
-
type
|
|
5943
|
-
type
|
|
5944
|
-
type
|
|
5945
|
-
type
|
|
5671
|
+
type HashAlgorithmIdentifier = AlgorithmIdentifier;
|
|
5672
|
+
type HeadersInit = string[][] | Record<string, string> | Headers;
|
|
5673
|
+
type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
|
|
5674
|
+
type ImageBitmapSource = CanvasImageSource | Blob | ImageData;
|
|
5675
|
+
type Int32List = Int32Array | GLint[];
|
|
5676
|
+
type MessageEventSource = MessagePort | ServiceWorker;
|
|
5677
|
+
type NamedCurve = string;
|
|
5678
|
+
type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
|
|
5679
|
+
type PerformanceEntryList = PerformanceEntry[];
|
|
5680
|
+
type PushMessageDataInit = BufferSource | string;
|
|
5681
|
+
type ReadableStreamController<T> = ReadableStreamDefaultController<T>;
|
|
5946
5682
|
type ReadableStreamDefaultReadResult<T> = ReadableStreamDefaultReadValueResult<T> | ReadableStreamDefaultReadDoneResult;
|
|
5683
|
+
type ReadableStreamReader<T> = ReadableStreamDefaultReader<T>;
|
|
5684
|
+
type RequestInfo = Request | string;
|
|
5685
|
+
type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas;
|
|
5686
|
+
type TimerHandler = string | Function;
|
|
5687
|
+
type Transferable = ArrayBuffer | MessagePort | ImageBitmap;
|
|
5688
|
+
type Uint32List = Uint32Array | GLuint[];
|
|
5689
|
+
type VibratePattern = number | number[];
|
|
5690
|
+
type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;
|
|
5947
5691
|
type BinaryType = "arraybuffer" | "blob";
|
|
5948
|
-
type CanvasDirection = "inherit" | "ltr" | "rtl";
|
|
5949
|
-
type CanvasFillRule = "evenodd" | "nonzero";
|
|
5950
|
-
type CanvasLineCap = "butt" | "round" | "square";
|
|
5951
|
-
type CanvasLineJoin = "bevel" | "miter" | "round";
|
|
5952
|
-
type CanvasTextAlign = "center" | "end" | "left" | "right" | "start";
|
|
5953
|
-
type CanvasTextBaseline = "alphabetic" | "bottom" | "hanging" | "ideographic" | "middle" | "top";
|
|
5954
5692
|
type ClientTypes = "all" | "sharedworker" | "window" | "worker";
|
|
5693
|
+
type ColorGamut = "p3" | "rec2020" | "srgb";
|
|
5955
5694
|
type ColorSpaceConversion = "default" | "none";
|
|
5695
|
+
type ConnectionType = "bluetooth" | "cellular" | "ethernet" | "mixed" | "none" | "other" | "unknown" | "wifi";
|
|
5956
5696
|
type EndingType = "native" | "transparent";
|
|
5697
|
+
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
|
5698
|
+
type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
5957
5699
|
type FrameType = "auxiliary" | "nested" | "none" | "top-level";
|
|
5700
|
+
type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
|
|
5958
5701
|
type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
|
|
5959
5702
|
type IDBRequestReadyState = "done" | "pending";
|
|
5960
5703
|
type IDBTransactionMode = "readonly" | "readwrite" | "versionchange";
|
|
5961
5704
|
type ImageOrientation = "flipY" | "none";
|
|
5962
|
-
type ImageSmoothingQuality = "high" | "low" | "medium";
|
|
5963
5705
|
type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
|
|
5964
5706
|
type KeyType = "private" | "public" | "secret";
|
|
5965
5707
|
type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";
|
|
5708
|
+
type MediaDecodingType = "file" | "media-source" | "webrtc";
|
|
5709
|
+
type MediaEncodingType = "record" | "webrtc";
|
|
5966
5710
|
type NotificationDirection = "auto" | "ltr" | "rtl";
|
|
5967
5711
|
type NotificationPermission = "default" | "denied" | "granted";
|
|
5968
|
-
type
|
|
5969
|
-
type PermissionName = "accelerometer" | "ambient-light-sensor" | "background-fetch" | "background-sync" | "bluetooth" | "camera" | "clipboard-read" | "clipboard-write" | "device-info" | "display-capture" | "geolocation" | "gyroscope" | "magnetometer" | "microphone" | "midi" | "nfc" | "notifications" | "persistent-storage" | "push" | "speaker";
|
|
5712
|
+
type PermissionName = "geolocation" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "xr-spatial-tracking";
|
|
5970
5713
|
type PermissionState = "denied" | "granted" | "prompt";
|
|
5714
|
+
type PredefinedColorSpace = "display-p3" | "srgb";
|
|
5971
5715
|
type PremultiplyAlpha = "default" | "none" | "premultiply";
|
|
5972
5716
|
type PushEncryptionKeyName = "auth" | "p256dh";
|
|
5973
5717
|
type PushPermissionState = "denied" | "granted" | "prompt";
|
|
5974
5718
|
type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";
|
|
5975
5719
|
type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload";
|
|
5976
5720
|
type RequestCredentials = "include" | "omit" | "same-origin";
|
|
5977
|
-
type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
|
|
5721
|
+
type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
|
|
5978
5722
|
type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin";
|
|
5979
5723
|
type RequestRedirect = "error" | "follow" | "manual";
|
|
5980
5724
|
type ResizeQuality = "high" | "low" | "medium" | "pixelated";
|
|
5981
5725
|
type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect";
|
|
5726
|
+
type SecurityPolicyViolationEventDisposition = "enforce" | "report";
|
|
5982
5727
|
type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant";
|
|
5983
5728
|
type ServiceWorkerUpdateViaCache = "all" | "imports" | "none";
|
|
5729
|
+
type TransferFunction = "hlg" | "pq" | "srgb";
|
|
5984
5730
|
type VisibilityState = "hidden" | "visible";
|
|
5985
5731
|
type WebGLPowerPreference = "default" | "high-performance" | "low-power";
|
|
5986
5732
|
type WorkerType = "classic" | "module";
|