Skip to content

Commit d6cd2c7

Browse files
author
Orta Therox
authored
Updates the DOM APIs (microsoft#46080)
* Updates the DOM APIs * Tests * Remove static abort(): AbortSignal
1 parent e160bc8 commit d6cd2c7

15 files changed

+921
-2537
lines changed

src/lib/dom.generated.d.ts

Lines changed: 669 additions & 1896 deletions
Large diffs are not rendered by default.

src/lib/dom.iterable.generated.d.ts

Lines changed: 16 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,11 @@ interface FontFaceSet extends Set<FontFace> {
5858

5959
interface FormData {
6060
[Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>;
61-
/**
62-
* Returns an array of key, value pairs for every entry in the list.
63-
*/
61+
/** Returns an array of key, value pairs for every entry in the list. */
6462
entries(): IterableIterator<[string, FormDataEntryValue]>;
65-
/**
66-
* Returns a list of keys in the list.
67-
*/
63+
/** Returns a list of keys in the list. */
6864
keys(): IterableIterator<string>;
69-
/**
70-
* Returns a list of values in the list.
71-
*/
65+
/** Returns a list of values in the list. */
7266
values(): IterableIterator<FormDataEntryValue>;
7367
}
7468

@@ -94,24 +88,16 @@ interface HTMLSelectElement {
9488

9589
interface Headers {
9690
[Symbol.iterator](): IterableIterator<[string, string]>;
97-
/**
98-
* Returns an iterator allowing to go through all key/value pairs contained in this object.
99-
*/
91+
/** Returns an iterator allowing to go through all key/value pairs contained in this object. */
10092
entries(): IterableIterator<[string, string]>;
101-
/**
102-
* Returns an iterator allowing to go through all keys of the key/value pairs contained in this object.
103-
*/
93+
/** Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. */
10494
keys(): IterableIterator<string>;
105-
/**
106-
* Returns an iterator allowing to go through all values of the key/value pairs contained in this object.
107-
*/
95+
/** Returns an iterator allowing to go through all values of the key/value pairs contained in this object. */
10896
values(): IterableIterator<string>;
10997
}
11098

11199
interface IDBDatabase {
112-
/**
113-
* Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names.
114-
*/
100+
/** Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names. */
115101
transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode): IDBTransaction;
116102
}
117103

@@ -155,33 +141,21 @@ interface Navigator {
155141

156142
interface NodeList {
157143
[Symbol.iterator](): IterableIterator<Node>;
158-
/**
159-
* Returns an array of key, value pairs for every entry in the list.
160-
*/
144+
/** Returns an array of key, value pairs for every entry in the list. */
161145
entries(): IterableIterator<[number, Node]>;
162-
/**
163-
* Returns an list of keys in the list.
164-
*/
146+
/** Returns an list of keys in the list. */
165147
keys(): IterableIterator<number>;
166-
/**
167-
* Returns an list of values in the list.
168-
*/
148+
/** Returns an list of values in the list. */
169149
values(): IterableIterator<Node>;
170150
}
171151

172152
interface NodeListOf<TNode extends Node> {
173153
[Symbol.iterator](): IterableIterator<TNode>;
174-
/**
175-
* Returns an array of key, value pairs for every entry in the list.
176-
*/
154+
/** Returns an array of key, value pairs for every entry in the list. */
177155
entries(): IterableIterator<[number, TNode]>;
178-
/**
179-
* Returns an list of keys in the list.
180-
*/
156+
/** Returns an list of keys in the list. */
181157
keys(): IterableIterator<number>;
182-
/**
183-
* Returns an list of values in the list.
184-
*/
158+
/** Returns an list of values in the list. */
185159
values(): IterableIterator<TNode>;
186160
}
187161

@@ -263,17 +237,11 @@ interface TouchList {
263237

264238
interface URLSearchParams {
265239
[Symbol.iterator](): IterableIterator<[string, string]>;
266-
/**
267-
* Returns an array of key, value pairs for every entry in the search params.
268-
*/
240+
/** Returns an array of key, value pairs for every entry in the search params. */
269241
entries(): IterableIterator<[string, string]>;
270-
/**
271-
* Returns a list of keys in the search params.
272-
*/
242+
/** Returns a list of keys in the search params. */
273243
keys(): IterableIterator<string>;
274-
/**
275-
* Returns a list of values in the search params.
276-
*/
244+
/** Returns a list of values in the search params. */
277245
values(): IterableIterator<string>;
278246
}
279247

0 commit comments

Comments
 (0)