@stencil/core 3.0.0-alpha.0 → 3.0.0-alpha.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/cli/config-flags.d.ts +16 -16
- package/cli/index.cjs +6 -4
- package/cli/index.js +6 -4
- package/cli/package.json +1 -1
- package/compiler/lib.dom.d.ts +434 -251
- package/compiler/lib.dom.iterable.d.ts +7 -13
- package/compiler/lib.es2015.collection.d.ts +62 -1
- package/compiler/lib.es2015.promise.d.ts +9 -4
- package/compiler/lib.es2015.proxy.d.ts +91 -2
- package/compiler/lib.es2015.reflect.d.ts +25 -2
- package/compiler/lib.es2015.symbol.wellknown.d.ts +3 -3
- package/compiler/lib.es2017.intl.d.ts +16 -1
- package/compiler/lib.es2019.d.ts +1 -0
- package/compiler/lib.es2019.intl.d.ts +25 -0
- package/compiler/lib.es2020.intl.d.ts +31 -6
- package/compiler/lib.es2021.intl.d.ts +11 -3
- package/compiler/lib.es2022.d.ts +1 -0
- package/compiler/lib.es2022.error.d.ts +2 -2
- package/compiler/lib.es2022.sharedmemory.d.ts +27 -0
- package/compiler/lib.es5.d.ts +39 -14
- package/compiler/lib.esnext.intl.d.ts +5 -1
- package/compiler/lib.webworker.d.ts +318 -55
- package/compiler/lib.webworker.iterable.d.ts +11 -3
- package/compiler/package.json +1 -1
- package/compiler/stencil.d.ts +1 -23
- package/compiler/stencil.js +12597 -11461
- package/compiler/stencil.min.js +2 -2
- package/compiler/sys/in-memory-fs.d.ts +3 -3
- package/compiler/transpile.d.ts +32 -0
- package/dependencies.json +3 -1
- package/dev-server/client/app-error.d.ts +1 -1
- package/dev-server/client/index.js +1 -1
- package/dev-server/client/package.json +1 -1
- package/dev-server/connector.html +2 -2
- package/dev-server/index.js +1 -1
- package/dev-server/open-in-editor-api.js +1 -1
- package/dev-server/package.json +1 -1
- package/dev-server/server-process.js +2 -2
- 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 +1 -1
- package/internal/client/package.json +1 -1
- package/internal/client/patch-browser.js +1 -1
- package/internal/client/patch-esm.js +1 -1
- package/internal/client/polyfills/css-shim.js +1 -1
- package/internal/client/shadow-css.js +1 -1
- package/internal/hydrate/index.js +2 -2
- package/internal/hydrate/package.json +1 -1
- package/internal/hydrate/runner.js +4 -4
- package/internal/package.json +1 -1
- package/internal/stencil-private.d.ts +38 -37
- package/internal/stencil-public-compiler.d.ts +27 -27
- package/internal/stencil-public-runtime.d.ts +3 -3
- package/internal/testing/package.json +1 -1
- package/mock-doc/index.cjs +1 -1
- package/mock-doc/index.d.ts +2 -2
- package/mock-doc/index.js +1 -1
- package/mock-doc/package.json +1 -1
- package/package.json +8 -8
- package/screenshot/package.json +1 -1
- package/sys/node/autoprefixer.js +1 -1
- package/sys/node/glob.js +1 -1
- package/sys/node/index.js +31 -44
- package/sys/node/package.json +1 -1
- package/sys/node/prompts.js +1 -1
- package/sys/node/worker.js +1 -1
- package/testing/index.js +613 -420
- package/testing/jest/jest-preprocessor.d.ts +3 -3
- package/testing/package.json +1 -1
- package/testing/puppeteer/puppeteer-declarations.d.ts +4 -4
- package/testing/puppeteer/puppeteer-element.d.ts +3 -3
- package/testing/testing-utils.d.ts +1 -1
|
@@ -271,6 +271,10 @@ interface IDBObjectStoreParameters {
|
|
|
271
271
|
keyPath?: string | string[] | null;
|
|
272
272
|
}
|
|
273
273
|
|
|
274
|
+
interface IDBTransactionOptions {
|
|
275
|
+
durability?: IDBTransactionDurability;
|
|
276
|
+
}
|
|
277
|
+
|
|
274
278
|
interface IDBVersionChangeEventInit extends EventInit {
|
|
275
279
|
newVersion?: number | null;
|
|
276
280
|
oldVersion?: number;
|
|
@@ -496,12 +500,21 @@ interface RTCEncodedVideoFrameMetadata {
|
|
|
496
500
|
width?: number;
|
|
497
501
|
}
|
|
498
502
|
|
|
499
|
-
interface
|
|
503
|
+
interface ReadableStreamGetReaderOptions {
|
|
504
|
+
/**
|
|
505
|
+
* Creates a ReadableStreamBYOBReader and locks the stream to the new reader.
|
|
506
|
+
*
|
|
507
|
+
* This call behaves the same way as the no-argument variant, except that it only works on readable byte streams, i.e. streams which were constructed specifically with the ability to handle "bring your own buffer" reading. The returned BYOB reader provides the ability to directly read individual chunks from the stream via its read() method, into developer-supplied buffers, allowing more precise control over allocation.
|
|
508
|
+
*/
|
|
509
|
+
mode?: ReadableStreamReaderMode;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
interface ReadableStreamReadDoneResult<T> {
|
|
500
513
|
done: true;
|
|
501
|
-
value?:
|
|
514
|
+
value?: T;
|
|
502
515
|
}
|
|
503
516
|
|
|
504
|
-
interface
|
|
517
|
+
interface ReadableStreamReadValueResult<T> {
|
|
505
518
|
done: false;
|
|
506
519
|
value: T;
|
|
507
520
|
}
|
|
@@ -654,6 +667,21 @@ interface Transformer<I = any, O = any> {
|
|
|
654
667
|
writableType?: undefined;
|
|
655
668
|
}
|
|
656
669
|
|
|
670
|
+
interface UnderlyingByteSource {
|
|
671
|
+
autoAllocateChunkSize?: number;
|
|
672
|
+
cancel?: UnderlyingSourceCancelCallback;
|
|
673
|
+
pull?: (controller: ReadableByteStreamController) => void | PromiseLike<void>;
|
|
674
|
+
start?: (controller: ReadableByteStreamController) => any;
|
|
675
|
+
type: "bytes";
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
interface UnderlyingDefaultSource<R = any> {
|
|
679
|
+
cancel?: UnderlyingSourceCancelCallback;
|
|
680
|
+
pull?: (controller: ReadableStreamDefaultController<R>) => void | PromiseLike<void>;
|
|
681
|
+
start?: (controller: ReadableStreamDefaultController<R>) => any;
|
|
682
|
+
type?: undefined;
|
|
683
|
+
}
|
|
684
|
+
|
|
657
685
|
interface UnderlyingSink<W = any> {
|
|
658
686
|
abort?: UnderlyingSinkAbortCallback;
|
|
659
687
|
close?: UnderlyingSinkCloseCallback;
|
|
@@ -663,17 +691,18 @@ interface UnderlyingSink<W = any> {
|
|
|
663
691
|
}
|
|
664
692
|
|
|
665
693
|
interface UnderlyingSource<R = any> {
|
|
694
|
+
autoAllocateChunkSize?: number;
|
|
666
695
|
cancel?: UnderlyingSourceCancelCallback;
|
|
667
696
|
pull?: UnderlyingSourcePullCallback<R>;
|
|
668
697
|
start?: UnderlyingSourceStartCallback<R>;
|
|
669
|
-
type?:
|
|
698
|
+
type?: ReadableStreamType;
|
|
670
699
|
}
|
|
671
700
|
|
|
672
701
|
interface VideoColorSpaceInit {
|
|
673
|
-
fullRange?: boolean;
|
|
674
|
-
matrix?: VideoMatrixCoefficients;
|
|
675
|
-
primaries?: VideoColorPrimaries;
|
|
676
|
-
transfer?: VideoTransferCharacteristics;
|
|
702
|
+
fullRange?: boolean | null;
|
|
703
|
+
matrix?: VideoMatrixCoefficients | null;
|
|
704
|
+
primaries?: VideoColorPrimaries | null;
|
|
705
|
+
transfer?: VideoTransferCharacteristics | null;
|
|
677
706
|
}
|
|
678
707
|
|
|
679
708
|
interface VideoConfiguration {
|
|
@@ -723,7 +752,7 @@ interface AbortController {
|
|
|
723
752
|
/** Returns the AbortSignal object associated with this object. */
|
|
724
753
|
readonly signal: AbortSignal;
|
|
725
754
|
/** 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. */
|
|
726
|
-
|
|
755
|
+
abort(reason?: any): void;
|
|
727
756
|
}
|
|
728
757
|
|
|
729
758
|
declare var AbortController: {
|
|
@@ -752,6 +781,7 @@ declare var AbortSignal: {
|
|
|
752
781
|
prototype: AbortSignal;
|
|
753
782
|
new(): AbortSignal;
|
|
754
783
|
abort(reason?: any): AbortSignal;
|
|
784
|
+
timeout(milliseconds: number): AbortSignal;
|
|
755
785
|
};
|
|
756
786
|
|
|
757
787
|
interface AbstractWorkerEventMap {
|
|
@@ -868,6 +898,44 @@ declare var CacheStorage: {
|
|
|
868
898
|
new(): CacheStorage;
|
|
869
899
|
};
|
|
870
900
|
|
|
901
|
+
interface CanvasCompositing {
|
|
902
|
+
globalAlpha: number;
|
|
903
|
+
globalCompositeOperation: GlobalCompositeOperation;
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
interface CanvasDrawImage {
|
|
907
|
+
drawImage(image: CanvasImageSource, dx: number, dy: number): void;
|
|
908
|
+
drawImage(image: CanvasImageSource, dx: number, dy: number, dw: number, dh: number): void;
|
|
909
|
+
drawImage(image: CanvasImageSource, sx: number, sy: number, sw: number, sh: number, dx: number, dy: number, dw: number, dh: number): void;
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
interface CanvasDrawPath {
|
|
913
|
+
beginPath(): void;
|
|
914
|
+
clip(fillRule?: CanvasFillRule): void;
|
|
915
|
+
clip(path: Path2D, fillRule?: CanvasFillRule): void;
|
|
916
|
+
fill(fillRule?: CanvasFillRule): void;
|
|
917
|
+
fill(path: Path2D, fillRule?: CanvasFillRule): void;
|
|
918
|
+
isPointInPath(x: number, y: number, fillRule?: CanvasFillRule): boolean;
|
|
919
|
+
isPointInPath(path: Path2D, x: number, y: number, fillRule?: CanvasFillRule): boolean;
|
|
920
|
+
isPointInStroke(x: number, y: number): boolean;
|
|
921
|
+
isPointInStroke(path: Path2D, x: number, y: number): boolean;
|
|
922
|
+
stroke(): void;
|
|
923
|
+
stroke(path: Path2D): void;
|
|
924
|
+
}
|
|
925
|
+
|
|
926
|
+
interface CanvasFillStrokeStyles {
|
|
927
|
+
fillStyle: string | CanvasGradient | CanvasPattern;
|
|
928
|
+
strokeStyle: string | CanvasGradient | CanvasPattern;
|
|
929
|
+
createConicGradient(startAngle: number, x: number, y: number): CanvasGradient;
|
|
930
|
+
createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient;
|
|
931
|
+
createPattern(image: CanvasImageSource, repetition: string | null): CanvasPattern | null;
|
|
932
|
+
createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient;
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
interface CanvasFilters {
|
|
936
|
+
filter: string;
|
|
937
|
+
}
|
|
938
|
+
|
|
871
939
|
/** An opaque object describing a gradient. It is returned by the methods CanvasRenderingContext2D.createLinearGradient() or CanvasRenderingContext2D.createRadialGradient(). */
|
|
872
940
|
interface CanvasGradient {
|
|
873
941
|
/**
|
|
@@ -883,6 +951,19 @@ declare var CanvasGradient: {
|
|
|
883
951
|
new(): CanvasGradient;
|
|
884
952
|
};
|
|
885
953
|
|
|
954
|
+
interface CanvasImageData {
|
|
955
|
+
createImageData(sw: number, sh: number, settings?: ImageDataSettings): ImageData;
|
|
956
|
+
createImageData(imagedata: ImageData): ImageData;
|
|
957
|
+
getImageData(sx: number, sy: number, sw: number, sh: number, settings?: ImageDataSettings): ImageData;
|
|
958
|
+
putImageData(imagedata: ImageData, dx: number, dy: number): void;
|
|
959
|
+
putImageData(imagedata: ImageData, dx: number, dy: number, dirtyX: number, dirtyY: number, dirtyWidth: number, dirtyHeight: number): void;
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
interface CanvasImageSmoothing {
|
|
963
|
+
imageSmoothingEnabled: boolean;
|
|
964
|
+
imageSmoothingQuality: ImageSmoothingQuality;
|
|
965
|
+
}
|
|
966
|
+
|
|
886
967
|
interface CanvasPath {
|
|
887
968
|
arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;
|
|
888
969
|
arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void;
|
|
@@ -893,6 +974,17 @@ interface CanvasPath {
|
|
|
893
974
|
moveTo(x: number, y: number): void;
|
|
894
975
|
quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;
|
|
895
976
|
rect(x: number, y: number, w: number, h: number): void;
|
|
977
|
+
roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | (number | DOMPointInit)[]): void;
|
|
978
|
+
}
|
|
979
|
+
|
|
980
|
+
interface CanvasPathDrawingStyles {
|
|
981
|
+
lineCap: CanvasLineCap;
|
|
982
|
+
lineDashOffset: number;
|
|
983
|
+
lineJoin: CanvasLineJoin;
|
|
984
|
+
lineWidth: number;
|
|
985
|
+
miterLimit: number;
|
|
986
|
+
getLineDash(): number[];
|
|
987
|
+
setLineDash(segments: number[]): void;
|
|
896
988
|
}
|
|
897
989
|
|
|
898
990
|
/** An opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern() method. */
|
|
@@ -906,6 +998,49 @@ declare var CanvasPattern: {
|
|
|
906
998
|
new(): CanvasPattern;
|
|
907
999
|
};
|
|
908
1000
|
|
|
1001
|
+
interface CanvasRect {
|
|
1002
|
+
clearRect(x: number, y: number, w: number, h: number): void;
|
|
1003
|
+
fillRect(x: number, y: number, w: number, h: number): void;
|
|
1004
|
+
strokeRect(x: number, y: number, w: number, h: number): void;
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
interface CanvasShadowStyles {
|
|
1008
|
+
shadowBlur: number;
|
|
1009
|
+
shadowColor: string;
|
|
1010
|
+
shadowOffsetX: number;
|
|
1011
|
+
shadowOffsetY: number;
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
interface CanvasState {
|
|
1015
|
+
restore(): void;
|
|
1016
|
+
save(): void;
|
|
1017
|
+
}
|
|
1018
|
+
|
|
1019
|
+
interface CanvasText {
|
|
1020
|
+
fillText(text: string, x: number, y: number, maxWidth?: number): void;
|
|
1021
|
+
measureText(text: string): TextMetrics;
|
|
1022
|
+
strokeText(text: string, x: number, y: number, maxWidth?: number): void;
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
interface CanvasTextDrawingStyles {
|
|
1026
|
+
direction: CanvasDirection;
|
|
1027
|
+
font: string;
|
|
1028
|
+
fontKerning: CanvasFontKerning;
|
|
1029
|
+
textAlign: CanvasTextAlign;
|
|
1030
|
+
textBaseline: CanvasTextBaseline;
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1033
|
+
interface CanvasTransform {
|
|
1034
|
+
getTransform(): DOMMatrix;
|
|
1035
|
+
resetTransform(): void;
|
|
1036
|
+
rotate(angle: number): void;
|
|
1037
|
+
scale(x: number, y: number): void;
|
|
1038
|
+
setTransform(a: number, b: number, c: number, d: number, e: number, f: number): void;
|
|
1039
|
+
setTransform(transform?: DOMMatrix2DInit): void;
|
|
1040
|
+
transform(a: number, b: number, c: number, d: number, e: number, f: number): void;
|
|
1041
|
+
translate(x: number, y: number): void;
|
|
1042
|
+
}
|
|
1043
|
+
|
|
909
1044
|
/** 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(). */
|
|
910
1045
|
interface Client {
|
|
911
1046
|
readonly frameType: FrameType;
|
|
@@ -1004,6 +1139,7 @@ declare var CustomEvent: {
|
|
|
1004
1139
|
|
|
1005
1140
|
/** An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API. */
|
|
1006
1141
|
interface DOMException extends Error {
|
|
1142
|
+
/** @deprecated */
|
|
1007
1143
|
readonly code: number;
|
|
1008
1144
|
readonly message: string;
|
|
1009
1145
|
readonly name: string;
|
|
@@ -1311,6 +1447,13 @@ interface EXT_sRGB {
|
|
|
1311
1447
|
interface EXT_shader_texture_lod {
|
|
1312
1448
|
}
|
|
1313
1449
|
|
|
1450
|
+
interface EXT_texture_compression_bptc {
|
|
1451
|
+
readonly COMPRESSED_RGBA_BPTC_UNORM_EXT: GLenum;
|
|
1452
|
+
readonly COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT: GLenum;
|
|
1453
|
+
readonly COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT: GLenum;
|
|
1454
|
+
readonly COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT: GLenum;
|
|
1455
|
+
}
|
|
1456
|
+
|
|
1314
1457
|
interface EXT_texture_compression_rgtc {
|
|
1315
1458
|
readonly COMPRESSED_RED_GREEN_RGTC2_EXT: GLenum;
|
|
1316
1459
|
readonly COMPRESSED_RED_RGTC1_EXT: GLenum;
|
|
@@ -1324,6 +1467,17 @@ interface EXT_texture_filter_anisotropic {
|
|
|
1324
1467
|
readonly TEXTURE_MAX_ANISOTROPY_EXT: GLenum;
|
|
1325
1468
|
}
|
|
1326
1469
|
|
|
1470
|
+
interface EXT_texture_norm16 {
|
|
1471
|
+
readonly R16_EXT: GLenum;
|
|
1472
|
+
readonly R16_SNORM_EXT: GLenum;
|
|
1473
|
+
readonly RG16_EXT: GLenum;
|
|
1474
|
+
readonly RG16_SNORM_EXT: GLenum;
|
|
1475
|
+
readonly RGB16_EXT: GLenum;
|
|
1476
|
+
readonly RGB16_SNORM_EXT: GLenum;
|
|
1477
|
+
readonly RGBA16_EXT: GLenum;
|
|
1478
|
+
readonly RGBA16_SNORM_EXT: GLenum;
|
|
1479
|
+
}
|
|
1480
|
+
|
|
1327
1481
|
/** Events providing information related to errors in scripts or in files. */
|
|
1328
1482
|
interface ErrorEvent extends Event {
|
|
1329
1483
|
readonly colno: number;
|
|
@@ -1342,6 +1496,7 @@ declare var ErrorEvent: {
|
|
|
1342
1496
|
interface Event {
|
|
1343
1497
|
/** 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. */
|
|
1344
1498
|
readonly bubbles: boolean;
|
|
1499
|
+
/** @deprecated */
|
|
1345
1500
|
cancelBubble: boolean;
|
|
1346
1501
|
/** 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. */
|
|
1347
1502
|
readonly cancelable: boolean;
|
|
@@ -1466,7 +1621,7 @@ declare var EventTarget: {
|
|
|
1466
1621
|
|
|
1467
1622
|
/** Extends the lifetime of the install and activate events dispatched on the global scope as part of the service worker lifecycle. This ensures that any functional events (like FetchEvent) are not dispatched until it upgrades database schemas and deletes the outdated cache entries. */
|
|
1468
1623
|
interface ExtendableEvent extends Event {
|
|
1469
|
-
waitUntil(f: any): void;
|
|
1624
|
+
waitUntil(f: Promise<any>): void;
|
|
1470
1625
|
}
|
|
1471
1626
|
|
|
1472
1627
|
declare var ExtendableEvent: {
|
|
@@ -1801,7 +1956,7 @@ interface IDBDatabase extends EventTarget {
|
|
|
1801
1956
|
*/
|
|
1802
1957
|
deleteObjectStore(name: string): void;
|
|
1803
1958
|
/** 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. */
|
|
1804
|
-
transaction(storeNames: string | string[], mode?: IDBTransactionMode): IDBTransaction;
|
|
1959
|
+
transaction(storeNames: string | string[], mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;
|
|
1805
1960
|
addEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1806
1961
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1807
1962
|
removeEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -2025,13 +2180,13 @@ declare var IDBObjectStore: {
|
|
|
2025
2180
|
};
|
|
2026
2181
|
|
|
2027
2182
|
interface IDBOpenDBRequestEventMap extends IDBRequestEventMap {
|
|
2028
|
-
"blocked":
|
|
2183
|
+
"blocked": IDBVersionChangeEvent;
|
|
2029
2184
|
"upgradeneeded": IDBVersionChangeEvent;
|
|
2030
2185
|
}
|
|
2031
2186
|
|
|
2032
2187
|
/** Also inherits methods from its parents IDBRequest and EventTarget. */
|
|
2033
2188
|
interface IDBOpenDBRequest extends IDBRequest<IDBDatabase> {
|
|
2034
|
-
onblocked: ((this: IDBOpenDBRequest, ev:
|
|
2189
|
+
onblocked: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;
|
|
2035
2190
|
onupgradeneeded: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;
|
|
2036
2191
|
addEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2037
2192
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -2304,10 +2459,6 @@ interface NavigatorLocks {
|
|
|
2304
2459
|
readonly locks: LockManager;
|
|
2305
2460
|
}
|
|
2306
2461
|
|
|
2307
|
-
interface NavigatorNetworkInformation {
|
|
2308
|
-
readonly connection: NetworkInformation;
|
|
2309
|
-
}
|
|
2310
|
-
|
|
2311
2462
|
interface NavigatorOnLine {
|
|
2312
2463
|
readonly onLine: boolean;
|
|
2313
2464
|
}
|
|
@@ -2317,15 +2468,6 @@ interface NavigatorStorage {
|
|
|
2317
2468
|
readonly storage: StorageManager;
|
|
2318
2469
|
}
|
|
2319
2470
|
|
|
2320
|
-
interface NetworkInformation extends EventTarget {
|
|
2321
|
-
readonly type: ConnectionType;
|
|
2322
|
-
}
|
|
2323
|
-
|
|
2324
|
-
declare var NetworkInformation: {
|
|
2325
|
-
prototype: NetworkInformation;
|
|
2326
|
-
new(): NetworkInformation;
|
|
2327
|
-
};
|
|
2328
|
-
|
|
2329
2471
|
interface NotificationEventMap {
|
|
2330
2472
|
"click": Event;
|
|
2331
2473
|
"close": Event;
|
|
@@ -2370,6 +2512,16 @@ declare var NotificationEvent: {
|
|
|
2370
2512
|
new(type: string, eventInitDict: NotificationEventInit): NotificationEvent;
|
|
2371
2513
|
};
|
|
2372
2514
|
|
|
2515
|
+
interface OES_draw_buffers_indexed {
|
|
2516
|
+
blendEquationSeparateiOES(buf: GLuint, modeRGB: GLenum, modeAlpha: GLenum): void;
|
|
2517
|
+
blendEquationiOES(buf: GLuint, mode: GLenum): void;
|
|
2518
|
+
blendFuncSeparateiOES(buf: GLuint, srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;
|
|
2519
|
+
blendFunciOES(buf: GLuint, src: GLenum, dst: GLenum): void;
|
|
2520
|
+
colorMaskiOES(buf: GLuint, r: GLboolean, g: GLboolean, b: GLboolean, a: GLboolean): void;
|
|
2521
|
+
disableiOES(target: GLenum, index: GLuint): void;
|
|
2522
|
+
enableiOES(target: GLenum, index: GLuint): void;
|
|
2523
|
+
}
|
|
2524
|
+
|
|
2373
2525
|
/** The OES_element_index_uint extension is part of the WebGL API and adds support for gl.UNSIGNED_INT types to WebGLRenderingContext.drawElements(). */
|
|
2374
2526
|
interface OES_element_index_uint {
|
|
2375
2527
|
}
|
|
@@ -2415,10 +2567,57 @@ interface OVR_multiview2 {
|
|
|
2415
2567
|
readonly MAX_VIEWS_OVR: GLenum;
|
|
2416
2568
|
}
|
|
2417
2569
|
|
|
2418
|
-
|
|
2570
|
+
interface OffscreenCanvasEventMap {
|
|
2571
|
+
"contextlost": Event;
|
|
2572
|
+
"contextrestored": Event;
|
|
2573
|
+
}
|
|
2574
|
+
|
|
2419
2575
|
interface OffscreenCanvas extends EventTarget {
|
|
2576
|
+
/**
|
|
2577
|
+
* These attributes return the dimensions of the OffscreenCanvas object's bitmap.
|
|
2578
|
+
*
|
|
2579
|
+
* They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).
|
|
2580
|
+
*/
|
|
2581
|
+
height: number;
|
|
2582
|
+
oncontextlost: ((this: OffscreenCanvas, ev: Event) => any) | null;
|
|
2583
|
+
oncontextrestored: ((this: OffscreenCanvas, ev: Event) => any) | null;
|
|
2584
|
+
/**
|
|
2585
|
+
* These attributes return the dimensions of the OffscreenCanvas object's bitmap.
|
|
2586
|
+
*
|
|
2587
|
+
* They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).
|
|
2588
|
+
*/
|
|
2589
|
+
width: number;
|
|
2590
|
+
/**
|
|
2591
|
+
* 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.
|
|
2592
|
+
*
|
|
2593
|
+
* 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]
|
|
2594
|
+
*
|
|
2595
|
+
* 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).
|
|
2596
|
+
*/
|
|
2597
|
+
getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null;
|
|
2598
|
+
/** 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. */
|
|
2599
|
+
transferToImageBitmap(): ImageBitmap;
|
|
2600
|
+
addEventListener<K extends keyof OffscreenCanvasEventMap>(type: K, listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2601
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
2602
|
+
removeEventListener<K extends keyof OffscreenCanvasEventMap>(type: K, listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2603
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
2420
2604
|
}
|
|
2421
2605
|
|
|
2606
|
+
declare var OffscreenCanvas: {
|
|
2607
|
+
prototype: OffscreenCanvas;
|
|
2608
|
+
new(width: number, height: number): OffscreenCanvas;
|
|
2609
|
+
};
|
|
2610
|
+
|
|
2611
|
+
interface OffscreenCanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform {
|
|
2612
|
+
readonly canvas: OffscreenCanvas;
|
|
2613
|
+
commit(): void;
|
|
2614
|
+
}
|
|
2615
|
+
|
|
2616
|
+
declare var OffscreenCanvasRenderingContext2D: {
|
|
2617
|
+
prototype: OffscreenCanvasRenderingContext2D;
|
|
2618
|
+
new(): OffscreenCanvasRenderingContext2D;
|
|
2619
|
+
};
|
|
2620
|
+
|
|
2422
2621
|
/** 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. */
|
|
2423
2622
|
interface Path2D extends CanvasPath {
|
|
2424
2623
|
/** Adds to the path the path given by the argument. */
|
|
@@ -2562,6 +2761,7 @@ interface PermissionStatusEventMap {
|
|
|
2562
2761
|
}
|
|
2563
2762
|
|
|
2564
2763
|
interface PermissionStatus extends EventTarget {
|
|
2764
|
+
readonly name: string;
|
|
2565
2765
|
onchange: ((this: PermissionStatus, ev: Event) => any) | null;
|
|
2566
2766
|
readonly state: PermissionState;
|
|
2567
2767
|
addEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -2658,6 +2858,7 @@ declare var PushMessageData: {
|
|
|
2658
2858
|
*/
|
|
2659
2859
|
interface PushSubscription {
|
|
2660
2860
|
readonly endpoint: string;
|
|
2861
|
+
readonly expirationTime: EpochTimeStamp | null;
|
|
2661
2862
|
readonly options: PushSubscriptionOptions;
|
|
2662
2863
|
getKey(name: PushEncryptionKeyName): ArrayBuffer | null;
|
|
2663
2864
|
toJSON(): PushSubscriptionJSON;
|
|
@@ -2672,6 +2873,7 @@ declare var PushSubscription: {
|
|
|
2672
2873
|
/** Available only in secure contexts. */
|
|
2673
2874
|
interface PushSubscriptionOptions {
|
|
2674
2875
|
readonly applicationServerKey: ArrayBuffer | null;
|
|
2876
|
+
readonly userVisibleOnly: boolean;
|
|
2675
2877
|
}
|
|
2676
2878
|
|
|
2677
2879
|
declare var PushSubscriptionOptions: {
|
|
@@ -2702,11 +2904,26 @@ declare var RTCEncodedVideoFrame: {
|
|
|
2702
2904
|
new(): RTCEncodedVideoFrame;
|
|
2703
2905
|
};
|
|
2704
2906
|
|
|
2907
|
+
interface ReadableByteStreamController {
|
|
2908
|
+
readonly byobRequest: ReadableStreamBYOBRequest | null;
|
|
2909
|
+
readonly desiredSize: number | null;
|
|
2910
|
+
close(): void;
|
|
2911
|
+
enqueue(chunk: ArrayBufferView): void;
|
|
2912
|
+
error(e?: any): void;
|
|
2913
|
+
}
|
|
2914
|
+
|
|
2915
|
+
declare var ReadableByteStreamController: {
|
|
2916
|
+
prototype: ReadableByteStreamController;
|
|
2917
|
+
new(): ReadableByteStreamController;
|
|
2918
|
+
};
|
|
2919
|
+
|
|
2705
2920
|
/** This Streams API interface represents a readable stream of byte data. The Fetch API offers a concrete instance of a ReadableStream through the body property of a Response object. */
|
|
2706
2921
|
interface ReadableStream<R = any> {
|
|
2707
2922
|
readonly locked: boolean;
|
|
2708
2923
|
cancel(reason?: any): Promise<void>;
|
|
2924
|
+
getReader(options: { mode: "byob" }): ReadableStreamBYOBReader;
|
|
2709
2925
|
getReader(): ReadableStreamDefaultReader<R>;
|
|
2926
|
+
getReader(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<R>;
|
|
2710
2927
|
pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;
|
|
2711
2928
|
pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;
|
|
2712
2929
|
tee(): [ReadableStream<R>, ReadableStream<R>];
|
|
@@ -2714,9 +2931,32 @@ interface ReadableStream<R = any> {
|
|
|
2714
2931
|
|
|
2715
2932
|
declare var ReadableStream: {
|
|
2716
2933
|
prototype: ReadableStream;
|
|
2934
|
+
new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream<Uint8Array>;
|
|
2935
|
+
new<R = any>(underlyingSource: UnderlyingDefaultSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
|
|
2717
2936
|
new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
|
|
2718
2937
|
};
|
|
2719
2938
|
|
|
2939
|
+
interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
|
|
2940
|
+
read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>;
|
|
2941
|
+
releaseLock(): void;
|
|
2942
|
+
}
|
|
2943
|
+
|
|
2944
|
+
declare var ReadableStreamBYOBReader: {
|
|
2945
|
+
prototype: ReadableStreamBYOBReader;
|
|
2946
|
+
new(stream: ReadableStream): ReadableStreamBYOBReader;
|
|
2947
|
+
};
|
|
2948
|
+
|
|
2949
|
+
interface ReadableStreamBYOBRequest {
|
|
2950
|
+
readonly view: ArrayBufferView | null;
|
|
2951
|
+
respond(bytesWritten: number): void;
|
|
2952
|
+
respondWithNewView(view: ArrayBufferView): void;
|
|
2953
|
+
}
|
|
2954
|
+
|
|
2955
|
+
declare var ReadableStreamBYOBRequest: {
|
|
2956
|
+
prototype: ReadableStreamBYOBRequest;
|
|
2957
|
+
new(): ReadableStreamBYOBRequest;
|
|
2958
|
+
};
|
|
2959
|
+
|
|
2720
2960
|
interface ReadableStreamDefaultController<R = any> {
|
|
2721
2961
|
readonly desiredSize: number | null;
|
|
2722
2962
|
close(): void;
|
|
@@ -2730,7 +2970,7 @@ declare var ReadableStreamDefaultController: {
|
|
|
2730
2970
|
};
|
|
2731
2971
|
|
|
2732
2972
|
interface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader {
|
|
2733
|
-
read(): Promise<
|
|
2973
|
+
read(): Promise<ReadableStreamReadResult<R>>;
|
|
2734
2974
|
releaseLock(): void;
|
|
2735
2975
|
}
|
|
2736
2976
|
|
|
@@ -2885,6 +3125,7 @@ interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
|
|
|
2885
3125
|
"notificationclick": NotificationEvent;
|
|
2886
3126
|
"notificationclose": NotificationEvent;
|
|
2887
3127
|
"push": PushEvent;
|
|
3128
|
+
"pushsubscriptionchange": Event;
|
|
2888
3129
|
}
|
|
2889
3130
|
|
|
2890
3131
|
/** This ServiceWorker API interface represents the global execution context of a service worker. */
|
|
@@ -2898,7 +3139,9 @@ interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
|
|
|
2898
3139
|
onnotificationclick: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
|
|
2899
3140
|
onnotificationclose: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
|
|
2900
3141
|
onpush: ((this: ServiceWorkerGlobalScope, ev: PushEvent) => any) | null;
|
|
3142
|
+
onpushsubscriptionchange: ((this: ServiceWorkerGlobalScope, ev: Event) => any) | null;
|
|
2901
3143
|
readonly registration: ServiceWorkerRegistration;
|
|
3144
|
+
readonly serviceWorker: ServiceWorker;
|
|
2902
3145
|
skipWaiting(): Promise<void>;
|
|
2903
3146
|
addEventListener<K extends keyof ServiceWorkerGlobalScopeEventMap>(type: K, listener: (this: ServiceWorkerGlobalScope, ev: ServiceWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2904
3147
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -2981,11 +3224,11 @@ declare var StorageManager: {
|
|
|
2981
3224
|
* Available only in secure contexts.
|
|
2982
3225
|
*/
|
|
2983
3226
|
interface SubtleCrypto {
|
|
2984
|
-
decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<
|
|
3227
|
+
decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
|
|
2985
3228
|
deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length: number): Promise<ArrayBuffer>;
|
|
2986
3229
|
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
|
|
2987
3230
|
digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>;
|
|
2988
|
-
encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<
|
|
3231
|
+
encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
|
|
2989
3232
|
exportKey(format: "jwk", key: CryptoKey): Promise<JsonWebKey>;
|
|
2990
3233
|
exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>;
|
|
2991
3234
|
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
|
|
@@ -3313,8 +3556,8 @@ interface WEBGL_lose_context {
|
|
|
3313
3556
|
interface WEBGL_multi_draw {
|
|
3314
3557
|
multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: GLuint, countsList: Int32Array | GLsizei[], countsOffset: GLuint, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: GLuint, drawcount: GLsizei): void;
|
|
3315
3558
|
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: GLuint, countsList: Int32Array | GLsizei[], countsOffset: GLuint, drawcount: GLsizei): void;
|
|
3316
|
-
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array |
|
|
3317
|
-
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array |
|
|
3559
|
+
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: GLuint, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: GLuint, drawcount: GLsizei): void;
|
|
3560
|
+
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: GLuint, drawcount: GLsizei): void;
|
|
3318
3561
|
}
|
|
3319
3562
|
|
|
3320
3563
|
interface WebGL2RenderingContext extends WebGL2RenderingContextBase, WebGL2RenderingContextOverloads, WebGLRenderingContextBase {
|
|
@@ -4712,35 +4955,39 @@ interface WebGLRenderingContextBase {
|
|
|
4712
4955
|
getBufferParameter(target: GLenum, pname: GLenum): any;
|
|
4713
4956
|
getContextAttributes(): WebGLContextAttributes | null;
|
|
4714
4957
|
getError(): GLenum;
|
|
4958
|
+
getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;
|
|
4715
4959
|
getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null;
|
|
4716
4960
|
getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null;
|
|
4717
4961
|
getExtension(extensionName: "EXT_color_buffer_half_float"): EXT_color_buffer_half_float | null;
|
|
4718
4962
|
getExtension(extensionName: "EXT_float_blend"): EXT_float_blend | null;
|
|
4719
|
-
getExtension(extensionName: "EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic | null;
|
|
4720
4963
|
getExtension(extensionName: "EXT_frag_depth"): EXT_frag_depth | null;
|
|
4721
|
-
getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod | null;
|
|
4722
4964
|
getExtension(extensionName: "EXT_sRGB"): EXT_sRGB | null;
|
|
4965
|
+
getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod | null;
|
|
4966
|
+
getExtension(extensionName: "EXT_texture_compression_bptc"): EXT_texture_compression_bptc | null;
|
|
4967
|
+
getExtension(extensionName: "EXT_texture_compression_rgtc"): EXT_texture_compression_rgtc | null;
|
|
4968
|
+
getExtension(extensionName: "EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic | null;
|
|
4723
4969
|
getExtension(extensionName: "KHR_parallel_shader_compile"): KHR_parallel_shader_compile | null;
|
|
4970
|
+
getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null;
|
|
4971
|
+
getExtension(extensionName: "OES_fbo_render_mipmap"): OES_fbo_render_mipmap | null;
|
|
4972
|
+
getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null;
|
|
4973
|
+
getExtension(extensionName: "OES_texture_float"): OES_texture_float | null;
|
|
4974
|
+
getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear | null;
|
|
4975
|
+
getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float | null;
|
|
4976
|
+
getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear | null;
|
|
4724
4977
|
getExtension(extensionName: "OES_vertex_array_object"): OES_vertex_array_object | null;
|
|
4725
4978
|
getExtension(extensionName: "OVR_multiview2"): OVR_multiview2 | null;
|
|
4726
4979
|
getExtension(extensionName: "WEBGL_color_buffer_float"): WEBGL_color_buffer_float | null;
|
|
4727
4980
|
getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc | null;
|
|
4728
4981
|
getExtension(extensionName: "WEBGL_compressed_texture_etc"): WEBGL_compressed_texture_etc | null;
|
|
4729
4982
|
getExtension(extensionName: "WEBGL_compressed_texture_etc1"): WEBGL_compressed_texture_etc1 | null;
|
|
4983
|
+
getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null;
|
|
4730
4984
|
getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb | null;
|
|
4985
|
+
getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info | null;
|
|
4731
4986
|
getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null;
|
|
4987
|
+
getExtension(extensionName: "WEBGL_depth_texture"): WEBGL_depth_texture | null;
|
|
4732
4988
|
getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;
|
|
4733
4989
|
getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null;
|
|
4734
|
-
getExtension(extensionName: "
|
|
4735
|
-
getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info | null;
|
|
4736
|
-
getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null;
|
|
4737
|
-
getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear | null;
|
|
4738
|
-
getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float | null;
|
|
4739
|
-
getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear | null;
|
|
4740
|
-
getExtension(extensionName: "OES_texture_float"): OES_texture_float | null;
|
|
4741
|
-
getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null;
|
|
4742
|
-
getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null;
|
|
4743
|
-
getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;
|
|
4990
|
+
getExtension(extensionName: "WEBGL_multi_draw"): WEBGL_multi_draw | null;
|
|
4744
4991
|
getExtension(name: string): any;
|
|
4745
4992
|
getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any;
|
|
4746
4993
|
getParameter(pname: GLenum): any;
|
|
@@ -5278,8 +5525,8 @@ interface WindowOrWorkerGlobalScope {
|
|
|
5278
5525
|
readonly performance: Performance;
|
|
5279
5526
|
atob(data: string): string;
|
|
5280
5527
|
btoa(data: string): string;
|
|
5281
|
-
clearInterval(id
|
|
5282
|
-
clearTimeout(id
|
|
5528
|
+
clearInterval(id: number | undefined): void;
|
|
5529
|
+
clearTimeout(id: number | undefined): void;
|
|
5283
5530
|
createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
5284
5531
|
createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
5285
5532
|
fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
|
|
@@ -5371,7 +5618,7 @@ declare var WorkerLocation: {
|
|
|
5371
5618
|
};
|
|
5372
5619
|
|
|
5373
5620
|
/** 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. */
|
|
5374
|
-
interface WorkerNavigator extends NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorLocks,
|
|
5621
|
+
interface WorkerNavigator extends NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorStorage {
|
|
5375
5622
|
readonly mediaCapabilities: MediaCapabilities;
|
|
5376
5623
|
}
|
|
5377
5624
|
|
|
@@ -5395,6 +5642,7 @@ declare var WritableStream: {
|
|
|
5395
5642
|
|
|
5396
5643
|
/** This Streams API interface represents a controller allowing control of a WritableStream's state. When constructing a WritableStream, the underlying sink is given a corresponding WritableStreamDefaultController instance to manipulate. */
|
|
5397
5644
|
interface WritableStreamDefaultController {
|
|
5645
|
+
readonly signal: AbortSignal;
|
|
5398
5646
|
error(e?: any): void;
|
|
5399
5647
|
}
|
|
5400
5648
|
|
|
@@ -5818,8 +6066,8 @@ declare var origin: string;
|
|
|
5818
6066
|
declare var performance: Performance;
|
|
5819
6067
|
declare function atob(data: string): string;
|
|
5820
6068
|
declare function btoa(data: string): string;
|
|
5821
|
-
declare function clearInterval(id
|
|
5822
|
-
declare function clearTimeout(id
|
|
6069
|
+
declare function clearInterval(id: number | undefined): void;
|
|
6070
|
+
declare function clearTimeout(id: number | undefined): void;
|
|
5823
6071
|
declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
5824
6072
|
declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
5825
6073
|
declare function fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
|
|
@@ -5859,42 +6107,54 @@ type GLsizeiptr = number;
|
|
|
5859
6107
|
type GLuint = number;
|
|
5860
6108
|
type GLuint64 = number;
|
|
5861
6109
|
type HashAlgorithmIdentifier = AlgorithmIdentifier;
|
|
5862
|
-
type HeadersInit = string
|
|
6110
|
+
type HeadersInit = [string, string][] | Record<string, string> | Headers;
|
|
5863
6111
|
type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
|
|
5864
6112
|
type ImageBitmapSource = CanvasImageSource | Blob | ImageData;
|
|
5865
6113
|
type Int32List = Int32Array | GLint[];
|
|
5866
6114
|
type MessageEventSource = MessagePort | ServiceWorker;
|
|
5867
6115
|
type NamedCurve = string;
|
|
6116
|
+
type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
|
|
5868
6117
|
type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
|
|
5869
6118
|
type PerformanceEntryList = PerformanceEntry[];
|
|
5870
6119
|
type PushMessageDataInit = BufferSource | string;
|
|
5871
|
-
type ReadableStreamController<T> = ReadableStreamDefaultController<T
|
|
5872
|
-
type
|
|
5873
|
-
type ReadableStreamReader<T> = ReadableStreamDefaultReader<T
|
|
6120
|
+
type ReadableStreamController<T> = ReadableStreamDefaultController<T> | ReadableByteStreamController;
|
|
6121
|
+
type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>;
|
|
6122
|
+
type ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBYOBReader;
|
|
5874
6123
|
type RequestInfo = Request | string;
|
|
5875
6124
|
type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas;
|
|
5876
6125
|
type TimerHandler = string | Function;
|
|
5877
|
-
type Transferable =
|
|
6126
|
+
type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer;
|
|
5878
6127
|
type Uint32List = Uint32Array | GLuint[];
|
|
5879
6128
|
type VibratePattern = number | number[];
|
|
5880
6129
|
type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;
|
|
5881
6130
|
type BinaryType = "arraybuffer" | "blob";
|
|
6131
|
+
type CanvasDirection = "inherit" | "ltr" | "rtl";
|
|
6132
|
+
type CanvasFillRule = "evenodd" | "nonzero";
|
|
6133
|
+
type CanvasFontKerning = "auto" | "none" | "normal";
|
|
6134
|
+
type CanvasFontStretch = "condensed" | "expanded" | "extra-condensed" | "extra-expanded" | "normal" | "semi-condensed" | "semi-expanded" | "ultra-condensed" | "ultra-expanded";
|
|
6135
|
+
type CanvasFontVariantCaps = "all-petite-caps" | "all-small-caps" | "normal" | "petite-caps" | "small-caps" | "titling-caps" | "unicase";
|
|
6136
|
+
type CanvasLineCap = "butt" | "round" | "square";
|
|
6137
|
+
type CanvasLineJoin = "bevel" | "miter" | "round";
|
|
6138
|
+
type CanvasTextAlign = "center" | "end" | "left" | "right" | "start";
|
|
6139
|
+
type CanvasTextBaseline = "alphabetic" | "bottom" | "hanging" | "ideographic" | "middle" | "top";
|
|
6140
|
+
type CanvasTextRendering = "auto" | "geometricPrecision" | "optimizeLegibility" | "optimizeSpeed";
|
|
5882
6141
|
type ClientTypes = "all" | "sharedworker" | "window" | "worker";
|
|
5883
6142
|
type ColorGamut = "p3" | "rec2020" | "srgb";
|
|
5884
6143
|
type ColorSpaceConversion = "default" | "none";
|
|
5885
|
-
type ConnectionType = "bluetooth" | "cellular" | "ethernet" | "mixed" | "none" | "other" | "unknown" | "wifi";
|
|
5886
6144
|
type DocumentVisibilityState = "hidden" | "visible";
|
|
5887
6145
|
type EndingType = "native" | "transparent";
|
|
5888
6146
|
type FileSystemHandleKind = "directory" | "file";
|
|
5889
6147
|
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
|
5890
6148
|
type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
5891
6149
|
type FrameType = "auxiliary" | "nested" | "none" | "top-level";
|
|
6150
|
+
type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor";
|
|
5892
6151
|
type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
|
|
5893
6152
|
type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
|
|
5894
6153
|
type IDBRequestReadyState = "done" | "pending";
|
|
5895
6154
|
type IDBTransactionDurability = "default" | "relaxed" | "strict";
|
|
5896
6155
|
type IDBTransactionMode = "readonly" | "readwrite" | "versionchange";
|
|
5897
6156
|
type ImageOrientation = "flipY" | "none";
|
|
6157
|
+
type ImageSmoothingQuality = "high" | "low" | "medium";
|
|
5898
6158
|
type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
|
|
5899
6159
|
type KeyType = "private" | "public" | "secret";
|
|
5900
6160
|
type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";
|
|
@@ -5903,12 +6163,15 @@ type MediaDecodingType = "file" | "media-source" | "webrtc";
|
|
|
5903
6163
|
type MediaEncodingType = "record" | "webrtc";
|
|
5904
6164
|
type NotificationDirection = "auto" | "ltr" | "rtl";
|
|
5905
6165
|
type NotificationPermission = "default" | "denied" | "granted";
|
|
6166
|
+
type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";
|
|
5906
6167
|
type PermissionName = "geolocation" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "xr-spatial-tracking";
|
|
5907
6168
|
type PermissionState = "denied" | "granted" | "prompt";
|
|
5908
6169
|
type PredefinedColorSpace = "display-p3" | "srgb";
|
|
5909
6170
|
type PremultiplyAlpha = "default" | "none" | "premultiply";
|
|
5910
6171
|
type PushEncryptionKeyName = "auth" | "p256dh";
|
|
5911
6172
|
type RTCEncodedVideoFrameType = "delta" | "empty" | "key";
|
|
6173
|
+
type ReadableStreamReaderMode = "byob";
|
|
6174
|
+
type ReadableStreamType = "bytes";
|
|
5912
6175
|
type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";
|
|
5913
6176
|
type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload";
|
|
5914
6177
|
type RequestCredentials = "include" | "omit" | "same-origin";
|