Skip to content

Commit 3f58e5a

Browse files
Merge pull request #667 from Microsoft/release-2.9.1
Update to TypeScript 2.8.1
2 parents 12304f2 + 63c339c commit 3f58e5a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+171544
-144253
lines changed

TypeScript.tmLanguage

+773-122
Large diffs are not rendered by default.

TypeScriptReact.tmLanguage

+777-126
Large diffs are not rendered by default.

tsserver/cs/diagnosticMessages.generated.json

+75-7
Large diffs are not rendered by default.

tsserver/de/diagnosticMessages.generated.json

+75-7
Large diffs are not rendered by default.

tsserver/enu/diagnosticMessages.generated.json.lcg

+404-26
Large diffs are not rendered by default.

tsserver/es/diagnosticMessages.generated.json

+78-7
Large diffs are not rendered by default.

tsserver/fr/diagnosticMessages.generated.json

+76-7
Large diffs are not rendered by default.

tsserver/it/diagnosticMessages.generated.json

+75-7
Large diffs are not rendered by default.

tsserver/ja/diagnosticMessages.generated.json

+75-7
Large diffs are not rendered by default.

tsserver/ko/diagnosticMessages.generated.json

+75-7
Large diffs are not rendered by default.

tsserver/lib.d.ts

+98-54
Large diffs are not rendered by default.

tsserver/lib.dom.d.ts

+68-47
Large diffs are not rendered by default.

tsserver/lib.es2015.collection.d.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ interface Map<K, V> {
3030

3131
interface MapConstructor {
3232
new (): Map<any, any>;
33-
new <K, V>(entries?: ReadonlyArray<[K, V]>): Map<K, V>;
33+
new <K, V>(entries?: ReadonlyArray<[K, V]> | null): Map<K, V>;
3434
readonly prototype: Map<any, any>;
3535
}
3636
declare var Map: MapConstructor;
@@ -51,7 +51,7 @@ interface WeakMap<K extends object, V> {
5151

5252
interface WeakMapConstructor {
5353
new (): WeakMap<object, any>;
54-
new <K extends object, V>(entries?: ReadonlyArray<[K, V]>): WeakMap<K, V>;
54+
new <K extends object, V>(entries?: ReadonlyArray<[K, V]> | null): WeakMap<K, V>;
5555
readonly prototype: WeakMap<object, any>;
5656
}
5757
declare var WeakMap: WeakMapConstructor;
@@ -67,7 +67,7 @@ interface Set<T> {
6767

6868
interface SetConstructor {
6969
new (): Set<any>;
70-
new <T>(values?: ReadonlyArray<T>): Set<T>;
70+
new <T>(values?: ReadonlyArray<T> | null): Set<T>;
7171
readonly prototype: Set<any>;
7272
}
7373
declare var Set: SetConstructor;
@@ -86,7 +86,7 @@ interface WeakSet<T extends object> {
8686

8787
interface WeakSetConstructor {
8888
new (): WeakSet<object>;
89-
new <T extends object>(values?: ReadonlyArray<T>): WeakSet<T>;
89+
new <T extends object>(values?: ReadonlyArray<T> | null): WeakSet<T>;
9090
readonly prototype: WeakSet<object>;
9191
}
9292
declare var WeakSet: WeakSetConstructor;

tsserver/lib.es2015.core.d.ts

-35
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ and limitations under the License.
1818
/// <reference no-default-lib="true"/>
1919

2020

21-
declare type PropertyKey = string | number | symbol;
22-
2321
interface Array<T> {
2422
/**
2523
* Returns the value of the first element in the array where predicate is true, and undefined
@@ -278,20 +276,6 @@ interface NumberConstructor {
278276
parseInt(string: string, radix?: number): number;
279277
}
280278

281-
interface Object {
282-
/**
283-
* Determines whether an object has a property with the specified name.
284-
* @param v A property name.
285-
*/
286-
hasOwnProperty(v: PropertyKey): boolean;
287-
288-
/**
289-
* Determines whether a specified property is enumerable.
290-
* @param v A property name.
291-
*/
292-
propertyIsEnumerable(v: PropertyKey): boolean;
293-
}
294-
295279
interface ObjectConstructor {
296280
/**
297281
* Copy the values of all of the enumerable own properties from one or more source objects to a
@@ -347,25 +331,6 @@ interface ObjectConstructor {
347331
* @param proto The value of the new prototype or null.
348332
*/
349333
setPrototypeOf(o: any, proto: object | null): any;
350-
351-
/**
352-
* Gets the own property descriptor of the specified object.
353-
* An own property descriptor is one that is defined directly on the object and is not
354-
* inherited from the object's prototype.
355-
* @param o Object that contains the property.
356-
* @param p Name of the property.
357-
*/
358-
getOwnPropertyDescriptor(o: any, propertyKey: PropertyKey): PropertyDescriptor | undefined;
359-
360-
/**
361-
* Adds a property to an object, or modifies attributes of an existing property.
362-
* @param o Object on which to add or modify the property. This can be a native JavaScript
363-
* object (that is, a user-defined object or a built in object) or a DOM object.
364-
* @param p The property name.
365-
* @param attributes Descriptor for the property. It can be for a data property or an accessor
366-
* property.
367-
*/
368-
defineProperty(o: any, propertyKey: PropertyKey, attributes: PropertyDescriptor): any;
369334
}
370335

371336
interface ReadonlyArray<T> {

tsserver/lib.es2015.promise.d.ts

+1-8
Original file line numberDiff line numberDiff line change
@@ -197,14 +197,7 @@ interface PromiseConstructor {
197197
* @param reason The reason the promise was rejected.
198198
* @returns A new rejected Promise.
199199
*/
200-
reject(reason: any): Promise<never>;
201-
202-
/**
203-
* Creates a new rejected promise for the provided reason.
204-
* @param reason The reason the promise was rejected.
205-
* @returns A new rejected Promise.
206-
*/
207-
reject<T>(reason: any): Promise<T>;
200+
reject<T = never>(reason?: any): Promise<T>;
208201

209202
/**
210203
* Creates a new resolved promise for the provided value.

tsserver/lib.es2015.symbol.d.ts

-8
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,6 @@ and limitations under the License.
1818
/// <reference no-default-lib="true"/>
1919

2020

21-
interface Symbol {
22-
/** Returns a string representation of an object. */
23-
toString(): string;
24-
25-
/** Returns the primitive value of the specified object. */
26-
valueOf(): symbol;
27-
}
28-
2921
interface SymbolConstructor {
3022
/**
3123
* A reference to the prototype.

0 commit comments

Comments
 (0)