From 345f0fbe5cdaa71af067c7072537f1823fe4ada5 Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Fri, 10 Dec 2021 09:12:21 +1100 Subject: feat(cli): update to TypeScript 4.5 (#12410) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Bartek IwaƄczuk --- cli/dts/lib.dom.iterable.d.ts | 72 ++++++++++--------------------------------- 1 file changed, 17 insertions(+), 55 deletions(-) (limited to 'cli/dts/lib.dom.iterable.d.ts') diff --git a/cli/dts/lib.dom.iterable.d.ts b/cli/dts/lib.dom.iterable.d.ts index e84179d82..761616e2d 100644 --- a/cli/dts/lib.dom.iterable.d.ts +++ b/cli/dts/lib.dom.iterable.d.ts @@ -78,17 +78,11 @@ interface FontFaceSet extends Set { interface FormData { [Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>; - /** - * Returns an array of key, value pairs for every entry in the list. - */ + /** Returns an array of key, value pairs for every entry in the list. */ entries(): IterableIterator<[string, FormDataEntryValue]>; - /** - * Returns a list of keys in the list. - */ + /** Returns a list of keys in the list. */ keys(): IterableIterator; - /** - * Returns a list of values in the list. - */ + /** Returns a list of values in the list. */ values(): IterableIterator; } @@ -114,24 +108,16 @@ interface HTMLSelectElement { interface Headers { [Symbol.iterator](): IterableIterator<[string, string]>; - /** - * Returns an iterator allowing to go through all key/value pairs contained in this object. - */ + /** Returns an iterator allowing to go through all key/value pairs contained in this object. */ entries(): IterableIterator<[string, string]>; - /** - * Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. - */ + /** Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. */ keys(): IterableIterator; - /** - * Returns an iterator allowing to go through all values of the key/value pairs contained in this object. - */ + /** Returns an iterator allowing to go through all values of the key/value pairs contained in this object. */ values(): IterableIterator; } interface IDBDatabase { - /** - * 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. - */ + /** 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. */ transaction(storeNames: string | Iterable, mode?: IDBTransactionMode): IDBTransaction; } @@ -169,39 +155,28 @@ interface NamedNodeMap { } interface Navigator { + /** Available only in secure contexts. */ requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: Iterable): Promise; vibrate(pattern: Iterable): boolean; } interface NodeList { [Symbol.iterator](): IterableIterator; - /** - * Returns an array of key, value pairs for every entry in the list. - */ + /** Returns an array of key, value pairs for every entry in the list. */ entries(): IterableIterator<[number, Node]>; - /** - * Returns an list of keys in the list. - */ + /** Returns an list of keys in the list. */ keys(): IterableIterator; - /** - * Returns an list of values in the list. - */ + /** Returns an list of values in the list. */ values(): IterableIterator; } interface NodeListOf { [Symbol.iterator](): IterableIterator; - /** - * Returns an array of key, value pairs for every entry in the list. - */ + /** Returns an array of key, value pairs for every entry in the list. */ entries(): IterableIterator<[number, TNode]>; - /** - * Returns an list of keys in the list. - */ + /** Returns an list of keys in the list. */ keys(): IterableIterator; - /** - * Returns an list of values in the list. - */ + /** Returns an list of values in the list. */ values(): IterableIterator; } @@ -216,13 +191,6 @@ interface PluginArray { interface RTCStatsReport extends ReadonlyMap { } -interface ReadableStream { - [Symbol.iterator](): IterableIterator; - entries(): IterableIterator<[number, any]>; - keys(): IterableIterator; - values(): IterableIterator; -} - interface SVGLengthList { [Symbol.iterator](): IterableIterator; } @@ -283,17 +251,11 @@ interface TouchList { interface URLSearchParams { [Symbol.iterator](): IterableIterator<[string, string]>; - /** - * Returns an array of key, value pairs for every entry in the search params. - */ + /** Returns an array of key, value pairs for every entry in the search params. */ entries(): IterableIterator<[string, string]>; - /** - * Returns a list of keys in the search params. - */ + /** Returns a list of keys in the search params. */ keys(): IterableIterator; - /** - * Returns a list of values in the search params. - */ + /** Returns a list of values in the search params. */ values(): IterableIterator; } -- cgit v1.2.3