mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Updates the DOM APIs (#46080)
* Updates the DOM APIs * Tests * Remove static abort(): AbortSignal
This commit is contained in:
Vendored
+669
-1896
File diff suppressed because it is too large
Load Diff
Vendored
+16
-48
@@ -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>;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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>;
|
||||
}
|
||||
|
||||
@@ -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>;
|
||||
}
|
||||
|
||||
|
||||
Vendored
+183
-520
File diff suppressed because it is too large
Load Diff
+10
-30
@@ -19,40 +19,26 @@ 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>;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
@@ -89,17 +75,11 @@ interface SubtleCrypto {
|
||||
|
||||
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>;
|
||||
}
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
>new URL("../hamsters.jpg", import.meta.url).toString() : string
|
||||
>new URL("../hamsters.jpg", import.meta.url).toString : () => string
|
||||
>new URL("../hamsters.jpg", import.meta.url) : URL
|
||||
>URL : { new (url: string | URL, base?: string | URL): URL; prototype: URL; createObjectURL(object: any): string; revokeObjectURL(url: string): void; }
|
||||
>URL : { new (url: string | URL, base?: string | URL): URL; prototype: URL; createObjectURL(obj: Blob | MediaSource): string; revokeObjectURL(url: string): void; }
|
||||
>"../hamsters.jpg" : "../hamsters.jpg"
|
||||
>import.meta.url : string
|
||||
>import.meta : ImportMeta
|
||||
@@ -53,9 +53,9 @@
|
||||
>image : HTMLImageElement
|
||||
>src : string
|
||||
>URL.createObjectURL(blob) : string
|
||||
>URL.createObjectURL : (object: any) => string
|
||||
>URL : { new (url: string | URL, base?: string | URL): URL; prototype: URL; createObjectURL(object: any): string; revokeObjectURL(url: string): void; }
|
||||
>createObjectURL : (object: any) => string
|
||||
>URL.createObjectURL : (obj: Blob | MediaSource) => string
|
||||
>URL : { new (url: string | URL, base?: string | URL): URL; prototype: URL; createObjectURL(obj: Blob | MediaSource): string; revokeObjectURL(url: string): void; }
|
||||
>createObjectURL : (obj: Blob | MediaSource) => string
|
||||
>blob : Blob
|
||||
|
||||
image.width = image.height = size;
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
>new URL("../hamsters.jpg", import.meta.url).toString() : string
|
||||
>new URL("../hamsters.jpg", import.meta.url).toString : () => string
|
||||
>new URL("../hamsters.jpg", import.meta.url) : URL
|
||||
>URL : { new (url: string | URL, base?: string | URL): URL; prototype: URL; createObjectURL(object: any): string; revokeObjectURL(url: string): void; }
|
||||
>URL : { new (url: string | URL, base?: string | URL): URL; prototype: URL; createObjectURL(obj: Blob | MediaSource): string; revokeObjectURL(url: string): void; }
|
||||
>"../hamsters.jpg" : "../hamsters.jpg"
|
||||
>import.meta.url : string
|
||||
>import.meta : ImportMeta
|
||||
@@ -53,9 +53,9 @@
|
||||
>image : HTMLImageElement
|
||||
>src : string
|
||||
>URL.createObjectURL(blob) : string
|
||||
>URL.createObjectURL : (object: any) => string
|
||||
>URL : { new (url: string | URL, base?: string | URL): URL; prototype: URL; createObjectURL(object: any): string; revokeObjectURL(url: string): void; }
|
||||
>createObjectURL : (object: any) => string
|
||||
>URL.createObjectURL : (obj: Blob | MediaSource) => string
|
||||
>URL : { new (url: string | URL, base?: string | URL): URL; prototype: URL; createObjectURL(obj: Blob | MediaSource): string; revokeObjectURL(url: string): void; }
|
||||
>createObjectURL : (obj: Blob | MediaSource) => string
|
||||
>blob : Blob
|
||||
|
||||
image.width = image.height = size;
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
>new URL("../hamsters.jpg", import.meta.url).toString() : string
|
||||
>new URL("../hamsters.jpg", import.meta.url).toString : () => string
|
||||
>new URL("../hamsters.jpg", import.meta.url) : URL
|
||||
>URL : { new (url: string | URL, base?: string | URL): URL; prototype: URL; createObjectURL(object: any): string; revokeObjectURL(url: string): void; }
|
||||
>URL : { new (url: string | URL, base?: string | URL): URL; prototype: URL; createObjectURL(obj: Blob | MediaSource): string; revokeObjectURL(url: string): void; }
|
||||
>"../hamsters.jpg" : "../hamsters.jpg"
|
||||
>import.meta.url : string
|
||||
>import.meta : ImportMeta
|
||||
@@ -53,9 +53,9 @@
|
||||
>image : HTMLImageElement
|
||||
>src : string
|
||||
>URL.createObjectURL(blob) : string
|
||||
>URL.createObjectURL : (object: any) => string
|
||||
>URL : { new (url: string | URL, base?: string | URL): URL; prototype: URL; createObjectURL(object: any): string; revokeObjectURL(url: string): void; }
|
||||
>createObjectURL : (object: any) => string
|
||||
>URL.createObjectURL : (obj: Blob | MediaSource) => string
|
||||
>URL : { new (url: string | URL, base?: string | URL): URL; prototype: URL; createObjectURL(obj: Blob | MediaSource): string; revokeObjectURL(url: string): void; }
|
||||
>createObjectURL : (obj: Blob | MediaSource) => string
|
||||
>blob : Blob
|
||||
|
||||
image.width = image.height = size;
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
>new URL("../hamsters.jpg", import.meta.url).toString() : string
|
||||
>new URL("../hamsters.jpg", import.meta.url).toString : () => string
|
||||
>new URL("../hamsters.jpg", import.meta.url) : URL
|
||||
>URL : { new (url: string | URL, base?: string | URL): URL; prototype: URL; createObjectURL(object: any): string; revokeObjectURL(url: string): void; }
|
||||
>URL : { new (url: string | URL, base?: string | URL): URL; prototype: URL; createObjectURL(obj: Blob | MediaSource): string; revokeObjectURL(url: string): void; }
|
||||
>"../hamsters.jpg" : "../hamsters.jpg"
|
||||
>import.meta.url : string
|
||||
>import.meta : ImportMeta
|
||||
@@ -53,9 +53,9 @@
|
||||
>image : HTMLImageElement
|
||||
>src : string
|
||||
>URL.createObjectURL(blob) : string
|
||||
>URL.createObjectURL : (object: any) => string
|
||||
>URL : { new (url: string | URL, base?: string | URL): URL; prototype: URL; createObjectURL(object: any): string; revokeObjectURL(url: string): void; }
|
||||
>createObjectURL : (object: any) => string
|
||||
>URL.createObjectURL : (obj: Blob | MediaSource) => string
|
||||
>URL : { new (url: string | URL, base?: string | URL): URL; prototype: URL; createObjectURL(obj: Blob | MediaSource): string; revokeObjectURL(url: string): void; }
|
||||
>createObjectURL : (obj: Blob | MediaSource) => string
|
||||
>blob : Blob
|
||||
|
||||
image.width = image.height = size;
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
>new URL("../hamsters.jpg", import.meta.url).toString() : string
|
||||
>new URL("../hamsters.jpg", import.meta.url).toString : () => string
|
||||
>new URL("../hamsters.jpg", import.meta.url) : URL
|
||||
>URL : { new (url: string | URL, base?: string | URL): URL; prototype: URL; createObjectURL(object: any): string; revokeObjectURL(url: string): void; }
|
||||
>URL : { new (url: string | URL, base?: string | URL): URL; prototype: URL; createObjectURL(obj: Blob | MediaSource): string; revokeObjectURL(url: string): void; }
|
||||
>"../hamsters.jpg" : "../hamsters.jpg"
|
||||
>import.meta.url : string
|
||||
>import.meta : ImportMeta
|
||||
@@ -53,9 +53,9 @@
|
||||
>image : HTMLImageElement
|
||||
>src : string
|
||||
>URL.createObjectURL(blob) : string
|
||||
>URL.createObjectURL : (object: any) => string
|
||||
>URL : { new (url: string | URL, base?: string | URL): URL; prototype: URL; createObjectURL(object: any): string; revokeObjectURL(url: string): void; }
|
||||
>createObjectURL : (object: any) => string
|
||||
>URL.createObjectURL : (obj: Blob | MediaSource) => string
|
||||
>URL : { new (url: string | URL, base?: string | URL): URL; prototype: URL; createObjectURL(obj: Blob | MediaSource): string; revokeObjectURL(url: string): void; }
|
||||
>createObjectURL : (obj: Blob | MediaSource) => string
|
||||
>blob : Blob
|
||||
|
||||
image.width = image.height = size;
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
>new URL("../hamsters.jpg", import.meta.url).toString() : string
|
||||
>new URL("../hamsters.jpg", import.meta.url).toString : () => string
|
||||
>new URL("../hamsters.jpg", import.meta.url) : URL
|
||||
>URL : { new (url: string | URL, base?: string | URL): URL; prototype: URL; createObjectURL(object: any): string; revokeObjectURL(url: string): void; }
|
||||
>URL : { new (url: string | URL, base?: string | URL): URL; prototype: URL; createObjectURL(obj: Blob | MediaSource): string; revokeObjectURL(url: string): void; }
|
||||
>"../hamsters.jpg" : "../hamsters.jpg"
|
||||
>import.meta.url : string
|
||||
>import.meta : ImportMeta
|
||||
@@ -53,9 +53,9 @@
|
||||
>image : HTMLImageElement
|
||||
>src : string
|
||||
>URL.createObjectURL(blob) : string
|
||||
>URL.createObjectURL : (object: any) => string
|
||||
>URL : { new (url: string | URL, base?: string | URL): URL; prototype: URL; createObjectURL(object: any): string; revokeObjectURL(url: string): void; }
|
||||
>createObjectURL : (object: any) => string
|
||||
>URL.createObjectURL : (obj: Blob | MediaSource) => string
|
||||
>URL : { new (url: string | URL, base?: string | URL): URL; prototype: URL; createObjectURL(obj: Blob | MediaSource): string; revokeObjectURL(url: string): void; }
|
||||
>createObjectURL : (obj: Blob | MediaSource) => string
|
||||
>blob : Blob
|
||||
|
||||
image.width = image.height = size;
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
>new URL("../hamsters.jpg", import.meta.url).toString() : string
|
||||
>new URL("../hamsters.jpg", import.meta.url).toString : () => string
|
||||
>new URL("../hamsters.jpg", import.meta.url) : URL
|
||||
>URL : { new (url: string | URL, base?: string | URL): URL; prototype: URL; createObjectURL(object: any): string; revokeObjectURL(url: string): void; }
|
||||
>URL : { new (url: string | URL, base?: string | URL): URL; prototype: URL; createObjectURL(obj: Blob | MediaSource): string; revokeObjectURL(url: string): void; }
|
||||
>"../hamsters.jpg" : "../hamsters.jpg"
|
||||
>import.meta.url : string
|
||||
>import.meta : ImportMeta
|
||||
@@ -53,9 +53,9 @@
|
||||
>image : HTMLImageElement
|
||||
>src : string
|
||||
>URL.createObjectURL(blob) : string
|
||||
>URL.createObjectURL : (object: any) => string
|
||||
>URL : { new (url: string | URL, base?: string | URL): URL; prototype: URL; createObjectURL(object: any): string; revokeObjectURL(url: string): void; }
|
||||
>createObjectURL : (object: any) => string
|
||||
>URL.createObjectURL : (obj: Blob | MediaSource) => string
|
||||
>URL : { new (url: string | URL, base?: string | URL): URL; prototype: URL; createObjectURL(obj: Blob | MediaSource): string; revokeObjectURL(url: string): void; }
|
||||
>createObjectURL : (obj: Blob | MediaSource) => string
|
||||
>blob : Blob
|
||||
|
||||
image.width = image.height = size;
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
>new URL("../hamsters.jpg", import.meta.url).toString() : string
|
||||
>new URL("../hamsters.jpg", import.meta.url).toString : () => string
|
||||
>new URL("../hamsters.jpg", import.meta.url) : URL
|
||||
>URL : { new (url: string | URL, base?: string | URL): URL; prototype: URL; createObjectURL(object: any): string; revokeObjectURL(url: string): void; }
|
||||
>URL : { new (url: string | URL, base?: string | URL): URL; prototype: URL; createObjectURL(obj: Blob | MediaSource): string; revokeObjectURL(url: string): void; }
|
||||
>"../hamsters.jpg" : "../hamsters.jpg"
|
||||
>import.meta.url : string
|
||||
>import.meta : ImportMeta
|
||||
@@ -53,9 +53,9 @@
|
||||
>image : HTMLImageElement
|
||||
>src : string
|
||||
>URL.createObjectURL(blob) : string
|
||||
>URL.createObjectURL : (object: any) => string
|
||||
>URL : { new (url: string | URL, base?: string | URL): URL; prototype: URL; createObjectURL(object: any): string; revokeObjectURL(url: string): void; }
|
||||
>createObjectURL : (object: any) => string
|
||||
>URL.createObjectURL : (obj: Blob | MediaSource) => string
|
||||
>URL : { new (url: string | URL, base?: string | URL): URL; prototype: URL; createObjectURL(obj: Blob | MediaSource): string; revokeObjectURL(url: string): void; }
|
||||
>createObjectURL : (obj: Blob | MediaSource) => string
|
||||
>blob : Blob
|
||||
|
||||
image.width = image.height = size;
|
||||
|
||||
@@ -10,7 +10,7 @@ tests/cases/compiler/intersectionsOfLargeUnions2.ts(31,15): error TS2536: Type '
|
||||
interface ElementTagNameMap {
|
||||
~~~~~~~~~~~~~~~~~
|
||||
!!! error TS2300: Duplicate identifier 'ElementTagNameMap'.
|
||||
!!! related TS6203 /.ts/lib.dom.d.ts:18263:6: 'ElementTagNameMap' was also declared here.
|
||||
!!! related TS6203 /.ts/lib.dom.d.ts:17052:6: 'ElementTagNameMap' was also declared here.
|
||||
[index: number]: HTMLElement
|
||||
}
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user