@types/web 0.0.67 → 0.0.70
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 +84 -16
- 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.70 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.70.
|
package/index.d.ts
CHANGED
|
@@ -1103,6 +1103,10 @@ interface PermissionDescriptor {
|
|
|
1103
1103
|
name: PermissionName;
|
|
1104
1104
|
}
|
|
1105
1105
|
|
|
1106
|
+
interface PictureInPictureEventInit extends EventInit {
|
|
1107
|
+
pictureInPictureWindow: PictureInPictureWindow;
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1106
1110
|
interface PointerEventInit extends MouseEventInit {
|
|
1107
1111
|
coalescedEvents?: PointerEvent[];
|
|
1108
1112
|
height?: number;
|
|
@@ -1979,6 +1983,7 @@ declare var AbortSignal: {
|
|
|
1979
1983
|
prototype: AbortSignal;
|
|
1980
1984
|
new(): AbortSignal;
|
|
1981
1985
|
// abort(reason?: any): AbortSignal; - To be re-added in the future
|
|
1986
|
+
timeout(milliseconds: number): AbortSignal;
|
|
1982
1987
|
};
|
|
1983
1988
|
|
|
1984
1989
|
interface AbstractRange {
|
|
@@ -2177,6 +2182,7 @@ declare var AudioBufferSourceNode: {
|
|
|
2177
2182
|
/** An audio-processing graph built from audio modules linked together, each represented by an AudioNode. */
|
|
2178
2183
|
interface AudioContext extends BaseAudioContext {
|
|
2179
2184
|
readonly baseLatency: number;
|
|
2185
|
+
readonly outputLatency: number;
|
|
2180
2186
|
close(): Promise<void>;
|
|
2181
2187
|
createMediaElementSource(mediaElement: HTMLMediaElement): MediaElementAudioSourceNode;
|
|
2182
2188
|
createMediaStreamDestination(): MediaStreamAudioDestinationNode;
|
|
@@ -2363,6 +2369,8 @@ declare var AuthenticatorAssertionResponse: {
|
|
|
2363
2369
|
/** Available only in secure contexts. */
|
|
2364
2370
|
interface AuthenticatorAttestationResponse extends AuthenticatorResponse {
|
|
2365
2371
|
readonly attestationObject: ArrayBuffer;
|
|
2372
|
+
getAuthenticatorData(): ArrayBuffer;
|
|
2373
|
+
getTransports(): string[];
|
|
2366
2374
|
}
|
|
2367
2375
|
|
|
2368
2376
|
declare var AuthenticatorAttestationResponse: {
|
|
@@ -3281,6 +3289,8 @@ interface CSSStyleSheet extends StyleSheet {
|
|
|
3281
3289
|
insertRule(rule: string, index?: number): number;
|
|
3282
3290
|
/** @deprecated */
|
|
3283
3291
|
removeRule(index?: number): void;
|
|
3292
|
+
replace(text: string): Promise<CSSStyleSheet>;
|
|
3293
|
+
replaceSync(text: string): void;
|
|
3284
3294
|
}
|
|
3285
3295
|
|
|
3286
3296
|
declare var CSSStyleSheet: {
|
|
@@ -4523,6 +4533,7 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
|
|
|
4523
4533
|
createEvent(eventInterface: "PageTransitionEvent"): PageTransitionEvent;
|
|
4524
4534
|
createEvent(eventInterface: "PaymentMethodChangeEvent"): PaymentMethodChangeEvent;
|
|
4525
4535
|
createEvent(eventInterface: "PaymentRequestUpdateEvent"): PaymentRequestUpdateEvent;
|
|
4536
|
+
createEvent(eventInterface: "PictureInPictureEvent"): PictureInPictureEvent;
|
|
4526
4537
|
createEvent(eventInterface: "PointerEvent"): PointerEvent;
|
|
4527
4538
|
createEvent(eventInterface: "PopStateEvent"): PopStateEvent;
|
|
4528
4539
|
createEvent(eventInterface: "ProgressEvent"): ProgressEvent;
|
|
@@ -4720,6 +4731,7 @@ interface DocumentOrShadowRoot {
|
|
|
4720
4731
|
* Similarly, when the focused element is in a different node tree than documentOrShadowRoot, the element returned will be the host that's located in the same node tree as documentOrShadowRoot if documentOrShadowRoot is a shadow-including inclusive ancestor of the focused element, and null if not.
|
|
4721
4732
|
*/
|
|
4722
4733
|
readonly activeElement: Element | null;
|
|
4734
|
+
adoptedStyleSheets: CSSStyleSheet[];
|
|
4723
4735
|
/** Returns document's fullscreen element. */
|
|
4724
4736
|
readonly fullscreenElement: Element | null;
|
|
4725
4737
|
readonly pictureInPictureElement: Element | null;
|
|
@@ -4815,6 +4827,13 @@ interface EXT_sRGB {
|
|
|
4815
4827
|
interface EXT_shader_texture_lod {
|
|
4816
4828
|
}
|
|
4817
4829
|
|
|
4830
|
+
interface EXT_texture_compression_bptc {
|
|
4831
|
+
readonly COMPRESSED_RGBA_BPTC_UNORM_EXT: GLenum;
|
|
4832
|
+
readonly COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT: GLenum;
|
|
4833
|
+
readonly COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT: GLenum;
|
|
4834
|
+
readonly COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT: GLenum;
|
|
4835
|
+
}
|
|
4836
|
+
|
|
4818
4837
|
interface EXT_texture_compression_rgtc {
|
|
4819
4838
|
readonly COMPRESSED_RED_GREEN_RGTC2_EXT: GLenum;
|
|
4820
4839
|
readonly COMPRESSED_RED_RGTC1_EXT: GLenum;
|
|
@@ -10658,6 +10677,7 @@ interface PermissionStatusEventMap {
|
|
|
10658
10677
|
}
|
|
10659
10678
|
|
|
10660
10679
|
interface PermissionStatus extends EventTarget {
|
|
10680
|
+
readonly name: string;
|
|
10661
10681
|
onchange: ((this: PermissionStatus, ev: Event) => any) | null;
|
|
10662
10682
|
readonly state: PermissionState;
|
|
10663
10683
|
addEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -10680,6 +10700,15 @@ declare var Permissions: {
|
|
|
10680
10700
|
new(): Permissions;
|
|
10681
10701
|
};
|
|
10682
10702
|
|
|
10703
|
+
interface PictureInPictureEvent extends Event {
|
|
10704
|
+
readonly pictureInPictureWindow: PictureInPictureWindow;
|
|
10705
|
+
}
|
|
10706
|
+
|
|
10707
|
+
declare var PictureInPictureEvent: {
|
|
10708
|
+
prototype: PictureInPictureEvent;
|
|
10709
|
+
new(type: string, eventInitDict: PictureInPictureEventInit): PictureInPictureEvent;
|
|
10710
|
+
};
|
|
10711
|
+
|
|
10683
10712
|
interface PictureInPictureWindowEventMap {
|
|
10684
10713
|
"resize": Event;
|
|
10685
10714
|
}
|
|
@@ -10879,6 +10908,7 @@ declare var PushSubscription: {
|
|
|
10879
10908
|
/** Available only in secure contexts. */
|
|
10880
10909
|
interface PushSubscriptionOptions {
|
|
10881
10910
|
readonly applicationServerKey: ArrayBuffer | null;
|
|
10911
|
+
readonly userVisibleOnly: boolean;
|
|
10882
10912
|
}
|
|
10883
10913
|
|
|
10884
10914
|
declare var PushSubscriptionOptions: {
|
|
@@ -11346,6 +11376,19 @@ declare var Range: {
|
|
|
11346
11376
|
toString(): string;
|
|
11347
11377
|
};
|
|
11348
11378
|
|
|
11379
|
+
interface ReadableByteStreamController {
|
|
11380
|
+
readonly byobRequest: ReadableStreamBYOBRequest | null;
|
|
11381
|
+
readonly desiredSize: number | null;
|
|
11382
|
+
close(): void;
|
|
11383
|
+
enqueue(chunk: ArrayBufferView): void;
|
|
11384
|
+
error(e?: any): void;
|
|
11385
|
+
}
|
|
11386
|
+
|
|
11387
|
+
declare var ReadableByteStreamController: {
|
|
11388
|
+
prototype: ReadableByteStreamController;
|
|
11389
|
+
new(): ReadableByteStreamController;
|
|
11390
|
+
};
|
|
11391
|
+
|
|
11349
11392
|
/** 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. */
|
|
11350
11393
|
interface ReadableStream<R = any> {
|
|
11351
11394
|
readonly locked: boolean;
|
|
@@ -11361,6 +11404,27 @@ declare var ReadableStream: {
|
|
|
11361
11404
|
new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
|
|
11362
11405
|
};
|
|
11363
11406
|
|
|
11407
|
+
interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
|
|
11408
|
+
read(view: ArrayBufferView): Promise<ReadableStreamReadResult<ArrayBufferView>>;
|
|
11409
|
+
releaseLock(): void;
|
|
11410
|
+
}
|
|
11411
|
+
|
|
11412
|
+
declare var ReadableStreamBYOBReader: {
|
|
11413
|
+
prototype: ReadableStreamBYOBReader;
|
|
11414
|
+
new(stream: ReadableStream): ReadableStreamBYOBReader;
|
|
11415
|
+
};
|
|
11416
|
+
|
|
11417
|
+
interface ReadableStreamBYOBRequest {
|
|
11418
|
+
readonly view: ArrayBufferView | null;
|
|
11419
|
+
respond(bytesWritten: number): void;
|
|
11420
|
+
respondWithNewView(view: ArrayBufferView): void;
|
|
11421
|
+
}
|
|
11422
|
+
|
|
11423
|
+
declare var ReadableStreamBYOBRequest: {
|
|
11424
|
+
prototype: ReadableStreamBYOBRequest;
|
|
11425
|
+
new(): ReadableStreamBYOBRequest;
|
|
11426
|
+
};
|
|
11427
|
+
|
|
11364
11428
|
interface ReadableStreamDefaultController<R = any> {
|
|
11365
11429
|
readonly desiredSize: number | null;
|
|
11366
11430
|
close(): void;
|
|
@@ -13792,11 +13856,11 @@ declare var SubmitEvent: {
|
|
|
13792
13856
|
* Available only in secure contexts.
|
|
13793
13857
|
*/
|
|
13794
13858
|
interface SubtleCrypto {
|
|
13795
|
-
decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<
|
|
13859
|
+
decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
|
|
13796
13860
|
deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length: number): Promise<ArrayBuffer>;
|
|
13797
13861
|
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
|
|
13798
13862
|
digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>;
|
|
13799
|
-
encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<
|
|
13863
|
+
encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
|
|
13800
13864
|
exportKey(format: "jwk", key: CryptoKey): Promise<JsonWebKey>;
|
|
13801
13865
|
exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>;
|
|
13802
13866
|
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
|
|
@@ -15915,35 +15979,39 @@ interface WebGLRenderingContextBase {
|
|
|
15915
15979
|
getBufferParameter(target: GLenum, pname: GLenum): any;
|
|
15916
15980
|
getContextAttributes(): WebGLContextAttributes | null;
|
|
15917
15981
|
getError(): GLenum;
|
|
15982
|
+
getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;
|
|
15918
15983
|
getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null;
|
|
15919
15984
|
getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null;
|
|
15920
15985
|
getExtension(extensionName: "EXT_color_buffer_half_float"): EXT_color_buffer_half_float | null;
|
|
15921
15986
|
getExtension(extensionName: "EXT_float_blend"): EXT_float_blend | null;
|
|
15922
|
-
getExtension(extensionName: "EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic | null;
|
|
15923
15987
|
getExtension(extensionName: "EXT_frag_depth"): EXT_frag_depth | null;
|
|
15924
|
-
getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod | null;
|
|
15925
15988
|
getExtension(extensionName: "EXT_sRGB"): EXT_sRGB | null;
|
|
15989
|
+
getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod | null;
|
|
15990
|
+
getExtension(extensionName: "EXT_texture_compression_bptc"): EXT_texture_compression_bptc | null;
|
|
15991
|
+
getExtension(extensionName: "EXT_texture_compression_rgtc"): EXT_texture_compression_rgtc | null;
|
|
15992
|
+
getExtension(extensionName: "EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic | null;
|
|
15926
15993
|
getExtension(extensionName: "KHR_parallel_shader_compile"): KHR_parallel_shader_compile | null;
|
|
15994
|
+
getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null;
|
|
15995
|
+
getExtension(extensionName: "OES_fbo_render_mipmap"): OES_fbo_render_mipmap | null;
|
|
15996
|
+
getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null;
|
|
15997
|
+
getExtension(extensionName: "OES_texture_float"): OES_texture_float | null;
|
|
15998
|
+
getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear | null;
|
|
15999
|
+
getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float | null;
|
|
16000
|
+
getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear | null;
|
|
15927
16001
|
getExtension(extensionName: "OES_vertex_array_object"): OES_vertex_array_object | null;
|
|
15928
16002
|
getExtension(extensionName: "OVR_multiview2"): OVR_multiview2 | null;
|
|
15929
16003
|
getExtension(extensionName: "WEBGL_color_buffer_float"): WEBGL_color_buffer_float | null;
|
|
15930
16004
|
getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc | null;
|
|
15931
16005
|
getExtension(extensionName: "WEBGL_compressed_texture_etc"): WEBGL_compressed_texture_etc | null;
|
|
15932
16006
|
getExtension(extensionName: "WEBGL_compressed_texture_etc1"): WEBGL_compressed_texture_etc1 | null;
|
|
16007
|
+
getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null;
|
|
15933
16008
|
getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb | null;
|
|
16009
|
+
getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info | null;
|
|
15934
16010
|
getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null;
|
|
16011
|
+
getExtension(extensionName: "WEBGL_depth_texture"): WEBGL_depth_texture | null;
|
|
15935
16012
|
getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;
|
|
15936
16013
|
getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null;
|
|
15937
|
-
getExtension(extensionName: "
|
|
15938
|
-
getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info | null;
|
|
15939
|
-
getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null;
|
|
15940
|
-
getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear | null;
|
|
15941
|
-
getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float | null;
|
|
15942
|
-
getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear | null;
|
|
15943
|
-
getExtension(extensionName: "OES_texture_float"): OES_texture_float | null;
|
|
15944
|
-
getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null;
|
|
15945
|
-
getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null;
|
|
15946
|
-
getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;
|
|
16014
|
+
getExtension(extensionName: "WEBGL_multi_draw"): WEBGL_multi_draw | null;
|
|
15947
16015
|
getExtension(name: string): any;
|
|
15948
16016
|
getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any;
|
|
15949
16017
|
getParameter(pname: GLenum): any;
|
|
@@ -16554,7 +16622,7 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler
|
|
|
16554
16622
|
/** Returns true if the toolbar is visible; otherwise, returns false. */
|
|
16555
16623
|
readonly toolbar: BarProp;
|
|
16556
16624
|
readonly top: WindowProxy | null;
|
|
16557
|
-
readonly visualViewport: VisualViewport;
|
|
16625
|
+
readonly visualViewport: VisualViewport | null;
|
|
16558
16626
|
readonly window: Window & typeof globalThis;
|
|
16559
16627
|
alert(message?: any): void;
|
|
16560
16628
|
blur(): void;
|
|
@@ -17627,7 +17695,7 @@ declare var statusbar: BarProp;
|
|
|
17627
17695
|
/** Returns true if the toolbar is visible; otherwise, returns false. */
|
|
17628
17696
|
declare var toolbar: BarProp;
|
|
17629
17697
|
declare var top: WindowProxy | null;
|
|
17630
|
-
declare var visualViewport: VisualViewport;
|
|
17698
|
+
declare var visualViewport: VisualViewport | null;
|
|
17631
17699
|
declare var window: Window & typeof globalThis;
|
|
17632
17700
|
declare function alert(message?: any): void;
|
|
17633
17701
|
declare function blur(): void;
|