@@ -5,17 +5,18 @@ Index: es2015.core.d.ts
5
5
===================================================================
6
6
--- es2015.core.d.ts
7
7
+++ es2015.core.d.ts
8
- @@ -201,9 +201,8 @@
8
+ @@ -200,9 +200,9 @@
9
+ * Returns an implementation-dependent approximation to the cube root of number.
9
10
* @param x A numeric expression.
10
11
*/
11
12
cbrt(x: number): number;
12
- }
13
- -
13
+ - }
14
+ + } /// <reference no-default-lib="true"/>
15
+
14
16
interface NumberConstructor {
15
17
/**
16
18
* The value of Number.EPSILON is the difference between 1 and the smallest value greater than 1
17
- * that is representable as a Number value, which is approximately:
18
- @@ -216,29 +215,29 @@
19
+ @@ -216,29 +216,29 @@
19
20
* Unlike the global isFinite, Number.isFinite doesn't forcibly convert the parameter to a
20
21
* number. Only finite values of the type number, result in true.
21
22
* @param number A numeric value.
@@ -49,18 +50,7 @@ Index: es2015.core.d.ts
49
50
/**
50
51
* The value of the largest integer n such that n and n + 1 are both exactly representable as
51
52
* a Number value.
52
- @@ -261,9 +260,9 @@
53
-
54
- /**
55
- * Converts A string to an integer.
56
- * @param string A string to convert into a number.
57
- - * @param radix A value between 2 and 36 that specifies the base of the number in `string`.
58
- + * @param radix A value between 2 and 36 that specifies the base of the number in numString.
59
- * If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.
60
- * All other strings are considered decimal.
61
- */
62
- parseInt(string: string, radix?: number): number;
63
- @@ -273,45 +272,16 @@
53
+ @@ -273,45 +273,16 @@
64
54
/**
65
55
* Copy the values of all of the enumerable own properties from one or more source objects to a
66
56
* target object. Returns the target object.
@@ -95,7 +85,7 @@ Index: es2015.core.d.ts
95
85
- source3: W
96
86
- ): T & U & V & W;
97
87
+ ...sources: Ts
98
- + ): UnionToIntersection<T | Ts[ number]>;
88
+ + ): First< UnionToIntersection<[T] | { [K in keyof Ts]: [Ts[K]] }[ number]> >;
99
89
100
90
/**
101
91
- * Copy the values of all of the enumerable own properties from one or more source objects to a
@@ -110,18 +100,33 @@ Index: es2015.core.d.ts
110
100
* @param o Object to retrieve the symbols from.
111
101
*/
112
102
getOwnPropertySymbols(o: any): symbol[];
113
- @@ -333,9 +303,9 @@
103
+ @@ -326,16 +297,23 @@
104
+ * Returns true if the values are the same value, false otherwise.
105
+ * @param value1 The first value.
106
+ * @param value2 The second value.
107
+ */
108
+ - is(value1: any, value2: any): boolean;
109
+ + is<T>(value1: T, value2: T): boolean;
110
+
111
+ /**
114
112
* Sets the prototype of a specified object o to object proto or null. Returns the object o.
115
113
* @param o The object to change its prototype.
116
114
* @param proto The value of the new prototype or null.
117
115
*/
118
116
- setPrototypeOf(o: any, proto: object | null): any;
119
- + setPrototypeOf<T>(o: T, proto: object | null): T;
117
+ + setPrototypeOf<T extends object, U extends object>(o: T, proto: U): T & U;
118
+ +
119
+ + /**
120
+ + * Sets the prototype of a specified object o to object proto or null. Returns the object o.
121
+ + * @param o The object to change its prototype.
122
+ + * @param proto The value of the new prototype or null.
123
+ + */
124
+ + setPrototypeOf<T extends object>(o: T, proto: null): T;
120
125
}
121
126
122
127
interface ReadonlyArray<T> {
123
128
/**
124
- @@ -440,19 +410 ,11 @@
129
+ @@ -440,19 +418 ,11 @@
125
130
* named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.
126
131
* @param form Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default
127
132
* is "NFC"
@@ -142,7 +147,7 @@ Index: es2015.core.d.ts
142
147
* the empty string is returned.
143
148
* @param count number of copies to append
144
149
*/
145
- @@ -466,33 +428,33 @@
150
+ @@ -466,10 +436,10 @@
146
151
startsWith(searchString: string, position?: number): boolean;
147
152
148
153
/**
@@ -154,75 +159,16 @@ Index: es2015.core.d.ts
154
159
anchor(name: string): string;
155
160
156
161
/**
157
- - * Returns a `<big>` HTML element
158
- + * Returns a `<big>` HTML element
159
- * @deprecated A legacy feature for browser compatibility
160
- */
161
- big(): string;
162
-
163
- /**
164
- - * Returns a `<blink>` HTML element
165
- + * Returns a `<blink>` HTML element
166
- * @deprecated A legacy feature for browser compatibility
167
- */
168
- blink(): string;
169
-
170
- /**
171
- - * Returns a `<b>` HTML element
172
- + * Returns a `<bold>` HTML element
173
- * @deprecated A legacy feature for browser compatibility
174
- */
175
- bold(): string;
176
-
177
- /**
178
- - * Returns a `<tt>` HTML element
179
- + * Returns a `<tt>` HTML element
180
- * @deprecated A legacy feature for browser compatibility
181
- */
182
- fixed(): string;
183
-
184
- @@ -514,9 +476,9 @@
162
+ @@ -514,9 +484,9 @@
185
163
*/
186
164
fontsize(size: string): string;
187
165
188
166
/**
189
167
- * Returns an `<i>` HTML element
190
- + * Returns a `<i>` HTML element
168
+ + * Returns a `<i>` HTML element
191
169
* @deprecated A legacy feature for browser compatibility
192
170
*/
193
171
italics(): string;
194
172
195
- @@ -526,27 +488,27 @@
196
- */
197
- link(url: string): string;
198
-
199
- /**
200
- - * Returns a `<small>` HTML element
201
- + * Returns a `<small>` HTML element
202
- * @deprecated A legacy feature for browser compatibility
203
- */
204
- small(): string;
205
-
206
- /**
207
- - * Returns a `<strike>` HTML element
208
- + * Returns a `<strike>` HTML element
209
- * @deprecated A legacy feature for browser compatibility
210
- */
211
- strike(): string;
212
-
213
- /**
214
- - * Returns a `<sub>` HTML element
215
- + * Returns a `<sub>` HTML element
216
- * @deprecated A legacy feature for browser compatibility
217
- */
218
- sub(): string;
219
-
220
- /**
221
- - * Returns a `<sup>` HTML element
222
- + * Returns a `<sup>` HTML element
223
- * @deprecated A legacy feature for browser compatibility
224
- */
225
- sup(): string;
226
- }
227
173
228
174
```
0 commit comments