Skip to content

Commit

Permalink
update tsserver
Browse files Browse the repository at this point in the history
  • Loading branch information
ananthakumaran committed Feb 5, 2018
1 parent 2064549 commit 6ca5319
Show file tree
Hide file tree
Showing 23 changed files with 40,132 additions and 18,000 deletions.
2 changes: 1 addition & 1 deletion tide.el
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

;; Author: Anantha kumaran <ananthakumaran@gmail.com>
;; URL: http://github.com/ananthakumaran/tide
;; Version: 2.6.2
;; Version: 2.7.1
;; Keywords: typescript
;; Package-Requires: ((dash "2.10.0") (s "1.11.0") (flycheck "27") (typescript-mode "0.1") (cl-lib "0.5"))

Expand Down
407 changes: 322 additions & 85 deletions tsserver/lib.dom.d.ts

Large diffs are not rendered by default.

42 changes: 25 additions & 17 deletions tsserver/lib.dom.iterable.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,6 @@ interface DOMTokenList {
[Symbol.iterator](): IterableIterator<string>;
}

interface FormData {
/**
* Returns an array of key, value pairs for every entry in the list
*/
entries(): IterableIterator<[string, string | File]>;
/**
* Returns a list of keys in the list
*/
keys(): IterableIterator<string>;
/**
* Returns a list of values in the list
*/
values(): IterableIterator<string | File>;

[Symbol.iterator](): IterableIterator<string | File>;
}

interface Headers {
[Symbol.iterator](): IterableIterator<[string, string]>;
/**
Expand Down Expand Up @@ -107,6 +90,31 @@ interface NodeListOf<TNode extends Node> {
[Symbol.iterator](): IterableIterator<TNode>;
}

interface HTMLCollectionBase {
[Symbol.iterator](): IterableIterator<Element>;
}

interface HTMLCollectionOf<T extends Element> {
[Symbol.iterator](): IterableIterator<T>;
}

interface FormData {
/**
* Returns an array of key, value pairs for every entry in the list
*/
entries(): IterableIterator<[string, string | File]>;
/**
* Returns a list of keys in the list
*/
keys(): IterableIterator<string>;
/**
* Returns a list of values in the list
*/
values(): IterableIterator<string | File>;

[Symbol.iterator](): IterableIterator<string | File>;
}

interface URLSearchParams {
/**
* Returns an array of key, value pairs for every entry in the search params
Expand Down
10 changes: 5 additions & 5 deletions tsserver/lib.es2015.collection.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ interface Map<K, V> {

interface MapConstructor {
new (): Map<any, any>;
new <K, V>(entries?: [K, V][]): Map<K, V>;
new <K, V>(entries?: ReadonlyArray<[K, V]>): Map<K, V>;
readonly prototype: Map<any, any>;
}
declare var Map: MapConstructor;
Expand All @@ -51,7 +51,7 @@ interface WeakMap<K extends object, V> {

interface WeakMapConstructor {
new (): WeakMap<object, any>;
new <K extends object, V>(entries?: [K, V][]): WeakMap<K, V>;
new <K extends object, V>(entries?: ReadonlyArray<[K, V]>): WeakMap<K, V>;
readonly prototype: WeakMap<object, any>;
}
declare var WeakMap: WeakMapConstructor;
Expand All @@ -67,7 +67,7 @@ interface Set<T> {

interface SetConstructor {
new (): Set<any>;
new <T>(values?: T[]): Set<T>;
new <T>(values?: ReadonlyArray<T>): Set<T>;
readonly prototype: Set<any>;
}
declare var Set: SetConstructor;
Expand All @@ -78,15 +78,15 @@ interface ReadonlySet<T> {
readonly size: number;
}

interface WeakSet<T> {
interface WeakSet<T extends object> {
add(value: T): this;
delete(value: T): boolean;
has(value: T): boolean;
}

interface WeakSetConstructor {
new (): WeakSet<object>;
new <T extends object>(values?: T[]): WeakSet<T>;
new <T extends object>(values?: ReadonlyArray<T>): WeakSet<T>;
readonly prototype: WeakSet<object>;
}
declare var WeakSet: WeakSetConstructor;
15 changes: 11 additions & 4 deletions tsserver/lib.es2015.core.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,16 @@ interface ArrayConstructor {
/**
* Creates an array from an array-like object.
* @param arrayLike An array-like object to convert to an array.
*/
from<T>(arrayLike: ArrayLike<T>): T[];

/**
* Creates an array from an iterable object.
* @param arrayLike An array-like object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T, U = T>(arrayLike: ArrayLike<T>, mapfn?: (v: T, k: number) => U, thisArg?: any): U[];
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];

/**
* Returns a new array from a set of elements.
Expand Down Expand Up @@ -132,8 +138,9 @@ interface Math {
log1p(x: number): number;

/**
* Returns the result of (e^x - 1) of x (e raised to the power of x, where e is the base of
* the natural logarithms).
* Returns the result of (e^x - 1), which is an implementation-dependent approximation to
* subtracting 1 from the exponential function of x (e raised to the power of x, where e
* is the base of the natural logarithms).
* @param x A numeric expression.
*/
expm1(x: number): number;
Expand Down Expand Up @@ -463,7 +470,7 @@ interface String {

/**
* Returns a String value that is made from count copies appended together. If count is 0,
* T is the empty String is returned.
* the empty string is returned.
* @param count number of copies to append
*/
repeat(count: number): string;
Expand Down
10 changes: 8 additions & 2 deletions tsserver/lib.es2015.iterable.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,19 @@ interface Array<T> {
}

interface ArrayConstructor {
/**
* Creates an array from an iterable object.
* @param iterable An iterable object to convert to an array.
*/
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];

/**
* Creates an array from an iterable object.
* @param iterable An iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T, U = T>(iterable: Iterable<T>, mapfn?: (v: T, k: number) => U, thisArg?: any): U[];
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
}

interface ReadonlyArray<T> {
Expand Down Expand Up @@ -194,7 +200,7 @@ interface SetConstructor {
new <T>(iterable: Iterable<T>): Set<T>;
}

interface WeakSet<T> { }
interface WeakSet<T extends object> { }

interface WeakSetConstructor {
new <T extends object>(iterable: Iterable<T>): WeakSet<T>;
Expand Down
19 changes: 16 additions & 3 deletions tsserver/lib.es2015.symbol.wellknown.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ interface Set<T> {
readonly [Symbol.toStringTag]: "Set";
}

interface WeakSet<T> {
interface WeakSet<T extends object> {
readonly [Symbol.toStringTag]: "WeakSet";
}

Expand Down Expand Up @@ -170,7 +170,7 @@ interface Promise<T> {
}

interface PromiseConstructor {
readonly [Symbol.species]: Function;
readonly [Symbol.species]: PromiseConstructor;
}

interface RegExp {
Expand Down Expand Up @@ -222,7 +222,7 @@ interface RegExp {
}

interface RegExpConstructor {
[Symbol.species](): RegExpConstructor;
readonly [Symbol.species]: RegExpConstructor;
}

interface String {
Expand Down Expand Up @@ -303,3 +303,16 @@ interface Float32Array {
interface Float64Array {
readonly [Symbol.toStringTag]: "Float64Array";
}

interface ArrayConstructor {
readonly [Symbol.species]: ArrayConstructor;
}
interface MapConstructor {
readonly [Symbol.species]: MapConstructor;
}
interface SetConstructor {
readonly [Symbol.species]: SetConstructor;
}
interface ArrayBufferConstructor {
readonly [Symbol.species]: ArrayBufferConstructor;
}
Loading

0 comments on commit 6ca5319

Please sign in to comment.