@types/web 0.0.49 → 0.0.53
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 +32 -3
- package/iterable.d.ts +3 -0
- 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.53 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.53.
|
package/index.d.ts
CHANGED
|
@@ -1905,7 +1905,7 @@ interface AbortSignal extends EventTarget {
|
|
|
1905
1905
|
declare var AbortSignal: {
|
|
1906
1906
|
prototype: AbortSignal;
|
|
1907
1907
|
new(): AbortSignal;
|
|
1908
|
-
abort(reason?: any): AbortSignal;
|
|
1908
|
+
// abort(reason?: any): AbortSignal; - To be re-added in the future
|
|
1909
1909
|
};
|
|
1910
1910
|
|
|
1911
1911
|
interface AbstractRange {
|
|
@@ -2391,7 +2391,7 @@ interface Blob {
|
|
|
2391
2391
|
readonly type: string;
|
|
2392
2392
|
arrayBuffer(): Promise<ArrayBuffer>;
|
|
2393
2393
|
slice(start?: number, end?: number, contentType?: string): Blob;
|
|
2394
|
-
stream(): ReadableStream
|
|
2394
|
+
stream(): ReadableStream<Uint8Array>;
|
|
2395
2395
|
text(): Promise<string>;
|
|
2396
2396
|
}
|
|
2397
2397
|
|
|
@@ -2766,6 +2766,7 @@ interface CSSStyleDeclaration {
|
|
|
2766
2766
|
columns: string;
|
|
2767
2767
|
contain: string;
|
|
2768
2768
|
content: string;
|
|
2769
|
+
contentVisibility: string;
|
|
2769
2770
|
counterIncrement: string;
|
|
2770
2771
|
counterReset: string;
|
|
2771
2772
|
counterSet: string;
|
|
@@ -2966,6 +2967,7 @@ interface CSSStyleDeclaration {
|
|
|
2966
2967
|
scrollSnapAlign: string;
|
|
2967
2968
|
scrollSnapStop: string;
|
|
2968
2969
|
scrollSnapType: string;
|
|
2970
|
+
scrollbarGutter: string;
|
|
2969
2971
|
shapeImageThreshold: string;
|
|
2970
2972
|
shapeMargin: string;
|
|
2971
2973
|
shapeOutside: string;
|
|
@@ -4947,6 +4949,15 @@ declare var Event: {
|
|
|
4947
4949
|
readonly NONE: number;
|
|
4948
4950
|
};
|
|
4949
4951
|
|
|
4952
|
+
interface EventCounts {
|
|
4953
|
+
forEach(callbackfn: (value: number, key: string, parent: EventCounts) => void, thisArg?: any): void;
|
|
4954
|
+
}
|
|
4955
|
+
|
|
4956
|
+
declare var EventCounts: {
|
|
4957
|
+
prototype: EventCounts;
|
|
4958
|
+
new(): EventCounts;
|
|
4959
|
+
};
|
|
4960
|
+
|
|
4950
4961
|
interface EventListener {
|
|
4951
4962
|
(evt: Event): void;
|
|
4952
4963
|
}
|
|
@@ -5124,6 +5135,7 @@ declare var FileSystemDirectoryEntry: {
|
|
|
5124
5135
|
|
|
5125
5136
|
/** Available only in secure contexts. */
|
|
5126
5137
|
interface FileSystemDirectoryHandle extends FileSystemHandle {
|
|
5138
|
+
readonly kind: "directory";
|
|
5127
5139
|
getDirectoryHandle(name: string, options?: FileSystemGetDirectoryOptions): Promise<FileSystemDirectoryHandle>;
|
|
5128
5140
|
getFileHandle(name: string, options?: FileSystemGetFileOptions): Promise<FileSystemFileHandle>;
|
|
5129
5141
|
removeEntry(name: string, options?: FileSystemRemoveOptions): Promise<void>;
|
|
@@ -5169,6 +5181,7 @@ declare var FileSystemFileEntry: {
|
|
|
5169
5181
|
|
|
5170
5182
|
/** Available only in secure contexts. */
|
|
5171
5183
|
interface FileSystemFileHandle extends FileSystemHandle {
|
|
5184
|
+
readonly kind: "file";
|
|
5172
5185
|
getFile(): Promise<File>;
|
|
5173
5186
|
}
|
|
5174
5187
|
|
|
@@ -6138,14 +6151,29 @@ declare var HTMLDetailsElement: {
|
|
|
6138
6151
|
new(): HTMLDetailsElement;
|
|
6139
6152
|
};
|
|
6140
6153
|
|
|
6141
|
-
/** @deprecated this is not available in most browsers */
|
|
6142
6154
|
interface HTMLDialogElement extends HTMLElement {
|
|
6155
|
+
open: boolean;
|
|
6156
|
+
returnValue: string;
|
|
6157
|
+
/**
|
|
6158
|
+
* Closes the dialog element.
|
|
6159
|
+
*
|
|
6160
|
+
* The argument, if provided, provides a return value.
|
|
6161
|
+
*/
|
|
6162
|
+
close(returnValue?: string): void;
|
|
6163
|
+
/** Displays the dialog element. */
|
|
6164
|
+
show(): void;
|
|
6165
|
+
showModal(): void;
|
|
6143
6166
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDialogElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
6144
6167
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
6145
6168
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDialogElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
6146
6169
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
6147
6170
|
}
|
|
6148
6171
|
|
|
6172
|
+
declare var HTMLDialogElement: {
|
|
6173
|
+
prototype: HTMLDialogElement;
|
|
6174
|
+
new(): HTMLDialogElement;
|
|
6175
|
+
};
|
|
6176
|
+
|
|
6149
6177
|
/** @deprecated */
|
|
6150
6178
|
interface HTMLDirectoryElement extends HTMLElement {
|
|
6151
6179
|
/** @deprecated */
|
|
@@ -10235,6 +10263,7 @@ interface PerformanceEventMap {
|
|
|
10235
10263
|
|
|
10236
10264
|
/** Provides access to performance-related information for the current page. It's part of the High Resolution Time API, but is enhanced by the Performance Timeline API, the Navigation Timing API, the User Timing API, and the Resource Timing API. */
|
|
10237
10265
|
interface Performance extends EventTarget {
|
|
10266
|
+
readonly eventCounts: EventCounts;
|
|
10238
10267
|
/** @deprecated */
|
|
10239
10268
|
readonly navigation: PerformanceNavigation;
|
|
10240
10269
|
onresourcetimingbufferfull: ((this: Performance, ev: Event) => any) | null;
|
package/iterable.d.ts
CHANGED