Skip to content

Commit 79bf8dd

Browse files
Merge pull request #624 from Microsoft/release-2.5.3
Update to TypeScript 2.5.3.
2 parents eb57ceb + d50f71a commit 79bf8dd

39 files changed

+292803
-189536
lines changed

tsserver/lib.d.ts

Lines changed: 8709 additions & 9001 deletions
Large diffs are not rendered by default.

tsserver/lib.dom.d.ts

Lines changed: 9074 additions & 9207 deletions
Large diffs are not rendered by default.

tsserver/lib.dom.iterable.d.ts

Lines changed: 96 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,104 @@ interface DOMTokenList {
2424
[Symbol.iterator](): IterableIterator<string>;
2525
}
2626

27+
interface FormData {
28+
/**
29+
* Returns an array of key, value pairs for every entry in the list
30+
*/
31+
entries(): IterableIterator<[string, string | File]>;
32+
/**
33+
* Returns a list of keys in the list
34+
*/
35+
keys(): IterableIterator<string>;
36+
/**
37+
* Returns a list of values in the list
38+
*/
39+
values(): IterableIterator<string | File>;
40+
41+
[Symbol.iterator](): IterableIterator<string | File>;
42+
}
43+
44+
interface Headers {
45+
[Symbol.iterator](): IterableIterator<[string, string]>;
46+
/**
47+
* Returns an iterator allowing to go through all key/value pairs contained in this object.
48+
*/
49+
entries(): IterableIterator<[string, string]>;
50+
/**
51+
* Returns an iterator allowing to go through all keys f the key/value pairs contained in this object.
52+
*/
53+
keys(): IterableIterator<string>;
54+
/**
55+
* Returns an iterator allowing to go through all values of the key/value pairs contained in this object.
56+
*/
57+
values(): IterableIterator<string>;
58+
}
59+
2760
interface NodeList {
28-
[Symbol.iterator](): IterableIterator<Node>
61+
/**
62+
* Returns an array of key, value pairs for every entry in the list
63+
*/
64+
entries(): IterableIterator<[number, Node]>;
65+
/**
66+
* Performs the specified action for each node in an list.
67+
* @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the list.
68+
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
69+
*/
70+
forEach(callbackfn: (value: Node, index: number, listObj: NodeList) => void, thisArg?: any): void;
71+
/**
72+
* Returns an list of keys in the list
73+
*/
74+
keys(): IterableIterator<number>;
75+
76+
/**
77+
* Returns an list of values in the list
78+
*/
79+
values(): IterableIterator<Node>;
80+
81+
82+
[Symbol.iterator](): IterableIterator<Node>;
2983
}
3084

3185
interface NodeListOf<TNode extends Node> {
32-
[Symbol.iterator](): IterableIterator<TNode>
86+
87+
/**
88+
* Returns an array of key, value pairs for every entry in the list
89+
*/
90+
entries(): IterableIterator<[number, TNode]>;
91+
92+
/**
93+
* Performs the specified action for each node in an list.
94+
* @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the list.
95+
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
96+
*/
97+
forEach(callbackfn: (value: TNode, index: number, listObj: NodeListOf<TNode>) => void, thisArg?: any): void;
98+
/**
99+
* Returns an list of keys in the list
100+
*/
101+
keys(): IterableIterator<number>;
102+
/**
103+
* Returns an list of values in the list
104+
*/
105+
values(): IterableIterator<TNode>;
106+
107+
[Symbol.iterator](): IterableIterator<TNode>;
108+
}
109+
110+
interface URLSearchParams {
111+
/**
112+
* Returns an array of key, value pairs for every entry in the search params
113+
*/
114+
entries(): IterableIterator<[string, string]>;
115+
/**
116+
* Returns a list of keys in the search params
117+
*/
118+
keys(): IterableIterator<string>;
119+
/**
120+
* Returns a list of values in the search params
121+
*/
122+
values(): IterableIterator<string>;
123+
/**
124+
* iterate over key/value pairs
125+
*/
126+
[Symbol.iterator](): IterableIterator<[string, string]>;
33127
}

tsserver/lib.es2015.collection.d.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ declare var Map: MapConstructor;
3737

3838
interface ReadonlyMap<K, V> {
3939
forEach(callbackfn: (value: V, key: K, map: ReadonlyMap<K, V>) => void, thisArg?: any): void;
40-
get(key: K): V|undefined;
40+
get(key: K): V | undefined;
4141
has(key: K): boolean;
4242
readonly size: number;
4343
}
@@ -50,9 +50,9 @@ interface WeakMap<K extends object, V> {
5050
}
5151

5252
interface WeakMapConstructor {
53-
new (): WeakMap<any, any>;
53+
new (): WeakMap<object, any>;
5454
new <K extends object, V>(entries?: [K, V][]): WeakMap<K, V>;
55-
readonly prototype: WeakMap<any, any>;
55+
readonly prototype: WeakMap<object, any>;
5656
}
5757
declare var WeakMap: WeakMapConstructor;
5858

@@ -85,8 +85,8 @@ interface WeakSet<T> {
8585
}
8686

8787
interface WeakSetConstructor {
88-
new (): WeakSet<any>;
89-
new <T>(values?: T[]): WeakSet<T>;
90-
readonly prototype: WeakSet<any>;
88+
new (): WeakSet<object>;
89+
new <T extends object>(values?: T[]): WeakSet<T>;
90+
readonly prototype: WeakSet<object>;
9191
}
9292
declare var WeakSet: WeakSetConstructor;

0 commit comments

Comments
 (0)