@types/web 0.0.74 → 0.0.76
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/README.md +1 -1
- package/index.d.ts +73 -12
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -47,4 +47,4 @@ Prior to `@types/web` the web APIs were deployed with a version of TypeScript, a
|
|
|
47
47
|
|
|
48
48
|
## Deploy Metadata
|
|
49
49
|
|
|
50
|
-
You can read what changed in version 0.0.
|
|
50
|
+
You can read what changed in version 0.0.76 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.76.
|
package/index.d.ts
CHANGED
|
@@ -119,11 +119,13 @@ interface AudioWorkletNodeOptions extends AudioNodeOptions {
|
|
|
119
119
|
interface AuthenticationExtensionsClientInputs {
|
|
120
120
|
appid?: string;
|
|
121
121
|
credProps?: boolean;
|
|
122
|
+
hmacCreateSecret?: boolean;
|
|
122
123
|
}
|
|
123
124
|
|
|
124
125
|
interface AuthenticationExtensionsClientOutputs {
|
|
125
126
|
appid?: boolean;
|
|
126
127
|
credProps?: CredentialPropertiesOutput;
|
|
128
|
+
hmacCreateSecret?: boolean;
|
|
127
129
|
}
|
|
128
130
|
|
|
129
131
|
interface AuthenticatorSelectionCriteria {
|
|
@@ -1326,6 +1328,7 @@ interface RTCInboundRtpStreamStats extends RTCReceivedRtpStreamStats {
|
|
|
1326
1328
|
frameHeight?: number;
|
|
1327
1329
|
frameWidth?: number;
|
|
1328
1330
|
framesDecoded?: number;
|
|
1331
|
+
framesDropped?: number;
|
|
1329
1332
|
framesPerSecond?: number;
|
|
1330
1333
|
framesReceived?: number;
|
|
1331
1334
|
headerBytesReceived?: number;
|
|
@@ -1345,6 +1348,7 @@ interface RTCInboundRtpStreamStats extends RTCReceivedRtpStreamStats {
|
|
|
1345
1348
|
totalAudioEnergy?: number;
|
|
1346
1349
|
totalDecodeTime?: number;
|
|
1347
1350
|
totalInterFrameDelay?: number;
|
|
1351
|
+
totalProcessingDelay?: number;
|
|
1348
1352
|
totalSamplesDuration?: number;
|
|
1349
1353
|
totalSamplesReceived?: number;
|
|
1350
1354
|
totalSquaredInterFrameDelay?: number;
|
|
@@ -1403,7 +1407,6 @@ interface RTCPeerConnectionIceEventInit extends EventInit {
|
|
|
1403
1407
|
}
|
|
1404
1408
|
|
|
1405
1409
|
interface RTCReceivedRtpStreamStats extends RTCRtpStreamStats {
|
|
1406
|
-
framesDropped?: number;
|
|
1407
1410
|
jitter?: number;
|
|
1408
1411
|
packetsLost?: number;
|
|
1409
1412
|
packetsReceived?: number;
|
|
@@ -1448,6 +1451,8 @@ interface RTCRtpContributingSource {
|
|
|
1448
1451
|
interface RTCRtpEncodingParameters extends RTCRtpCodingParameters {
|
|
1449
1452
|
active?: boolean;
|
|
1450
1453
|
maxBitrate?: number;
|
|
1454
|
+
maxFramerate?: number;
|
|
1455
|
+
networkPriority?: RTCPriorityType;
|
|
1451
1456
|
priority?: RTCPriorityType;
|
|
1452
1457
|
scaleResolutionDownBy?: number;
|
|
1453
1458
|
}
|
|
@@ -1868,10 +1873,10 @@ interface ValidityStateFlags {
|
|
|
1868
1873
|
}
|
|
1869
1874
|
|
|
1870
1875
|
interface VideoColorSpaceInit {
|
|
1871
|
-
fullRange?: boolean;
|
|
1872
|
-
matrix?: VideoMatrixCoefficients;
|
|
1873
|
-
primaries?: VideoColorPrimaries;
|
|
1874
|
-
transfer?: VideoTransferCharacteristics;
|
|
1876
|
+
fullRange?: boolean | null;
|
|
1877
|
+
matrix?: VideoMatrixCoefficients | null;
|
|
1878
|
+
primaries?: VideoColorPrimaries | null;
|
|
1879
|
+
transfer?: VideoTransferCharacteristics | null;
|
|
1875
1880
|
}
|
|
1876
1881
|
|
|
1877
1882
|
interface VideoConfiguration {
|
|
@@ -1886,7 +1891,7 @@ interface VideoConfiguration {
|
|
|
1886
1891
|
width: number;
|
|
1887
1892
|
}
|
|
1888
1893
|
|
|
1889
|
-
interface
|
|
1894
|
+
interface VideoFrameCallbackMetadata {
|
|
1890
1895
|
captureTime?: DOMHighResTimeStamp;
|
|
1891
1896
|
expectedDisplayTime: DOMHighResTimeStamp;
|
|
1892
1897
|
height: number;
|
|
@@ -3103,6 +3108,7 @@ interface CSSStyleDeclaration {
|
|
|
3103
3108
|
outlineWidth: string;
|
|
3104
3109
|
overflow: string;
|
|
3105
3110
|
overflowAnchor: string;
|
|
3111
|
+
overflowClipMargin: string;
|
|
3106
3112
|
overflowWrap: string;
|
|
3107
3113
|
overflowX: string;
|
|
3108
3114
|
overflowY: string;
|
|
@@ -6318,6 +6324,7 @@ interface HTMLCanvasElement extends HTMLElement {
|
|
|
6318
6324
|
* @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.
|
|
6319
6325
|
*/
|
|
6320
6326
|
toDataURL(type?: string, quality?: any): string;
|
|
6327
|
+
transferControlToOffscreen(): OffscreenCanvas;
|
|
6321
6328
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
6322
6329
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
6323
6330
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -9032,7 +9039,7 @@ declare var ImageBitmap: {
|
|
|
9032
9039
|
|
|
9033
9040
|
interface ImageBitmapRenderingContext {
|
|
9034
9041
|
/** Returns the canvas element that the context is bound to. */
|
|
9035
|
-
readonly canvas: HTMLCanvasElement;
|
|
9042
|
+
readonly canvas: HTMLCanvasElement | OffscreenCanvas;
|
|
9036
9043
|
/** Transfers the underlying bitmap data from imageBitmap to context, and the bitmap becomes the contents of the canvas element to which context is bound. */
|
|
9037
9044
|
transferFromImageBitmap(bitmap: ImageBitmap | null): void;
|
|
9038
9045
|
}
|
|
@@ -9063,6 +9070,7 @@ interface InnerHTML {
|
|
|
9063
9070
|
innerHTML: string;
|
|
9064
9071
|
}
|
|
9065
9072
|
|
|
9073
|
+
/** Available only in secure contexts. */
|
|
9066
9074
|
interface InputDeviceInfo extends MediaDeviceInfo {
|
|
9067
9075
|
}
|
|
9068
9076
|
|
|
@@ -10355,6 +10363,57 @@ declare var OfflineAudioContext: {
|
|
|
10355
10363
|
new(numberOfChannels: number, length: number, sampleRate: number): OfflineAudioContext;
|
|
10356
10364
|
};
|
|
10357
10365
|
|
|
10366
|
+
interface OffscreenCanvasEventMap {
|
|
10367
|
+
"contextlost": Event;
|
|
10368
|
+
"contextrestored": Event;
|
|
10369
|
+
}
|
|
10370
|
+
|
|
10371
|
+
interface OffscreenCanvas extends EventTarget {
|
|
10372
|
+
/**
|
|
10373
|
+
* These attributes return the dimensions of the OffscreenCanvas object's bitmap.
|
|
10374
|
+
*
|
|
10375
|
+
* They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).
|
|
10376
|
+
*/
|
|
10377
|
+
height: number;
|
|
10378
|
+
oncontextlost: ((this: OffscreenCanvas, ev: Event) => any) | null;
|
|
10379
|
+
oncontextrestored: ((this: OffscreenCanvas, ev: Event) => any) | null;
|
|
10380
|
+
/**
|
|
10381
|
+
* These attributes return the dimensions of the OffscreenCanvas object's bitmap.
|
|
10382
|
+
*
|
|
10383
|
+
* They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).
|
|
10384
|
+
*/
|
|
10385
|
+
width: number;
|
|
10386
|
+
/**
|
|
10387
|
+
* 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.
|
|
10388
|
+
*
|
|
10389
|
+
* 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]
|
|
10390
|
+
*
|
|
10391
|
+
* 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).
|
|
10392
|
+
*/
|
|
10393
|
+
getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null;
|
|
10394
|
+
/** 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. */
|
|
10395
|
+
transferToImageBitmap(): ImageBitmap;
|
|
10396
|
+
addEventListener<K extends keyof OffscreenCanvasEventMap>(type: K, listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
10397
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
10398
|
+
removeEventListener<K extends keyof OffscreenCanvasEventMap>(type: K, listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
10399
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
10400
|
+
}
|
|
10401
|
+
|
|
10402
|
+
declare var OffscreenCanvas: {
|
|
10403
|
+
prototype: OffscreenCanvas;
|
|
10404
|
+
new(width: number, height: number): OffscreenCanvas;
|
|
10405
|
+
};
|
|
10406
|
+
|
|
10407
|
+
interface OffscreenCanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform {
|
|
10408
|
+
readonly canvas: OffscreenCanvas;
|
|
10409
|
+
commit(): void;
|
|
10410
|
+
}
|
|
10411
|
+
|
|
10412
|
+
declare var OffscreenCanvasRenderingContext2D: {
|
|
10413
|
+
prototype: OffscreenCanvasRenderingContext2D;
|
|
10414
|
+
new(): OffscreenCanvasRenderingContext2D;
|
|
10415
|
+
};
|
|
10416
|
+
|
|
10358
10417
|
/** 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. */
|
|
10359
10418
|
interface OscillatorNode extends AudioScheduledSourceNode {
|
|
10360
10419
|
readonly detune: AudioParam;
|
|
@@ -16065,7 +16124,7 @@ declare var WebGLRenderingContext: {
|
|
|
16065
16124
|
};
|
|
16066
16125
|
|
|
16067
16126
|
interface WebGLRenderingContextBase {
|
|
16068
|
-
readonly canvas: HTMLCanvasElement;
|
|
16127
|
+
readonly canvas: HTMLCanvasElement | OffscreenCanvas;
|
|
16069
16128
|
readonly drawingBufferHeight: GLsizei;
|
|
16070
16129
|
readonly drawingBufferWidth: GLsizei;
|
|
16071
16130
|
activeTexture(texture: GLenum): void;
|
|
@@ -17543,7 +17602,7 @@ interface UnderlyingSourceStartCallback<R> {
|
|
|
17543
17602
|
}
|
|
17544
17603
|
|
|
17545
17604
|
interface VideoFrameRequestCallback {
|
|
17546
|
-
(now: DOMHighResTimeStamp, metadata:
|
|
17605
|
+
(now: DOMHighResTimeStamp, metadata: VideoFrameCallbackMetadata): void;
|
|
17547
17606
|
}
|
|
17548
17607
|
|
|
17549
17608
|
interface VoidFunction {
|
|
@@ -18220,7 +18279,7 @@ type BodyInit = ReadableStream | XMLHttpRequestBodyInit;
|
|
|
18220
18279
|
type BufferSource = ArrayBufferView | ArrayBuffer;
|
|
18221
18280
|
type COSEAlgorithmIdentifier = number;
|
|
18222
18281
|
type CSSNumberish = number;
|
|
18223
|
-
type CanvasImageSource = HTMLOrSVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap;
|
|
18282
|
+
type CanvasImageSource = HTMLOrSVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap | OffscreenCanvas;
|
|
18224
18283
|
type ClipboardItemData = Promise<string | Blob>;
|
|
18225
18284
|
type ClipboardItems = ClipboardItem[];
|
|
18226
18285
|
type ConstrainBoolean = boolean | ConstrainBooleanParameters;
|
|
@@ -18257,6 +18316,7 @@ type MediaProvider = MediaStream | MediaSource | Blob;
|
|
|
18257
18316
|
type MessageEventSource = WindowProxy | MessagePort | ServiceWorker;
|
|
18258
18317
|
type MutationRecordType = "attributes" | "characterData" | "childList";
|
|
18259
18318
|
type NamedCurve = string;
|
|
18319
|
+
type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
|
|
18260
18320
|
type OnBeforeUnloadEventHandler = OnBeforeUnloadEventHandlerNonNull | null;
|
|
18261
18321
|
type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
|
|
18262
18322
|
type PerformanceEntryList = PerformanceEntry[];
|
|
@@ -18265,9 +18325,9 @@ type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableSt
|
|
|
18265
18325
|
type ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBYOBReader;
|
|
18266
18326
|
type RenderingContext = CanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
|
|
18267
18327
|
type RequestInfo = Request | string;
|
|
18268
|
-
type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement;
|
|
18328
|
+
type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | OffscreenCanvas;
|
|
18269
18329
|
type TimerHandler = string | Function;
|
|
18270
|
-
type Transferable = ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer;
|
|
18330
|
+
type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer;
|
|
18271
18331
|
type Uint32List = Uint32Array | GLuint[];
|
|
18272
18332
|
type VibratePattern = number | number[];
|
|
18273
18333
|
type WindowProxy = Window;
|
|
@@ -18347,6 +18407,7 @@ type MediaStreamTrackState = "ended" | "live";
|
|
|
18347
18407
|
type NavigationTimingType = "back_forward" | "navigate" | "prerender" | "reload";
|
|
18348
18408
|
type NotificationDirection = "auto" | "ltr" | "rtl";
|
|
18349
18409
|
type NotificationPermission = "default" | "denied" | "granted";
|
|
18410
|
+
type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";
|
|
18350
18411
|
type OrientationLockType = "any" | "landscape" | "landscape-primary" | "landscape-secondary" | "natural" | "portrait" | "portrait-primary" | "portrait-secondary";
|
|
18351
18412
|
type OrientationType = "landscape-primary" | "landscape-secondary" | "portrait-primary" | "portrait-secondary";
|
|
18352
18413
|
type OscillatorType = "custom" | "sawtooth" | "sine" | "square" | "triangle";
|