@types/web 0.0.69 → 0.0.71
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 +80 -19
- 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.71 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.71.
|
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;
|
|
@@ -1487,9 +1491,18 @@ interface RTCTransportStats extends RTCStats {
|
|
|
1487
1491
|
tlsVersion?: string;
|
|
1488
1492
|
}
|
|
1489
1493
|
|
|
1490
|
-
interface
|
|
1494
|
+
interface ReadableStreamGetReaderOptions {
|
|
1495
|
+
/**
|
|
1496
|
+
* Creates a ReadableStreamBYOBReader and locks the stream to the new reader.
|
|
1497
|
+
*
|
|
1498
|
+
* 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.
|
|
1499
|
+
*/
|
|
1500
|
+
mode?: ReadableStreamReaderMode;
|
|
1501
|
+
}
|
|
1502
|
+
|
|
1503
|
+
interface ReadableStreamReadDoneResult<T> {
|
|
1491
1504
|
done: true;
|
|
1492
|
-
value?:
|
|
1505
|
+
value?: T;
|
|
1493
1506
|
}
|
|
1494
1507
|
|
|
1495
1508
|
interface ReadableStreamReadValueResult<T> {
|
|
@@ -1773,6 +1786,21 @@ interface ULongRange {
|
|
|
1773
1786
|
min?: number;
|
|
1774
1787
|
}
|
|
1775
1788
|
|
|
1789
|
+
interface UnderlyingByteSource {
|
|
1790
|
+
autoAllocateChunkSize?: number;
|
|
1791
|
+
cancel?: UnderlyingSourceCancelCallback;
|
|
1792
|
+
pull?: (controller: ReadableByteStreamController) => void | PromiseLike<void>;
|
|
1793
|
+
start?: (controller: ReadableByteStreamController) => any;
|
|
1794
|
+
type: "bytes";
|
|
1795
|
+
}
|
|
1796
|
+
|
|
1797
|
+
interface UnderlyingDefaultSource<R = any> {
|
|
1798
|
+
cancel?: UnderlyingSourceCancelCallback;
|
|
1799
|
+
pull?: (controller: ReadableStreamDefaultController<R>) => void | PromiseLike<void>;
|
|
1800
|
+
start?: (controller: ReadableStreamDefaultController<R>) => any;
|
|
1801
|
+
type?: undefined;
|
|
1802
|
+
}
|
|
1803
|
+
|
|
1776
1804
|
interface UnderlyingSink<W = any> {
|
|
1777
1805
|
abort?: UnderlyingSinkAbortCallback;
|
|
1778
1806
|
close?: UnderlyingSinkCloseCallback;
|
|
@@ -1782,10 +1810,11 @@ interface UnderlyingSink<W = any> {
|
|
|
1782
1810
|
}
|
|
1783
1811
|
|
|
1784
1812
|
interface UnderlyingSource<R = any> {
|
|
1813
|
+
autoAllocateChunkSize?: number;
|
|
1785
1814
|
cancel?: UnderlyingSourceCancelCallback;
|
|
1786
1815
|
pull?: UnderlyingSourcePullCallback<R>;
|
|
1787
1816
|
start?: UnderlyingSourceStartCallback<R>;
|
|
1788
|
-
type?:
|
|
1817
|
+
type?: ReadableStreamType;
|
|
1789
1818
|
}
|
|
1790
1819
|
|
|
1791
1820
|
interface ValidityStateFlags {
|
|
@@ -1979,6 +2008,7 @@ declare var AbortSignal: {
|
|
|
1979
2008
|
prototype: AbortSignal;
|
|
1980
2009
|
new(): AbortSignal;
|
|
1981
2010
|
// abort(reason?: any): AbortSignal; - To be re-added in the future
|
|
2011
|
+
timeout(milliseconds: number): AbortSignal;
|
|
1982
2012
|
};
|
|
1983
2013
|
|
|
1984
2014
|
interface AbstractRange {
|
|
@@ -2364,6 +2394,8 @@ declare var AuthenticatorAssertionResponse: {
|
|
|
2364
2394
|
/** Available only in secure contexts. */
|
|
2365
2395
|
interface AuthenticatorAttestationResponse extends AuthenticatorResponse {
|
|
2366
2396
|
readonly attestationObject: ArrayBuffer;
|
|
2397
|
+
getAuthenticatorData(): ArrayBuffer;
|
|
2398
|
+
getTransports(): string[];
|
|
2367
2399
|
}
|
|
2368
2400
|
|
|
2369
2401
|
declare var AuthenticatorAttestationResponse: {
|
|
@@ -4526,6 +4558,7 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
|
|
|
4526
4558
|
createEvent(eventInterface: "PageTransitionEvent"): PageTransitionEvent;
|
|
4527
4559
|
createEvent(eventInterface: "PaymentMethodChangeEvent"): PaymentMethodChangeEvent;
|
|
4528
4560
|
createEvent(eventInterface: "PaymentRequestUpdateEvent"): PaymentRequestUpdateEvent;
|
|
4561
|
+
createEvent(eventInterface: "PictureInPictureEvent"): PictureInPictureEvent;
|
|
4529
4562
|
createEvent(eventInterface: "PointerEvent"): PointerEvent;
|
|
4530
4563
|
createEvent(eventInterface: "PopStateEvent"): PopStateEvent;
|
|
4531
4564
|
createEvent(eventInterface: "ProgressEvent"): ProgressEvent;
|
|
@@ -4819,6 +4852,13 @@ interface EXT_sRGB {
|
|
|
4819
4852
|
interface EXT_shader_texture_lod {
|
|
4820
4853
|
}
|
|
4821
4854
|
|
|
4855
|
+
interface EXT_texture_compression_bptc {
|
|
4856
|
+
readonly COMPRESSED_RGBA_BPTC_UNORM_EXT: GLenum;
|
|
4857
|
+
readonly COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT: GLenum;
|
|
4858
|
+
readonly COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT: GLenum;
|
|
4859
|
+
readonly COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT: GLenum;
|
|
4860
|
+
}
|
|
4861
|
+
|
|
4822
4862
|
interface EXT_texture_compression_rgtc {
|
|
4823
4863
|
readonly COMPRESSED_RED_GREEN_RGTC2_EXT: GLenum;
|
|
4824
4864
|
readonly COMPRESSED_RED_RGTC1_EXT: GLenum;
|
|
@@ -10662,6 +10702,7 @@ interface PermissionStatusEventMap {
|
|
|
10662
10702
|
}
|
|
10663
10703
|
|
|
10664
10704
|
interface PermissionStatus extends EventTarget {
|
|
10705
|
+
readonly name: string;
|
|
10665
10706
|
onchange: ((this: PermissionStatus, ev: Event) => any) | null;
|
|
10666
10707
|
readonly state: PermissionState;
|
|
10667
10708
|
addEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -10684,6 +10725,15 @@ declare var Permissions: {
|
|
|
10684
10725
|
new(): Permissions;
|
|
10685
10726
|
};
|
|
10686
10727
|
|
|
10728
|
+
interface PictureInPictureEvent extends Event {
|
|
10729
|
+
readonly pictureInPictureWindow: PictureInPictureWindow;
|
|
10730
|
+
}
|
|
10731
|
+
|
|
10732
|
+
declare var PictureInPictureEvent: {
|
|
10733
|
+
prototype: PictureInPictureEvent;
|
|
10734
|
+
new(type: string, eventInitDict: PictureInPictureEventInit): PictureInPictureEvent;
|
|
10735
|
+
};
|
|
10736
|
+
|
|
10687
10737
|
interface PictureInPictureWindowEventMap {
|
|
10688
10738
|
"resize": Event;
|
|
10689
10739
|
}
|
|
@@ -10883,6 +10933,7 @@ declare var PushSubscription: {
|
|
|
10883
10933
|
/** Available only in secure contexts. */
|
|
10884
10934
|
interface PushSubscriptionOptions {
|
|
10885
10935
|
readonly applicationServerKey: ArrayBuffer | null;
|
|
10936
|
+
readonly userVisibleOnly: boolean;
|
|
10886
10937
|
}
|
|
10887
10938
|
|
|
10888
10939
|
declare var PushSubscriptionOptions: {
|
|
@@ -11367,7 +11418,9 @@ declare var ReadableByteStreamController: {
|
|
|
11367
11418
|
interface ReadableStream<R = any> {
|
|
11368
11419
|
readonly locked: boolean;
|
|
11369
11420
|
cancel(reason?: any): Promise<void>;
|
|
11421
|
+
getReader(options: { mode: "byob" }): ReadableStreamBYOBReader;
|
|
11370
11422
|
getReader(): ReadableStreamDefaultReader<R>;
|
|
11423
|
+
getReader(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<R>;
|
|
11371
11424
|
pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;
|
|
11372
11425
|
pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;
|
|
11373
11426
|
tee(): [ReadableStream<R>, ReadableStream<R>];
|
|
@@ -11375,11 +11428,13 @@ interface ReadableStream<R = any> {
|
|
|
11375
11428
|
|
|
11376
11429
|
declare var ReadableStream: {
|
|
11377
11430
|
prototype: ReadableStream;
|
|
11431
|
+
new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream<Uint8Array>;
|
|
11432
|
+
new<R = any>(underlyingSource: UnderlyingDefaultSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
|
|
11378
11433
|
new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
|
|
11379
11434
|
};
|
|
11380
11435
|
|
|
11381
11436
|
interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
|
|
11382
|
-
read(view:
|
|
11437
|
+
read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>;
|
|
11383
11438
|
releaseLock(): void;
|
|
11384
11439
|
}
|
|
11385
11440
|
|
|
@@ -15953,35 +16008,39 @@ interface WebGLRenderingContextBase {
|
|
|
15953
16008
|
getBufferParameter(target: GLenum, pname: GLenum): any;
|
|
15954
16009
|
getContextAttributes(): WebGLContextAttributes | null;
|
|
15955
16010
|
getError(): GLenum;
|
|
16011
|
+
getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;
|
|
15956
16012
|
getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null;
|
|
15957
16013
|
getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null;
|
|
15958
16014
|
getExtension(extensionName: "EXT_color_buffer_half_float"): EXT_color_buffer_half_float | null;
|
|
15959
16015
|
getExtension(extensionName: "EXT_float_blend"): EXT_float_blend | null;
|
|
15960
|
-
getExtension(extensionName: "EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic | null;
|
|
15961
16016
|
getExtension(extensionName: "EXT_frag_depth"): EXT_frag_depth | null;
|
|
15962
|
-
getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod | null;
|
|
15963
16017
|
getExtension(extensionName: "EXT_sRGB"): EXT_sRGB | null;
|
|
16018
|
+
getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod | null;
|
|
16019
|
+
getExtension(extensionName: "EXT_texture_compression_bptc"): EXT_texture_compression_bptc | null;
|
|
16020
|
+
getExtension(extensionName: "EXT_texture_compression_rgtc"): EXT_texture_compression_rgtc | null;
|
|
16021
|
+
getExtension(extensionName: "EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic | null;
|
|
15964
16022
|
getExtension(extensionName: "KHR_parallel_shader_compile"): KHR_parallel_shader_compile | null;
|
|
16023
|
+
getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null;
|
|
16024
|
+
getExtension(extensionName: "OES_fbo_render_mipmap"): OES_fbo_render_mipmap | null;
|
|
16025
|
+
getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null;
|
|
16026
|
+
getExtension(extensionName: "OES_texture_float"): OES_texture_float | null;
|
|
16027
|
+
getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear | null;
|
|
16028
|
+
getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float | null;
|
|
16029
|
+
getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear | null;
|
|
15965
16030
|
getExtension(extensionName: "OES_vertex_array_object"): OES_vertex_array_object | null;
|
|
15966
16031
|
getExtension(extensionName: "OVR_multiview2"): OVR_multiview2 | null;
|
|
15967
16032
|
getExtension(extensionName: "WEBGL_color_buffer_float"): WEBGL_color_buffer_float | null;
|
|
15968
16033
|
getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc | null;
|
|
15969
16034
|
getExtension(extensionName: "WEBGL_compressed_texture_etc"): WEBGL_compressed_texture_etc | null;
|
|
15970
16035
|
getExtension(extensionName: "WEBGL_compressed_texture_etc1"): WEBGL_compressed_texture_etc1 | null;
|
|
16036
|
+
getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null;
|
|
15971
16037
|
getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb | null;
|
|
16038
|
+
getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info | null;
|
|
15972
16039
|
getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null;
|
|
16040
|
+
getExtension(extensionName: "WEBGL_depth_texture"): WEBGL_depth_texture | null;
|
|
15973
16041
|
getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;
|
|
15974
16042
|
getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null;
|
|
15975
|
-
getExtension(extensionName: "
|
|
15976
|
-
getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info | null;
|
|
15977
|
-
getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null;
|
|
15978
|
-
getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear | null;
|
|
15979
|
-
getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float | null;
|
|
15980
|
-
getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear | null;
|
|
15981
|
-
getExtension(extensionName: "OES_texture_float"): OES_texture_float | null;
|
|
15982
|
-
getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null;
|
|
15983
|
-
getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null;
|
|
15984
|
-
getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;
|
|
16043
|
+
getExtension(extensionName: "WEBGL_multi_draw"): WEBGL_multi_draw | null;
|
|
15985
16044
|
getExtension(name: string): any;
|
|
15986
16045
|
getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any;
|
|
15987
16046
|
getParameter(pname: GLenum): any;
|
|
@@ -18082,9 +18141,9 @@ type NamedCurve = string;
|
|
|
18082
18141
|
type OnBeforeUnloadEventHandler = OnBeforeUnloadEventHandlerNonNull | null;
|
|
18083
18142
|
type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
|
|
18084
18143
|
type PerformanceEntryList = PerformanceEntry[];
|
|
18085
|
-
type ReadableStreamController<T> = ReadableStreamDefaultController<T
|
|
18086
|
-
type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult
|
|
18087
|
-
type ReadableStreamReader<T> = ReadableStreamDefaultReader<T
|
|
18144
|
+
type ReadableStreamController<T> = ReadableStreamDefaultController<T> | ReadableByteStreamController;
|
|
18145
|
+
type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>;
|
|
18146
|
+
type ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBYOBReader;
|
|
18088
18147
|
type RenderingContext = CanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
|
|
18089
18148
|
type RequestInfo = Request | string;
|
|
18090
18149
|
type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement;
|
|
@@ -18211,6 +18270,8 @@ type RTCSdpType = "answer" | "offer" | "pranswer" | "rollback";
|
|
|
18211
18270
|
type RTCSignalingState = "closed" | "have-local-offer" | "have-local-pranswer" | "have-remote-offer" | "have-remote-pranswer" | "stable";
|
|
18212
18271
|
type RTCStatsIceCandidatePairState = "failed" | "frozen" | "in-progress" | "inprogress" | "succeeded" | "waiting";
|
|
18213
18272
|
type RTCStatsType = "candidate-pair" | "certificate" | "codec" | "csrc" | "data-channel" | "inbound-rtp" | "local-candidate" | "media-source" | "outbound-rtp" | "peer-connection" | "remote-candidate" | "remote-inbound-rtp" | "remote-outbound-rtp" | "track" | "transport";
|
|
18273
|
+
type ReadableStreamReaderMode = "byob";
|
|
18274
|
+
type ReadableStreamType = "bytes";
|
|
18214
18275
|
type ReadyState = "closed" | "ended" | "open";
|
|
18215
18276
|
type RecordingState = "inactive" | "paused" | "recording";
|
|
18216
18277
|
type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";
|