typescript 4.9.0-dev.20221025 → 4.9.0-dev.20221026
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/lib.dom.d.ts +111 -14
- package/lib/lib.dom.iterable.d.ts +6 -2
- package/lib/lib.webworker.d.ts +193 -6
- package/lib/lib.webworker.iterable.d.ts +10 -2
- package/lib/tsc.js +1 -1
- package/lib/tsserver.js +14 -5
- package/lib/tsserverlibrary.js +14 -5
- package/lib/typescript.js +14 -5
- package/lib/typescriptServices.js +14 -5
- package/lib/typingsInstaller.js +1 -1
- package/package.json +1 -1
package/lib/lib.dom.d.ts
CHANGED
|
@@ -137,11 +137,13 @@ interface AudioWorkletNodeOptions extends AudioNodeOptions {
|
|
|
137
137
|
interface AuthenticationExtensionsClientInputs {
|
|
138
138
|
appid?: string;
|
|
139
139
|
credProps?: boolean;
|
|
140
|
+
hmacCreateSecret?: boolean;
|
|
140
141
|
}
|
|
141
142
|
|
|
142
143
|
interface AuthenticationExtensionsClientOutputs {
|
|
143
144
|
appid?: boolean;
|
|
144
145
|
credProps?: CredentialPropertiesOutput;
|
|
146
|
+
hmacCreateSecret?: boolean;
|
|
145
147
|
}
|
|
146
148
|
|
|
147
149
|
interface AuthenticatorSelectionCriteria {
|
|
@@ -1344,6 +1346,7 @@ interface RTCInboundRtpStreamStats extends RTCReceivedRtpStreamStats {
|
|
|
1344
1346
|
frameHeight?: number;
|
|
1345
1347
|
frameWidth?: number;
|
|
1346
1348
|
framesDecoded?: number;
|
|
1349
|
+
framesDropped?: number;
|
|
1347
1350
|
framesPerSecond?: number;
|
|
1348
1351
|
framesReceived?: number;
|
|
1349
1352
|
headerBytesReceived?: number;
|
|
@@ -1363,6 +1366,7 @@ interface RTCInboundRtpStreamStats extends RTCReceivedRtpStreamStats {
|
|
|
1363
1366
|
totalAudioEnergy?: number;
|
|
1364
1367
|
totalDecodeTime?: number;
|
|
1365
1368
|
totalInterFrameDelay?: number;
|
|
1369
|
+
totalProcessingDelay?: number;
|
|
1366
1370
|
totalSamplesDuration?: number;
|
|
1367
1371
|
totalSamplesReceived?: number;
|
|
1368
1372
|
totalSquaredInterFrameDelay?: number;
|
|
@@ -1421,7 +1425,6 @@ interface RTCPeerConnectionIceEventInit extends EventInit {
|
|
|
1421
1425
|
}
|
|
1422
1426
|
|
|
1423
1427
|
interface RTCReceivedRtpStreamStats extends RTCRtpStreamStats {
|
|
1424
|
-
framesDropped?: number;
|
|
1425
1428
|
jitter?: number;
|
|
1426
1429
|
packetsLost?: number;
|
|
1427
1430
|
packetsReceived?: number;
|
|
@@ -1466,6 +1469,8 @@ interface RTCRtpContributingSource {
|
|
|
1466
1469
|
interface RTCRtpEncodingParameters extends RTCRtpCodingParameters {
|
|
1467
1470
|
active?: boolean;
|
|
1468
1471
|
maxBitrate?: number;
|
|
1472
|
+
maxFramerate?: number;
|
|
1473
|
+
networkPriority?: RTCPriorityType;
|
|
1469
1474
|
priority?: RTCPriorityType;
|
|
1470
1475
|
scaleResolutionDownBy?: number;
|
|
1471
1476
|
}
|
|
@@ -1886,10 +1891,10 @@ interface ValidityStateFlags {
|
|
|
1886
1891
|
}
|
|
1887
1892
|
|
|
1888
1893
|
interface VideoColorSpaceInit {
|
|
1889
|
-
fullRange?: boolean;
|
|
1890
|
-
matrix?: VideoMatrixCoefficients;
|
|
1891
|
-
primaries?: VideoColorPrimaries;
|
|
1892
|
-
transfer?: VideoTransferCharacteristics;
|
|
1894
|
+
fullRange?: boolean | null;
|
|
1895
|
+
matrix?: VideoMatrixCoefficients | null;
|
|
1896
|
+
primaries?: VideoColorPrimaries | null;
|
|
1897
|
+
transfer?: VideoTransferCharacteristics | null;
|
|
1893
1898
|
}
|
|
1894
1899
|
|
|
1895
1900
|
interface VideoConfiguration {
|
|
@@ -1904,7 +1909,7 @@ interface VideoConfiguration {
|
|
|
1904
1909
|
width: number;
|
|
1905
1910
|
}
|
|
1906
1911
|
|
|
1907
|
-
interface
|
|
1912
|
+
interface VideoFrameCallbackMetadata {
|
|
1908
1913
|
captureTime?: DOMHighResTimeStamp;
|
|
1909
1914
|
expectedDisplayTime: DOMHighResTimeStamp;
|
|
1910
1915
|
height: number;
|
|
@@ -2066,7 +2071,7 @@ interface AbortSignal extends EventTarget {
|
|
|
2066
2071
|
declare var AbortSignal: {
|
|
2067
2072
|
prototype: AbortSignal;
|
|
2068
2073
|
new(): AbortSignal;
|
|
2069
|
-
|
|
2074
|
+
abort(reason?: any): AbortSignal;
|
|
2070
2075
|
timeout(milliseconds: number): AbortSignal;
|
|
2071
2076
|
};
|
|
2072
2077
|
|
|
@@ -2202,7 +2207,7 @@ declare var AnimationPlaybackEvent: {
|
|
|
2202
2207
|
};
|
|
2203
2208
|
|
|
2204
2209
|
interface AnimationTimeline {
|
|
2205
|
-
readonly currentTime:
|
|
2210
|
+
readonly currentTime: CSSNumberish | null;
|
|
2206
2211
|
}
|
|
2207
2212
|
|
|
2208
2213
|
declare var AnimationTimeline: {
|
|
@@ -2455,6 +2460,8 @@ declare var AuthenticatorAssertionResponse: {
|
|
|
2455
2460
|
interface AuthenticatorAttestationResponse extends AuthenticatorResponse {
|
|
2456
2461
|
readonly attestationObject: ArrayBuffer;
|
|
2457
2462
|
getAuthenticatorData(): ArrayBuffer;
|
|
2463
|
+
getPublicKey(): ArrayBuffer | null;
|
|
2464
|
+
getPublicKeyAlgorithm(): COSEAlgorithmIdentifier;
|
|
2458
2465
|
getTransports(): string[];
|
|
2459
2466
|
}
|
|
2460
2467
|
|
|
@@ -2654,6 +2661,14 @@ declare var CSSConditionRule: {
|
|
|
2654
2661
|
new(): CSSConditionRule;
|
|
2655
2662
|
};
|
|
2656
2663
|
|
|
2664
|
+
interface CSSContainerRule extends CSSConditionRule {
|
|
2665
|
+
}
|
|
2666
|
+
|
|
2667
|
+
declare var CSSContainerRule: {
|
|
2668
|
+
prototype: CSSContainerRule;
|
|
2669
|
+
new(): CSSContainerRule;
|
|
2670
|
+
};
|
|
2671
|
+
|
|
2657
2672
|
interface CSSCounterStyleRule extends CSSRule {
|
|
2658
2673
|
additiveSymbols: string;
|
|
2659
2674
|
fallback: string;
|
|
@@ -2963,6 +2978,9 @@ interface CSSStyleDeclaration {
|
|
|
2963
2978
|
columnWidth: string;
|
|
2964
2979
|
columns: string;
|
|
2965
2980
|
contain: string;
|
|
2981
|
+
container: string;
|
|
2982
|
+
containerName: string;
|
|
2983
|
+
containerType: string;
|
|
2966
2984
|
content: string;
|
|
2967
2985
|
counterIncrement: string;
|
|
2968
2986
|
counterReset: string;
|
|
@@ -3031,6 +3049,7 @@ interface CSSStyleDeclaration {
|
|
|
3031
3049
|
gridTemplateColumns: string;
|
|
3032
3050
|
gridTemplateRows: string;
|
|
3033
3051
|
height: string;
|
|
3052
|
+
hyphenateCharacter: string;
|
|
3034
3053
|
hyphens: string;
|
|
3035
3054
|
/** @deprecated */
|
|
3036
3055
|
imageOrientation: string;
|
|
@@ -3107,6 +3126,7 @@ interface CSSStyleDeclaration {
|
|
|
3107
3126
|
outlineWidth: string;
|
|
3108
3127
|
overflow: string;
|
|
3109
3128
|
overflowAnchor: string;
|
|
3129
|
+
overflowClipMargin: string;
|
|
3110
3130
|
overflowWrap: string;
|
|
3111
3131
|
overflowX: string;
|
|
3112
3132
|
overflowY: string;
|
|
@@ -3564,6 +3584,7 @@ interface CanvasPath {
|
|
|
3564
3584
|
moveTo(x: number, y: number): void;
|
|
3565
3585
|
quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;
|
|
3566
3586
|
rect(x: number, y: number, w: number, h: number): void;
|
|
3587
|
+
roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | (number | DOMPointInit)[]): void;
|
|
3567
3588
|
}
|
|
3568
3589
|
|
|
3569
3590
|
interface CanvasPathDrawingStyles {
|
|
@@ -4970,6 +4991,17 @@ interface EXT_texture_filter_anisotropic {
|
|
|
4970
4991
|
readonly TEXTURE_MAX_ANISOTROPY_EXT: GLenum;
|
|
4971
4992
|
}
|
|
4972
4993
|
|
|
4994
|
+
interface EXT_texture_norm16 {
|
|
4995
|
+
readonly R16_EXT: GLenum;
|
|
4996
|
+
readonly R16_SNORM_EXT: GLenum;
|
|
4997
|
+
readonly RG16_EXT: GLenum;
|
|
4998
|
+
readonly RG16_SNORM_EXT: GLenum;
|
|
4999
|
+
readonly RGB16_EXT: GLenum;
|
|
5000
|
+
readonly RGB16_SNORM_EXT: GLenum;
|
|
5001
|
+
readonly RGBA16_EXT: GLenum;
|
|
5002
|
+
readonly RGBA16_SNORM_EXT: GLenum;
|
|
5003
|
+
}
|
|
5004
|
+
|
|
4973
5005
|
interface ElementEventMap {
|
|
4974
5006
|
"fullscreenchange": Event;
|
|
4975
5007
|
"fullscreenerror": Event;
|
|
@@ -6310,6 +6342,7 @@ interface HTMLCanvasElement extends HTMLElement {
|
|
|
6310
6342
|
* @param type The standard MIME type for the image format to return. If you do not specify this parameter, the default value is a PNG format image.
|
|
6311
6343
|
*/
|
|
6312
6344
|
toDataURL(type?: string, quality?: any): string;
|
|
6345
|
+
transferControlToOffscreen(): OffscreenCanvas;
|
|
6313
6346
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
6314
6347
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
6315
6348
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -9024,7 +9057,7 @@ declare var ImageBitmap: {
|
|
|
9024
9057
|
|
|
9025
9058
|
interface ImageBitmapRenderingContext {
|
|
9026
9059
|
/** Returns the canvas element that the context is bound to. */
|
|
9027
|
-
readonly canvas: HTMLCanvasElement;
|
|
9060
|
+
readonly canvas: HTMLCanvasElement | OffscreenCanvas;
|
|
9028
9061
|
/** Transfers the underlying bitmap data from imageBitmap to context, and the bitmap becomes the contents of the canvas element to which context is bound. */
|
|
9029
9062
|
transferFromImageBitmap(bitmap: ImageBitmap | null): void;
|
|
9030
9063
|
}
|
|
@@ -9055,6 +9088,7 @@ interface InnerHTML {
|
|
|
9055
9088
|
innerHTML: string;
|
|
9056
9089
|
}
|
|
9057
9090
|
|
|
9091
|
+
/** Available only in secure contexts. */
|
|
9058
9092
|
interface InputDeviceInfo extends MediaDeviceInfo {
|
|
9059
9093
|
}
|
|
9060
9094
|
|
|
@@ -10259,6 +10293,16 @@ declare var Notification: {
|
|
|
10259
10293
|
requestPermission(deprecatedCallback?: NotificationPermissionCallback): Promise<NotificationPermission>;
|
|
10260
10294
|
};
|
|
10261
10295
|
|
|
10296
|
+
interface OES_draw_buffers_indexed {
|
|
10297
|
+
blendEquationSeparateiOES(buf: GLuint, modeRGB: GLenum, modeAlpha: GLenum): void;
|
|
10298
|
+
blendEquationiOES(buf: GLuint, mode: GLenum): void;
|
|
10299
|
+
blendFuncSeparateiOES(buf: GLuint, srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;
|
|
10300
|
+
blendFunciOES(buf: GLuint, src: GLenum, dst: GLenum): void;
|
|
10301
|
+
colorMaskiOES(buf: GLuint, r: GLboolean, g: GLboolean, b: GLboolean, a: GLboolean): void;
|
|
10302
|
+
disableiOES(target: GLenum, index: GLuint): void;
|
|
10303
|
+
enableiOES(target: GLenum, index: GLuint): void;
|
|
10304
|
+
}
|
|
10305
|
+
|
|
10262
10306
|
/** The OES_element_index_uint extension is part of the WebGL API and adds support for gl.UNSIGNED_INT types to WebGLRenderingContext.drawElements(). */
|
|
10263
10307
|
interface OES_element_index_uint {
|
|
10264
10308
|
}
|
|
@@ -10337,6 +10381,57 @@ declare var OfflineAudioContext: {
|
|
|
10337
10381
|
new(numberOfChannels: number, length: number, sampleRate: number): OfflineAudioContext;
|
|
10338
10382
|
};
|
|
10339
10383
|
|
|
10384
|
+
interface OffscreenCanvasEventMap {
|
|
10385
|
+
"contextlost": Event;
|
|
10386
|
+
"contextrestored": Event;
|
|
10387
|
+
}
|
|
10388
|
+
|
|
10389
|
+
interface OffscreenCanvas extends EventTarget {
|
|
10390
|
+
/**
|
|
10391
|
+
* These attributes return the dimensions of the OffscreenCanvas object's bitmap.
|
|
10392
|
+
*
|
|
10393
|
+
* They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).
|
|
10394
|
+
*/
|
|
10395
|
+
height: number;
|
|
10396
|
+
oncontextlost: ((this: OffscreenCanvas, ev: Event) => any) | null;
|
|
10397
|
+
oncontextrestored: ((this: OffscreenCanvas, ev: Event) => any) | null;
|
|
10398
|
+
/**
|
|
10399
|
+
* These attributes return the dimensions of the OffscreenCanvas object's bitmap.
|
|
10400
|
+
*
|
|
10401
|
+
* They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).
|
|
10402
|
+
*/
|
|
10403
|
+
width: number;
|
|
10404
|
+
/**
|
|
10405
|
+
* 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.
|
|
10406
|
+
*
|
|
10407
|
+
* 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]
|
|
10408
|
+
*
|
|
10409
|
+
* 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).
|
|
10410
|
+
*/
|
|
10411
|
+
getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null;
|
|
10412
|
+
/** 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. */
|
|
10413
|
+
transferToImageBitmap(): ImageBitmap;
|
|
10414
|
+
addEventListener<K extends keyof OffscreenCanvasEventMap>(type: K, listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
10415
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
10416
|
+
removeEventListener<K extends keyof OffscreenCanvasEventMap>(type: K, listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
10417
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
10418
|
+
}
|
|
10419
|
+
|
|
10420
|
+
declare var OffscreenCanvas: {
|
|
10421
|
+
prototype: OffscreenCanvas;
|
|
10422
|
+
new(width: number, height: number): OffscreenCanvas;
|
|
10423
|
+
};
|
|
10424
|
+
|
|
10425
|
+
interface OffscreenCanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform {
|
|
10426
|
+
readonly canvas: OffscreenCanvas;
|
|
10427
|
+
commit(): void;
|
|
10428
|
+
}
|
|
10429
|
+
|
|
10430
|
+
declare var OffscreenCanvasRenderingContext2D: {
|
|
10431
|
+
prototype: OffscreenCanvasRenderingContext2D;
|
|
10432
|
+
new(): OffscreenCanvasRenderingContext2D;
|
|
10433
|
+
};
|
|
10434
|
+
|
|
10340
10435
|
/** The OscillatorNode interface represents a periodic waveform, such as a sine wave. It is an AudioScheduledSourceNode audio-processing module that causes a specified frequency of a given wave to be created—in effect, a constant tone. */
|
|
10341
10436
|
interface OscillatorNode extends AudioScheduledSourceNode {
|
|
10342
10437
|
readonly detune: AudioParam;
|
|
@@ -16047,7 +16142,7 @@ declare var WebGLRenderingContext: {
|
|
|
16047
16142
|
};
|
|
16048
16143
|
|
|
16049
16144
|
interface WebGLRenderingContextBase {
|
|
16050
|
-
readonly canvas: HTMLCanvasElement;
|
|
16145
|
+
readonly canvas: HTMLCanvasElement | OffscreenCanvas;
|
|
16051
16146
|
readonly drawingBufferHeight: GLsizei;
|
|
16052
16147
|
readonly drawingBufferWidth: GLsizei;
|
|
16053
16148
|
activeTexture(texture: GLenum): void;
|
|
@@ -17525,7 +17620,7 @@ interface UnderlyingSourceStartCallback<R> {
|
|
|
17525
17620
|
}
|
|
17526
17621
|
|
|
17527
17622
|
interface VideoFrameRequestCallback {
|
|
17528
|
-
(now: DOMHighResTimeStamp, metadata:
|
|
17623
|
+
(now: DOMHighResTimeStamp, metadata: VideoFrameCallbackMetadata): void;
|
|
17529
17624
|
}
|
|
17530
17625
|
|
|
17531
17626
|
interface VoidFunction {
|
|
@@ -18202,7 +18297,7 @@ type BodyInit = ReadableStream | XMLHttpRequestBodyInit;
|
|
|
18202
18297
|
type BufferSource = ArrayBufferView | ArrayBuffer;
|
|
18203
18298
|
type COSEAlgorithmIdentifier = number;
|
|
18204
18299
|
type CSSNumberish = number;
|
|
18205
|
-
type CanvasImageSource = HTMLOrSVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap;
|
|
18300
|
+
type CanvasImageSource = HTMLOrSVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap | OffscreenCanvas;
|
|
18206
18301
|
type ClipboardItemData = Promise<string | Blob>;
|
|
18207
18302
|
type ClipboardItems = ClipboardItem[];
|
|
18208
18303
|
type ConstrainBoolean = boolean | ConstrainBooleanParameters;
|
|
@@ -18239,6 +18334,7 @@ type MediaProvider = MediaStream | MediaSource | Blob;
|
|
|
18239
18334
|
type MessageEventSource = WindowProxy | MessagePort | ServiceWorker;
|
|
18240
18335
|
type MutationRecordType = "attributes" | "characterData" | "childList";
|
|
18241
18336
|
type NamedCurve = string;
|
|
18337
|
+
type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
|
|
18242
18338
|
type OnBeforeUnloadEventHandler = OnBeforeUnloadEventHandlerNonNull | null;
|
|
18243
18339
|
type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
|
|
18244
18340
|
type PerformanceEntryList = PerformanceEntry[];
|
|
@@ -18247,9 +18343,9 @@ type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableSt
|
|
|
18247
18343
|
type ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBYOBReader;
|
|
18248
18344
|
type RenderingContext = CanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
|
|
18249
18345
|
type RequestInfo = Request | string;
|
|
18250
|
-
type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement;
|
|
18346
|
+
type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | OffscreenCanvas;
|
|
18251
18347
|
type TimerHandler = string | Function;
|
|
18252
|
-
type Transferable = ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer;
|
|
18348
|
+
type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer;
|
|
18253
18349
|
type Uint32List = Uint32Array | GLuint[];
|
|
18254
18350
|
type VibratePattern = number | number[];
|
|
18255
18351
|
type WindowProxy = Window;
|
|
@@ -18329,6 +18425,7 @@ type MediaStreamTrackState = "ended" | "live";
|
|
|
18329
18425
|
type NavigationTimingType = "back_forward" | "navigate" | "prerender" | "reload";
|
|
18330
18426
|
type NotificationDirection = "auto" | "ltr" | "rtl";
|
|
18331
18427
|
type NotificationPermission = "default" | "denied" | "granted";
|
|
18428
|
+
type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";
|
|
18332
18429
|
type OrientationLockType = "any" | "landscape" | "landscape-primary" | "landscape-secondary" | "natural" | "portrait" | "portrait-primary" | "portrait-secondary";
|
|
18333
18430
|
type OrientationType = "landscape-primary" | "landscape-secondary" | "portrait-primary" | "portrait-secondary";
|
|
18334
18431
|
type OscillatorType = "custom" | "sawtooth" | "sine" | "square" | "triangle";
|
|
@@ -46,6 +46,10 @@ interface Cache {
|
|
|
46
46
|
addAll(requests: Iterable<RequestInfo>): Promise<void>;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
+
interface CanvasPath {
|
|
50
|
+
roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | Iterable<number | DOMPointInit>): void;
|
|
51
|
+
}
|
|
52
|
+
|
|
49
53
|
interface CanvasPathDrawingStyles {
|
|
50
54
|
setLineDash(segments: Iterable<number>): void;
|
|
51
55
|
}
|
|
@@ -273,8 +277,8 @@ interface WEBGL_draw_buffers {
|
|
|
273
277
|
interface WEBGL_multi_draw {
|
|
274
278
|
multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: GLuint, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void;
|
|
275
279
|
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: GLuint, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, drawcount: GLsizei): void;
|
|
276
|
-
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | Iterable<
|
|
277
|
-
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<
|
|
280
|
+
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void;
|
|
281
|
+
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, drawcount: GLsizei): void;
|
|
278
282
|
}
|
|
279
283
|
|
|
280
284
|
interface WebGL2RenderingContextBase {
|
package/lib/lib.webworker.d.ts
CHANGED
|
@@ -699,10 +699,10 @@ interface UnderlyingSource<R = any> {
|
|
|
699
699
|
}
|
|
700
700
|
|
|
701
701
|
interface VideoColorSpaceInit {
|
|
702
|
-
fullRange?: boolean;
|
|
703
|
-
matrix?: VideoMatrixCoefficients;
|
|
704
|
-
primaries?: VideoColorPrimaries;
|
|
705
|
-
transfer?: VideoTransferCharacteristics;
|
|
702
|
+
fullRange?: boolean | null;
|
|
703
|
+
matrix?: VideoMatrixCoefficients | null;
|
|
704
|
+
primaries?: VideoColorPrimaries | null;
|
|
705
|
+
transfer?: VideoTransferCharacteristics | null;
|
|
706
706
|
}
|
|
707
707
|
|
|
708
708
|
interface VideoConfiguration {
|
|
@@ -752,7 +752,7 @@ interface AbortController {
|
|
|
752
752
|
/** Returns the AbortSignal object associated with this object. */
|
|
753
753
|
readonly signal: AbortSignal;
|
|
754
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. */
|
|
755
|
-
|
|
755
|
+
abort(reason?: any): void;
|
|
756
756
|
}
|
|
757
757
|
|
|
758
758
|
declare var AbortController: {
|
|
@@ -898,6 +898,44 @@ declare var CacheStorage: {
|
|
|
898
898
|
new(): CacheStorage;
|
|
899
899
|
};
|
|
900
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
|
+
|
|
901
939
|
/** An opaque object describing a gradient. It is returned by the methods CanvasRenderingContext2D.createLinearGradient() or CanvasRenderingContext2D.createRadialGradient(). */
|
|
902
940
|
interface CanvasGradient {
|
|
903
941
|
/**
|
|
@@ -913,6 +951,19 @@ declare var CanvasGradient: {
|
|
|
913
951
|
new(): CanvasGradient;
|
|
914
952
|
};
|
|
915
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
|
+
|
|
916
967
|
interface CanvasPath {
|
|
917
968
|
arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;
|
|
918
969
|
arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void;
|
|
@@ -923,6 +974,17 @@ interface CanvasPath {
|
|
|
923
974
|
moveTo(x: number, y: number): void;
|
|
924
975
|
quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;
|
|
925
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;
|
|
926
988
|
}
|
|
927
989
|
|
|
928
990
|
/** An opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern() method. */
|
|
@@ -936,6 +998,49 @@ declare var CanvasPattern: {
|
|
|
936
998
|
new(): CanvasPattern;
|
|
937
999
|
};
|
|
938
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
|
+
|
|
939
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(). */
|
|
940
1045
|
interface Client {
|
|
941
1046
|
readonly frameType: FrameType;
|
|
@@ -1362,6 +1467,17 @@ interface EXT_texture_filter_anisotropic {
|
|
|
1362
1467
|
readonly TEXTURE_MAX_ANISOTROPY_EXT: GLenum;
|
|
1363
1468
|
}
|
|
1364
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
|
+
|
|
1365
1481
|
/** Events providing information related to errors in scripts or in files. */
|
|
1366
1482
|
interface ErrorEvent extends Event {
|
|
1367
1483
|
readonly colno: number;
|
|
@@ -2396,6 +2512,16 @@ declare var NotificationEvent: {
|
|
|
2396
2512
|
new(type: string, eventInitDict: NotificationEventInit): NotificationEvent;
|
|
2397
2513
|
};
|
|
2398
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
|
+
|
|
2399
2525
|
/** The OES_element_index_uint extension is part of the WebGL API and adds support for gl.UNSIGNED_INT types to WebGLRenderingContext.drawElements(). */
|
|
2400
2526
|
interface OES_element_index_uint {
|
|
2401
2527
|
}
|
|
@@ -2441,10 +2567,57 @@ interface OVR_multiview2 {
|
|
|
2441
2567
|
readonly MAX_VIEWS_OVR: GLenum;
|
|
2442
2568
|
}
|
|
2443
2569
|
|
|
2444
|
-
|
|
2570
|
+
interface OffscreenCanvasEventMap {
|
|
2571
|
+
"contextlost": Event;
|
|
2572
|
+
"contextrestored": Event;
|
|
2573
|
+
}
|
|
2574
|
+
|
|
2445
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;
|
|
2446
2604
|
}
|
|
2447
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
|
+
|
|
2448
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. */
|
|
2449
2622
|
interface Path2D extends CanvasPath {
|
|
2450
2623
|
/** Adds to the path the path given by the argument. */
|
|
@@ -5940,6 +6113,7 @@ type ImageBitmapSource = CanvasImageSource | Blob | ImageData;
|
|
|
5940
6113
|
type Int32List = Int32Array | GLint[];
|
|
5941
6114
|
type MessageEventSource = MessagePort | ServiceWorker;
|
|
5942
6115
|
type NamedCurve = string;
|
|
6116
|
+
type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
|
|
5943
6117
|
type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
|
|
5944
6118
|
type PerformanceEntryList = PerformanceEntry[];
|
|
5945
6119
|
type PushMessageDataInit = BufferSource | string;
|
|
@@ -5954,6 +6128,16 @@ type Uint32List = Uint32Array | GLuint[];
|
|
|
5954
6128
|
type VibratePattern = number | number[];
|
|
5955
6129
|
type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;
|
|
5956
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";
|
|
5957
6141
|
type ClientTypes = "all" | "sharedworker" | "window" | "worker";
|
|
5958
6142
|
type ColorGamut = "p3" | "rec2020" | "srgb";
|
|
5959
6143
|
type ColorSpaceConversion = "default" | "none";
|
|
@@ -5963,12 +6147,14 @@ type FileSystemHandleKind = "directory" | "file";
|
|
|
5963
6147
|
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
|
5964
6148
|
type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
5965
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";
|
|
5966
6151
|
type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
|
|
5967
6152
|
type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
|
|
5968
6153
|
type IDBRequestReadyState = "done" | "pending";
|
|
5969
6154
|
type IDBTransactionDurability = "default" | "relaxed" | "strict";
|
|
5970
6155
|
type IDBTransactionMode = "readonly" | "readwrite" | "versionchange";
|
|
5971
6156
|
type ImageOrientation = "flipY" | "none";
|
|
6157
|
+
type ImageSmoothingQuality = "high" | "low" | "medium";
|
|
5972
6158
|
type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
|
|
5973
6159
|
type KeyType = "private" | "public" | "secret";
|
|
5974
6160
|
type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";
|
|
@@ -5977,6 +6163,7 @@ type MediaDecodingType = "file" | "media-source" | "webrtc";
|
|
|
5977
6163
|
type MediaEncodingType = "record" | "webrtc";
|
|
5978
6164
|
type NotificationDirection = "auto" | "ltr" | "rtl";
|
|
5979
6165
|
type NotificationPermission = "default" | "denied" | "granted";
|
|
6166
|
+
type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";
|
|
5980
6167
|
type PermissionName = "geolocation" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "xr-spatial-tracking";
|
|
5981
6168
|
type PermissionState = "denied" | "granted" | "prompt";
|
|
5982
6169
|
type PredefinedColorSpace = "display-p3" | "srgb";
|
|
@@ -26,6 +26,14 @@ interface Cache {
|
|
|
26
26
|
addAll(requests: Iterable<RequestInfo>): Promise<void>;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
+
interface CanvasPath {
|
|
30
|
+
roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | Iterable<number | DOMPointInit>): void;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
interface CanvasPathDrawingStyles {
|
|
34
|
+
setLineDash(segments: Iterable<number>): void;
|
|
35
|
+
}
|
|
36
|
+
|
|
29
37
|
interface DOMStringList {
|
|
30
38
|
[Symbol.iterator](): IterableIterator<string>;
|
|
31
39
|
}
|
|
@@ -103,8 +111,8 @@ interface WEBGL_draw_buffers {
|
|
|
103
111
|
interface WEBGL_multi_draw {
|
|
104
112
|
multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: GLuint, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void;
|
|
105
113
|
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: GLuint, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, drawcount: GLsizei): void;
|
|
106
|
-
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | Iterable<
|
|
107
|
-
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<
|
|
114
|
+
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void;
|
|
115
|
+
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, drawcount: GLsizei): void;
|
|
108
116
|
}
|
|
109
117
|
|
|
110
118
|
interface WebGL2RenderingContextBase {
|
package/lib/tsc.js
CHANGED
|
@@ -69,7 +69,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
69
69
|
var ts;
|
|
70
70
|
(function (ts) {
|
|
71
71
|
ts.versionMajorMinor = "4.9";
|
|
72
|
-
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.
|
|
72
|
+
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20221026");
|
|
73
73
|
var NativeCollections;
|
|
74
74
|
(function (NativeCollections) {
|
|
75
75
|
var globals = typeof globalThis !== "undefined" ? globalThis :
|
package/lib/tsserver.js
CHANGED
|
@@ -109,7 +109,7 @@ var ts;
|
|
|
109
109
|
// The following is baselined as a literal template type without intervention
|
|
110
110
|
/** The version of the TypeScript compiler release */
|
|
111
111
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
112
|
-
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.
|
|
112
|
+
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20221026");
|
|
113
113
|
/* @internal */
|
|
114
114
|
var Comparison;
|
|
115
115
|
(function (Comparison) {
|
|
@@ -149182,7 +149182,7 @@ var ts;
|
|
|
149182
149182
|
return false;
|
|
149183
149183
|
}
|
|
149184
149184
|
function shouldRescanJsxText(node) {
|
|
149185
|
-
return ts.isJsxText(node)
|
|
149185
|
+
return ts.isJsxText(node) || ts.isJsxElement(node) && (lastTokenInfo === null || lastTokenInfo === void 0 ? void 0 : lastTokenInfo.token.kind) === 11 /* SyntaxKind.JsxText */;
|
|
149186
149186
|
}
|
|
149187
149187
|
function shouldRescanSlashToken(container) {
|
|
149188
149188
|
return container.kind === 13 /* SyntaxKind.RegularExpressionLiteral */;
|
|
@@ -165876,7 +165876,7 @@ var ts;
|
|
|
165876
165876
|
function getNewStatementsAndRemoveFromOldFile(oldFile, usage, changes, toMove, program, newModuleName, preferences) {
|
|
165877
165877
|
var checker = program.getTypeChecker();
|
|
165878
165878
|
var prologueDirectives = ts.takeWhile(oldFile.statements, ts.isPrologueDirective);
|
|
165879
|
-
if (
|
|
165879
|
+
if (oldFile.externalModuleIndicator === undefined && oldFile.commonJsModuleIndicator === undefined && usage.oldImportsNeededByNewFile.size() === 0) {
|
|
165880
165880
|
deleteMovedStatements(oldFile, toMove.ranges, changes);
|
|
165881
165881
|
return __spreadArray(__spreadArray([], prologueDirectives, true), toMove.all, true);
|
|
165882
165882
|
}
|
|
@@ -166117,7 +166117,12 @@ var ts;
|
|
|
166117
166117
|
switch (name.kind) {
|
|
166118
166118
|
case 79 /* SyntaxKind.Identifier */:
|
|
166119
166119
|
if (isUnused(name)) {
|
|
166120
|
-
|
|
166120
|
+
if (varDecl.initializer && ts.isRequireCall(varDecl.initializer, /*requireStringLiteralLikeArgument*/ true)) {
|
|
166121
|
+
changes.delete(sourceFile, ts.isVariableDeclarationList(varDecl.parent) && ts.length(varDecl.parent.declarations) === 1 ? varDecl.parent.parent : varDecl);
|
|
166122
|
+
}
|
|
166123
|
+
else {
|
|
166124
|
+
changes.delete(sourceFile, name);
|
|
166125
|
+
}
|
|
166121
166126
|
}
|
|
166122
166127
|
break;
|
|
166123
166128
|
case 204 /* SyntaxKind.ArrayBindingPattern */:
|
|
@@ -166349,6 +166354,9 @@ var ts;
|
|
|
166349
166354
|
ts.copyEntries(this.map, clone.map);
|
|
166350
166355
|
return clone;
|
|
166351
166356
|
};
|
|
166357
|
+
SymbolSet.prototype.size = function () {
|
|
166358
|
+
return this.map.size;
|
|
166359
|
+
};
|
|
166352
166360
|
return SymbolSet;
|
|
166353
166361
|
}());
|
|
166354
166362
|
function isTopLevelDeclaration(node) {
|
|
@@ -166437,7 +166445,8 @@ var ts;
|
|
|
166437
166445
|
if (useEs6Exports) {
|
|
166438
166446
|
return !ts.isExpressionStatement(decl) && ts.hasSyntacticModifier(decl, 1 /* ModifierFlags.Export */) || !!(name && ((_a = sourceFile.symbol.exports) === null || _a === void 0 ? void 0 : _a.has(name.escapedText)));
|
|
166439
166447
|
}
|
|
166440
|
-
return
|
|
166448
|
+
return !!sourceFile.symbol && !!sourceFile.symbol.exports &&
|
|
166449
|
+
getNamesToExportInCommonJS(decl).some(function (name) { return sourceFile.symbol.exports.has(ts.escapeLeadingUnderscores(name)); });
|
|
166441
166450
|
}
|
|
166442
166451
|
function addExport(decl, useEs6Exports) {
|
|
166443
166452
|
return useEs6Exports ? [addEs6Export(decl)] : addCommonjsExport(decl);
|
package/lib/tsserverlibrary.js
CHANGED
|
@@ -108,7 +108,7 @@ var ts;
|
|
|
108
108
|
// The following is baselined as a literal template type without intervention
|
|
109
109
|
/** The version of the TypeScript compiler release */
|
|
110
110
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
111
|
-
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.
|
|
111
|
+
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20221026");
|
|
112
112
|
/* @internal */
|
|
113
113
|
var Comparison;
|
|
114
114
|
(function (Comparison) {
|
|
@@ -149600,7 +149600,7 @@ var ts;
|
|
|
149600
149600
|
return false;
|
|
149601
149601
|
}
|
|
149602
149602
|
function shouldRescanJsxText(node) {
|
|
149603
|
-
return ts.isJsxText(node)
|
|
149603
|
+
return ts.isJsxText(node) || ts.isJsxElement(node) && (lastTokenInfo === null || lastTokenInfo === void 0 ? void 0 : lastTokenInfo.token.kind) === 11 /* SyntaxKind.JsxText */;
|
|
149604
149604
|
}
|
|
149605
149605
|
function shouldRescanSlashToken(container) {
|
|
149606
149606
|
return container.kind === 13 /* SyntaxKind.RegularExpressionLiteral */;
|
|
@@ -166294,7 +166294,7 @@ var ts;
|
|
|
166294
166294
|
function getNewStatementsAndRemoveFromOldFile(oldFile, usage, changes, toMove, program, newModuleName, preferences) {
|
|
166295
166295
|
var checker = program.getTypeChecker();
|
|
166296
166296
|
var prologueDirectives = ts.takeWhile(oldFile.statements, ts.isPrologueDirective);
|
|
166297
|
-
if (
|
|
166297
|
+
if (oldFile.externalModuleIndicator === undefined && oldFile.commonJsModuleIndicator === undefined && usage.oldImportsNeededByNewFile.size() === 0) {
|
|
166298
166298
|
deleteMovedStatements(oldFile, toMove.ranges, changes);
|
|
166299
166299
|
return __spreadArray(__spreadArray([], prologueDirectives, true), toMove.all, true);
|
|
166300
166300
|
}
|
|
@@ -166535,7 +166535,12 @@ var ts;
|
|
|
166535
166535
|
switch (name.kind) {
|
|
166536
166536
|
case 79 /* SyntaxKind.Identifier */:
|
|
166537
166537
|
if (isUnused(name)) {
|
|
166538
|
-
|
|
166538
|
+
if (varDecl.initializer && ts.isRequireCall(varDecl.initializer, /*requireStringLiteralLikeArgument*/ true)) {
|
|
166539
|
+
changes.delete(sourceFile, ts.isVariableDeclarationList(varDecl.parent) && ts.length(varDecl.parent.declarations) === 1 ? varDecl.parent.parent : varDecl);
|
|
166540
|
+
}
|
|
166541
|
+
else {
|
|
166542
|
+
changes.delete(sourceFile, name);
|
|
166543
|
+
}
|
|
166539
166544
|
}
|
|
166540
166545
|
break;
|
|
166541
166546
|
case 204 /* SyntaxKind.ArrayBindingPattern */:
|
|
@@ -166767,6 +166772,9 @@ var ts;
|
|
|
166767
166772
|
ts.copyEntries(this.map, clone.map);
|
|
166768
166773
|
return clone;
|
|
166769
166774
|
};
|
|
166775
|
+
SymbolSet.prototype.size = function () {
|
|
166776
|
+
return this.map.size;
|
|
166777
|
+
};
|
|
166770
166778
|
return SymbolSet;
|
|
166771
166779
|
}());
|
|
166772
166780
|
function isTopLevelDeclaration(node) {
|
|
@@ -166855,7 +166863,8 @@ var ts;
|
|
|
166855
166863
|
if (useEs6Exports) {
|
|
166856
166864
|
return !ts.isExpressionStatement(decl) && ts.hasSyntacticModifier(decl, 1 /* ModifierFlags.Export */) || !!(name && ((_a = sourceFile.symbol.exports) === null || _a === void 0 ? void 0 : _a.has(name.escapedText)));
|
|
166857
166865
|
}
|
|
166858
|
-
return
|
|
166866
|
+
return !!sourceFile.symbol && !!sourceFile.symbol.exports &&
|
|
166867
|
+
getNamesToExportInCommonJS(decl).some(function (name) { return sourceFile.symbol.exports.has(ts.escapeLeadingUnderscores(name)); });
|
|
166859
166868
|
}
|
|
166860
166869
|
function addExport(decl, useEs6Exports) {
|
|
166861
166870
|
return useEs6Exports ? [addEs6Export(decl)] : addCommonjsExport(decl);
|
package/lib/typescript.js
CHANGED
|
@@ -99,7 +99,7 @@ var ts;
|
|
|
99
99
|
// The following is baselined as a literal template type without intervention
|
|
100
100
|
/** The version of the TypeScript compiler release */
|
|
101
101
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
102
|
-
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.
|
|
102
|
+
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20221026");
|
|
103
103
|
/* @internal */
|
|
104
104
|
var Comparison;
|
|
105
105
|
(function (Comparison) {
|
|
@@ -149591,7 +149591,7 @@ var ts;
|
|
|
149591
149591
|
return false;
|
|
149592
149592
|
}
|
|
149593
149593
|
function shouldRescanJsxText(node) {
|
|
149594
|
-
return ts.isJsxText(node)
|
|
149594
|
+
return ts.isJsxText(node) || ts.isJsxElement(node) && (lastTokenInfo === null || lastTokenInfo === void 0 ? void 0 : lastTokenInfo.token.kind) === 11 /* SyntaxKind.JsxText */;
|
|
149595
149595
|
}
|
|
149596
149596
|
function shouldRescanSlashToken(container) {
|
|
149597
149597
|
return container.kind === 13 /* SyntaxKind.RegularExpressionLiteral */;
|
|
@@ -166285,7 +166285,7 @@ var ts;
|
|
|
166285
166285
|
function getNewStatementsAndRemoveFromOldFile(oldFile, usage, changes, toMove, program, newModuleName, preferences) {
|
|
166286
166286
|
var checker = program.getTypeChecker();
|
|
166287
166287
|
var prologueDirectives = ts.takeWhile(oldFile.statements, ts.isPrologueDirective);
|
|
166288
|
-
if (
|
|
166288
|
+
if (oldFile.externalModuleIndicator === undefined && oldFile.commonJsModuleIndicator === undefined && usage.oldImportsNeededByNewFile.size() === 0) {
|
|
166289
166289
|
deleteMovedStatements(oldFile, toMove.ranges, changes);
|
|
166290
166290
|
return __spreadArray(__spreadArray([], prologueDirectives, true), toMove.all, true);
|
|
166291
166291
|
}
|
|
@@ -166526,7 +166526,12 @@ var ts;
|
|
|
166526
166526
|
switch (name.kind) {
|
|
166527
166527
|
case 79 /* SyntaxKind.Identifier */:
|
|
166528
166528
|
if (isUnused(name)) {
|
|
166529
|
-
|
|
166529
|
+
if (varDecl.initializer && ts.isRequireCall(varDecl.initializer, /*requireStringLiteralLikeArgument*/ true)) {
|
|
166530
|
+
changes.delete(sourceFile, ts.isVariableDeclarationList(varDecl.parent) && ts.length(varDecl.parent.declarations) === 1 ? varDecl.parent.parent : varDecl);
|
|
166531
|
+
}
|
|
166532
|
+
else {
|
|
166533
|
+
changes.delete(sourceFile, name);
|
|
166534
|
+
}
|
|
166530
166535
|
}
|
|
166531
166536
|
break;
|
|
166532
166537
|
case 204 /* SyntaxKind.ArrayBindingPattern */:
|
|
@@ -166758,6 +166763,9 @@ var ts;
|
|
|
166758
166763
|
ts.copyEntries(this.map, clone.map);
|
|
166759
166764
|
return clone;
|
|
166760
166765
|
};
|
|
166766
|
+
SymbolSet.prototype.size = function () {
|
|
166767
|
+
return this.map.size;
|
|
166768
|
+
};
|
|
166761
166769
|
return SymbolSet;
|
|
166762
166770
|
}());
|
|
166763
166771
|
function isTopLevelDeclaration(node) {
|
|
@@ -166846,7 +166854,8 @@ var ts;
|
|
|
166846
166854
|
if (useEs6Exports) {
|
|
166847
166855
|
return !ts.isExpressionStatement(decl) && ts.hasSyntacticModifier(decl, 1 /* ModifierFlags.Export */) || !!(name && ((_a = sourceFile.symbol.exports) === null || _a === void 0 ? void 0 : _a.has(name.escapedText)));
|
|
166848
166856
|
}
|
|
166849
|
-
return
|
|
166857
|
+
return !!sourceFile.symbol && !!sourceFile.symbol.exports &&
|
|
166858
|
+
getNamesToExportInCommonJS(decl).some(function (name) { return sourceFile.symbol.exports.has(ts.escapeLeadingUnderscores(name)); });
|
|
166850
166859
|
}
|
|
166851
166860
|
function addExport(decl, useEs6Exports) {
|
|
166852
166861
|
return useEs6Exports ? [addEs6Export(decl)] : addCommonjsExport(decl);
|
|
@@ -99,7 +99,7 @@ var ts;
|
|
|
99
99
|
// The following is baselined as a literal template type without intervention
|
|
100
100
|
/** The version of the TypeScript compiler release */
|
|
101
101
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
102
|
-
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.
|
|
102
|
+
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20221026");
|
|
103
103
|
/* @internal */
|
|
104
104
|
var Comparison;
|
|
105
105
|
(function (Comparison) {
|
|
@@ -149591,7 +149591,7 @@ var ts;
|
|
|
149591
149591
|
return false;
|
|
149592
149592
|
}
|
|
149593
149593
|
function shouldRescanJsxText(node) {
|
|
149594
|
-
return ts.isJsxText(node)
|
|
149594
|
+
return ts.isJsxText(node) || ts.isJsxElement(node) && (lastTokenInfo === null || lastTokenInfo === void 0 ? void 0 : lastTokenInfo.token.kind) === 11 /* SyntaxKind.JsxText */;
|
|
149595
149595
|
}
|
|
149596
149596
|
function shouldRescanSlashToken(container) {
|
|
149597
149597
|
return container.kind === 13 /* SyntaxKind.RegularExpressionLiteral */;
|
|
@@ -166285,7 +166285,7 @@ var ts;
|
|
|
166285
166285
|
function getNewStatementsAndRemoveFromOldFile(oldFile, usage, changes, toMove, program, newModuleName, preferences) {
|
|
166286
166286
|
var checker = program.getTypeChecker();
|
|
166287
166287
|
var prologueDirectives = ts.takeWhile(oldFile.statements, ts.isPrologueDirective);
|
|
166288
|
-
if (
|
|
166288
|
+
if (oldFile.externalModuleIndicator === undefined && oldFile.commonJsModuleIndicator === undefined && usage.oldImportsNeededByNewFile.size() === 0) {
|
|
166289
166289
|
deleteMovedStatements(oldFile, toMove.ranges, changes);
|
|
166290
166290
|
return __spreadArray(__spreadArray([], prologueDirectives, true), toMove.all, true);
|
|
166291
166291
|
}
|
|
@@ -166526,7 +166526,12 @@ var ts;
|
|
|
166526
166526
|
switch (name.kind) {
|
|
166527
166527
|
case 79 /* SyntaxKind.Identifier */:
|
|
166528
166528
|
if (isUnused(name)) {
|
|
166529
|
-
|
|
166529
|
+
if (varDecl.initializer && ts.isRequireCall(varDecl.initializer, /*requireStringLiteralLikeArgument*/ true)) {
|
|
166530
|
+
changes.delete(sourceFile, ts.isVariableDeclarationList(varDecl.parent) && ts.length(varDecl.parent.declarations) === 1 ? varDecl.parent.parent : varDecl);
|
|
166531
|
+
}
|
|
166532
|
+
else {
|
|
166533
|
+
changes.delete(sourceFile, name);
|
|
166534
|
+
}
|
|
166530
166535
|
}
|
|
166531
166536
|
break;
|
|
166532
166537
|
case 204 /* SyntaxKind.ArrayBindingPattern */:
|
|
@@ -166758,6 +166763,9 @@ var ts;
|
|
|
166758
166763
|
ts.copyEntries(this.map, clone.map);
|
|
166759
166764
|
return clone;
|
|
166760
166765
|
};
|
|
166766
|
+
SymbolSet.prototype.size = function () {
|
|
166767
|
+
return this.map.size;
|
|
166768
|
+
};
|
|
166761
166769
|
return SymbolSet;
|
|
166762
166770
|
}());
|
|
166763
166771
|
function isTopLevelDeclaration(node) {
|
|
@@ -166846,7 +166854,8 @@ var ts;
|
|
|
166846
166854
|
if (useEs6Exports) {
|
|
166847
166855
|
return !ts.isExpressionStatement(decl) && ts.hasSyntacticModifier(decl, 1 /* ModifierFlags.Export */) || !!(name && ((_a = sourceFile.symbol.exports) === null || _a === void 0 ? void 0 : _a.has(name.escapedText)));
|
|
166848
166856
|
}
|
|
166849
|
-
return
|
|
166857
|
+
return !!sourceFile.symbol && !!sourceFile.symbol.exports &&
|
|
166858
|
+
getNamesToExportInCommonJS(decl).some(function (name) { return sourceFile.symbol.exports.has(ts.escapeLeadingUnderscores(name)); });
|
|
166850
166859
|
}
|
|
166851
166860
|
function addExport(decl, useEs6Exports) {
|
|
166852
166861
|
return useEs6Exports ? [addEs6Export(decl)] : addCommonjsExport(decl);
|
package/lib/typingsInstaller.js
CHANGED
|
@@ -89,7 +89,7 @@ var ts;
|
|
|
89
89
|
// The following is baselined as a literal template type without intervention
|
|
90
90
|
/** The version of the TypeScript compiler release */
|
|
91
91
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
92
|
-
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.
|
|
92
|
+
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20221026");
|
|
93
93
|
/* @internal */
|
|
94
94
|
var Comparison;
|
|
95
95
|
(function (Comparison) {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "typescript",
|
|
3
3
|
"author": "Microsoft Corp.",
|
|
4
4
|
"homepage": "https://www.typescriptlang.org/",
|
|
5
|
-
"version": "4.9.0-dev.
|
|
5
|
+
"version": "4.9.0-dev.20221026",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|