Skip to content

Commit

Permalink
chore: upgrade TypeScript to 4.5.0-beta
Browse files Browse the repository at this point in the history
  • Loading branch information
uhyo committed Oct 2, 2021
1 parent f990ec3 commit 052b1c6
Show file tree
Hide file tree
Showing 27 changed files with 1,402 additions and 2,833 deletions.
2 changes: 1 addition & 1 deletion TypeScript
Submodule TypeScript updated 2371 files
2,565 changes: 669 additions & 1,896 deletions generated/lib.dom.generated.d.ts

Large diffs are not rendered by default.

64 changes: 16 additions & 48 deletions generated/lib.dom.iterable.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,17 +58,11 @@ interface FontFaceSet extends Set<FontFace> {

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<string>;
/**
* Returns a list of values in the list.
*/
/** Returns a list of values in the list. */
values(): IterableIterator<FormDataEntryValue>;
}

Expand All @@ -94,24 +88,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<string>;
/**
* 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<string>;
}

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<string>, mode?: IDBTransactionMode): IDBTransaction;
}

Expand Down Expand Up @@ -155,33 +141,21 @@ interface Navigator {

interface NodeList {
[Symbol.iterator](): IterableIterator<Node>;
/**
* 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<number>;
/**
* Returns an list of values in the list.
*/
/** Returns an list of values in the list. */
values(): IterableIterator<Node>;
}

interface NodeListOf<TNode extends Node> {
[Symbol.iterator](): IterableIterator<TNode>;
/**
* 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<number>;
/**
* Returns an list of values in the list.
*/
/** Returns an list of values in the list. */
values(): IterableIterator<TNode>;
}

Expand Down Expand Up @@ -263,17 +237,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<string>;
/**
* Returns a list of values in the search params.
*/
/** Returns a list of values in the search params. */
values(): IterableIterator<string>;
}

Expand Down
132 changes: 106 additions & 26 deletions generated/lib.es2015.core.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,46 +154,86 @@ interface String {
/**
* Returns an `<a>` HTML anchor element and sets the name attribute to the text value
* @param name
* @deprecated A legacy feature for browser compatibility
*/
anchor(name: string): string;

/** Returns a `<big>` HTML element */
/**
* Returns a `<big>` HTML element
* @deprecated A legacy feature for browser compatibility
*/
big(): string;

/** Returns a `<blink>` HTML element */
/**
* Returns a `<blink>` HTML element
* @deprecated A legacy feature for browser compatibility
*/
blink(): string;

/** Returns a `<b>` HTML element */
/**
* Returns a `<bold>` HTML element
* @deprecated A legacy feature for browser compatibility
*/
bold(): string;

/** Returns a `<tt>` HTML element */
/**
* Returns a `<tt>` HTML element
* @deprecated A legacy feature for browser compatibility
*/
fixed(): string;

/** Returns a `<font>` HTML element and sets the color attribute value */
/**
* Returns a `<font>` HTML element and sets the color attribute value
* @deprecated A legacy feature for browser compatibility
*/
fontcolor(color: string): string;

/** Returns a `<font>` HTML element and sets the size attribute value */
/**
* Returns a `<font>` HTML element and sets the size attribute value
* @deprecated A legacy feature for browser compatibility
*/
fontsize(size: number): string;

/** Returns a `<font>` HTML element and sets the size attribute value */
/**
* Returns a `<font>` HTML element and sets the size attribute value
* @deprecated A legacy feature for browser compatibility
*/
fontsize(size: string): string;

/** Returns an `<i>` HTML element */
/**
* Returns a `<i>` HTML element
* @deprecated A legacy feature for browser compatibility
*/
italics(): string;

/** Returns an `<a>` HTML element and sets the href attribute value */
/**
* Returns an `<a>` HTML element and sets the href attribute value
* @deprecated A legacy feature for browser compatibility
*/
link(url: string): string;

/** Returns a `<small>` HTML element */
/**
* Returns a `<small>` HTML element
* @deprecated A legacy feature for browser compatibility
*/
small(): string;

/** Returns a `<strike>` HTML element */
/**
* Returns a `<strike>` HTML element
* @deprecated A legacy feature for browser compatibility
*/
strike(): string;

/** Returns a `<sub>` HTML element */
/**
* Returns a `<sub>` HTML element
* @deprecated A legacy feature for browser compatibility
*/
sub(): string;

/** Returns a `<sup>` HTML element */
/**
* Returns a `<sup>` HTML element
* @deprecated A legacy feature for browser compatibility
*/
sup(): string;
}
// --------------------
Expand Down Expand Up @@ -639,47 +679,87 @@ interface RegExpConstructor {
//
// /**
// * Returns an `<a>` HTML anchor element and sets the name attribute to the text value
// * @deprecated A legacy feature for browser compatibility
// * @param name
// */
// anchor(name: string): string;
//
// /** Returns a `<big>` HTML element */
// /**
// * Returns a `<big>` HTML element
// * @deprecated A legacy feature for browser compatibility
// */
// big(): string;
//
// /** Returns a `<blink>` HTML element */
// /**
// * Returns a `<blink>` HTML element
// * @deprecated A legacy feature for browser compatibility
// */
// blink(): string;
//
// /** Returns a `<b>` HTML element */
// /**
// * Returns a `<b>` HTML element
// * @deprecated A legacy feature for browser compatibility
// */
// bold(): string;
//
// /** Returns a `<tt>` HTML element */
// /**
// * Returns a `<tt>` HTML element
// * @deprecated A legacy feature for browser compatibility
// */
// fixed(): string;
//
// /** Returns a `<font>` HTML element and sets the color attribute value */
// /**
// * Returns a `<font>` HTML element and sets the color attribute value
// * @deprecated A legacy feature for browser compatibility
// */
// fontcolor(color: string): string;
//
// /** Returns a `<font>` HTML element and sets the size attribute value */
// /**
// * Returns a `<font>` HTML element and sets the size attribute value
// * @deprecated A legacy feature for browser compatibility
// */
// fontsize(size: number): string;
//
// /** Returns a `<font>` HTML element and sets the size attribute value */
// /**
// * Returns a `<font>` HTML element and sets the size attribute value
// * @deprecated A legacy feature for browser compatibility
// */
// fontsize(size: string): string;
//
// /** Returns an `<i>` HTML element */
// /**
// * Returns an `<i>` HTML element
// * @deprecated A legacy feature for browser compatibility
// */
// italics(): string;
//
// /** Returns an `<a>` HTML element and sets the href attribute value */
// /**
// * Returns an `<a>` HTML element and sets the href attribute value
// * @deprecated A legacy feature for browser compatibility
// */
// link(url: string): string;
//
// /** Returns a `<small>` HTML element */
// /**
// * Returns a `<small>` HTML element
// * @deprecated A legacy feature for browser compatibility
// */
// small(): string;
//
// /** Returns a `<strike>` HTML element */
// /**
// * Returns a `<strike>` HTML element
// * @deprecated A legacy feature for browser compatibility
// */
// strike(): string;
//
// /** Returns a `<sub>` HTML element */
// /**
// * Returns a `<sub>` HTML element
// * @deprecated A legacy feature for browser compatibility
// */
// sub(): string;
//
// /** Returns a `<sup>` HTML element */
// /**
// * Returns a `<sup>` HTML element
// * @deprecated A legacy feature for browser compatibility
// */
// sup(): string;
// }

Expand Down
18 changes: 4 additions & 14 deletions generated/lib.es2015.iterable.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,15 @@ interface PromiseConstructor {
* @param values An iterable of Promises.
* @returns A new Promise.
*/
all<T>(
values: Iterable<T>
): Promise<(T extends PromiseLike<infer U> ? U : T)[]>;
all<T>(values: Iterable<T>): Promise<Awaited<T>[]>;

/**
* Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
* or rejected.
* @param values An iterable of Promises.
* @returns A new Promise.
*/
race<T>(values: Iterable<T>): Promise<T extends PromiseLike<infer U> ? U : T>;
race<T>(values: Iterable<T>): Promise<Awaited<T>>;
}
// --------------------
/// <reference lib="es2015.symbol" />
Expand Down Expand Up @@ -248,23 +246,15 @@ interface Promise<T> { }
// * @param values An iterable of Promises.
// * @returns A new Promise.
// */
// all<T>(values: Iterable<T | PromiseLike<T>>): Promise<T[]>;
// all<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>[]>;
//
// /**
// * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
// * or rejected.
// * @param values An iterable of Promises.
// * @returns A new Promise.
// */
// race<T>(values: Iterable<T>): Promise<T extends PromiseLike<infer U> ? U : T>;
//
// /**
// * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
// * or rejected.
// * @param values An iterable of Promises.
// * @returns A new Promise.
// */
// race<T>(values: Iterable<T | PromiseLike<T>>): Promise<T>;
// race<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>>;
// }


Expand Down
Loading

0 comments on commit 052b1c6

Please sign in to comment.