Update LKG
This commit is contained in:
parent
0fb2ef3e06
commit
9a55facfe3
852
lib/lib.d.ts
vendored
852
lib/lib.d.ts
vendored
File diff suppressed because it is too large
Load diff
802
lib/lib.dom.d.ts
vendored
802
lib/lib.dom.d.ts
vendored
File diff suppressed because it is too large
Load diff
120
lib/lib.es2015.promise.d.ts
vendored
120
lib/lib.es2015.promise.d.ts
vendored
|
@ -19,59 +19,149 @@ and limitations under the License.
|
||||||
*/
|
*/
|
||||||
interface Promise<T> {
|
interface Promise<T> {
|
||||||
/**
|
/**
|
||||||
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
||||||
* @param onfulfilled The callback to execute when the Promise is resolved.
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
||||||
* @param onrejected The callback to execute when the Promise is rejected.
|
* @param onrejected The callback to execute when the Promise is rejected.
|
||||||
* @returns A Promise for the completion of which ever callback is executed.
|
* @returns A Promise for the completion of which ever callback is executed.
|
||||||
*/
|
*/
|
||||||
then<TResult>(onfulfilled?: (value: T) => TResult | PromiseLike<TResult>, onrejected?: (reason: any) => TResult | PromiseLike<TResult>): Promise<TResult>;
|
then<TResult1, TResult2>(onfulfilled: (value: T) => TResult1 | PromiseLike<TResult1>, onrejected: (reason: any) => TResult2 | PromiseLike<TResult2>): Promise<TResult1 | TResult2>;
|
||||||
then<TResult>(onfulfilled?: (value: T) => TResult | PromiseLike<TResult>, onrejected?: (reason: any) => void): Promise<TResult>;
|
|
||||||
|
/**
|
||||||
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
||||||
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
||||||
|
* @param onrejected The callback to execute when the Promise is rejected.
|
||||||
|
* @returns A Promise for the completion of which ever callback is executed.
|
||||||
|
*/
|
||||||
|
then<TResult>(onfulfilled: (value: T) => TResult | PromiseLike<TResult>, onrejected: (reason: any) => TResult | PromiseLike<TResult>): Promise<TResult>;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
||||||
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
||||||
|
* @returns A Promise for the completion of which ever callback is executed.
|
||||||
|
*/
|
||||||
|
then<TResult>(onfulfilled: (value: T) => TResult | PromiseLike<TResult>): Promise<TResult>;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates a new Promise with the same internal state of this Promise.
|
||||||
|
* @returns A Promise.
|
||||||
|
*/
|
||||||
|
then(): Promise<T>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Attaches a callback for only the rejection of the Promise.
|
* Attaches a callback for only the rejection of the Promise.
|
||||||
* @param onrejected The callback to execute when the Promise is rejected.
|
* @param onrejected The callback to execute when the Promise is rejected.
|
||||||
* @returns A Promise for the completion of the callback.
|
* @returns A Promise for the completion of the callback.
|
||||||
*/
|
*/
|
||||||
catch(onrejected?: (reason: any) => T | PromiseLike<T>): Promise<T>;
|
catch<TResult>(onrejected: (reason: any) => TResult | PromiseLike<TResult>): Promise<T | TResult>;
|
||||||
catch(onrejected?: (reason: any) => void): Promise<T>;
|
|
||||||
|
/**
|
||||||
|
* Attaches a callback for only the rejection of the Promise.
|
||||||
|
* @param onrejected The callback to execute when the Promise is rejected.
|
||||||
|
* @returns A Promise for the completion of the callback.
|
||||||
|
*/
|
||||||
|
catch(onrejected: (reason: any) => T | PromiseLike<T>): Promise<T>;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface PromiseConstructor {
|
interface PromiseConstructor {
|
||||||
/**
|
/**
|
||||||
* A reference to the prototype.
|
* A reference to the prototype.
|
||||||
*/
|
*/
|
||||||
readonly prototype: Promise<any>;
|
readonly prototype: Promise<any>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new Promise.
|
* Creates a new Promise.
|
||||||
* @param executor A callback used to initialize the promise. This callback is passed two arguments:
|
* @param executor A callback used to initialize the promise. This callback is passed two arguments:
|
||||||
* a resolve callback used resolve the promise with a value or the result of another promise,
|
* a resolve callback used resolve the promise with a value or the result of another promise,
|
||||||
* and a reject callback used to reject the promise with a provided reason or error.
|
* and a reject callback used to reject the promise with a provided reason or error.
|
||||||
*/
|
*/
|
||||||
new <T>(executor: (resolve: (value?: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void): Promise<T>;
|
new <T>(executor: (resolve: (value?: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void): Promise<T>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a Promise that is resolved with an array of results when all of the provided Promises
|
* Creates a Promise that is resolved with an array of results when all of the provided Promises
|
||||||
* resolve, or rejected when any Promise is rejected.
|
* resolve, or rejected when any Promise is rejected.
|
||||||
* @param values An array of Promises.
|
* @param values An array of Promises.
|
||||||
* @returns A new Promise.
|
* @returns A new Promise.
|
||||||
*/
|
*/
|
||||||
all<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | PromiseLike<T8>, T9 | PromiseLike<T9>, T10 | PromiseLike<T10>]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]>;
|
all<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | PromiseLike<T8>, T9 | PromiseLike<T9>, T10 | PromiseLike<T10>]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]>;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates a Promise that is resolved with an array of results when all of the provided Promises
|
||||||
|
* resolve, or rejected when any Promise is rejected.
|
||||||
|
* @param values An array of Promises.
|
||||||
|
* @returns A new Promise.
|
||||||
|
*/
|
||||||
all<T1, T2, T3, T4, T5, T6, T7, T8, T9>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | PromiseLike<T8>, T9 | PromiseLike<T9>]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8, T9]>;
|
all<T1, T2, T3, T4, T5, T6, T7, T8, T9>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | PromiseLike<T8>, T9 | PromiseLike<T9>]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8, T9]>;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates a Promise that is resolved with an array of results when all of the provided Promises
|
||||||
|
* resolve, or rejected when any Promise is rejected.
|
||||||
|
* @param values An array of Promises.
|
||||||
|
* @returns A new Promise.
|
||||||
|
*/
|
||||||
all<T1, T2, T3, T4, T5, T6, T7, T8>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | PromiseLike<T8>]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8]>;
|
all<T1, T2, T3, T4, T5, T6, T7, T8>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | PromiseLike<T8>]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8]>;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates a Promise that is resolved with an array of results when all of the provided Promises
|
||||||
|
* resolve, or rejected when any Promise is rejected.
|
||||||
|
* @param values An array of Promises.
|
||||||
|
* @returns A new Promise.
|
||||||
|
*/
|
||||||
all<T1, T2, T3, T4, T5, T6, T7>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>]): Promise<[T1, T2, T3, T4, T5, T6, T7]>;
|
all<T1, T2, T3, T4, T5, T6, T7>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>]): Promise<[T1, T2, T3, T4, T5, T6, T7]>;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates a Promise that is resolved with an array of results when all of the provided Promises
|
||||||
|
* resolve, or rejected when any Promise is rejected.
|
||||||
|
* @param values An array of Promises.
|
||||||
|
* @returns A new Promise.
|
||||||
|
*/
|
||||||
all<T1, T2, T3, T4, T5, T6>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>]): Promise<[T1, T2, T3, T4, T5, T6]>;
|
all<T1, T2, T3, T4, T5, T6>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>]): Promise<[T1, T2, T3, T4, T5, T6]>;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates a Promise that is resolved with an array of results when all of the provided Promises
|
||||||
|
* resolve, or rejected when any Promise is rejected.
|
||||||
|
* @param values An array of Promises.
|
||||||
|
* @returns A new Promise.
|
||||||
|
*/
|
||||||
all<T1, T2, T3, T4, T5>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | PromiseLike<T5>]): Promise<[T1, T2, T3, T4, T5]>;
|
all<T1, T2, T3, T4, T5>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | PromiseLike<T5>]): Promise<[T1, T2, T3, T4, T5]>;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates a Promise that is resolved with an array of results when all of the provided Promises
|
||||||
|
* resolve, or rejected when any Promise is rejected.
|
||||||
|
* @param values An array of Promises.
|
||||||
|
* @returns A new Promise.
|
||||||
|
*/
|
||||||
all<T1, T2, T3, T4>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>]): Promise<[T1, T2, T3, T4]>;
|
all<T1, T2, T3, T4>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>]): Promise<[T1, T2, T3, T4]>;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates a Promise that is resolved with an array of results when all of the provided Promises
|
||||||
|
* resolve, or rejected when any Promise is rejected.
|
||||||
|
* @param values An array of Promises.
|
||||||
|
* @returns A new Promise.
|
||||||
|
*/
|
||||||
all<T1, T2, T3>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>]): Promise<[T1, T2, T3]>;
|
all<T1, T2, T3>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>]): Promise<[T1, T2, T3]>;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates a Promise that is resolved with an array of results when all of the provided Promises
|
||||||
|
* resolve, or rejected when any Promise is rejected.
|
||||||
|
* @param values An array of Promises.
|
||||||
|
* @returns A new Promise.
|
||||||
|
*/
|
||||||
all<T1, T2>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>]): Promise<[T1, T2]>;
|
all<T1, T2>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>]): Promise<[T1, T2]>;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates a Promise that is resolved with an array of results when all of the provided Promises
|
||||||
|
* resolve, or rejected when any Promise is rejected.
|
||||||
|
* @param values An array of Promises.
|
||||||
|
* @returns A new Promise.
|
||||||
|
*/
|
||||||
|
all<T>(values: (T | PromiseLike<T>)[]): Promise<T[]>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new rejected promise for the provided reason.
|
* Creates a new rejected promise for the provided reason.
|
||||||
* @param reason The reason the promise was rejected.
|
* @param reason The reason the promise was rejected.
|
||||||
* @returns A new rejected Promise.
|
* @returns A new rejected Promise.
|
||||||
*/
|
*/
|
||||||
reject(reason: any): Promise<void>;
|
reject(reason: any): Promise<never>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new rejected promise for the provided reason.
|
* Creates a new rejected promise for the provided reason.
|
||||||
|
|
52
lib/lib.es5.d.ts
vendored
52
lib/lib.es5.d.ts
vendored
|
@ -1271,13 +1271,33 @@ declare type PromiseConstructorLike = new <T>(executor: (resolve: (value?: T | P
|
||||||
|
|
||||||
interface PromiseLike<T> {
|
interface PromiseLike<T> {
|
||||||
/**
|
/**
|
||||||
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
||||||
* @param onfulfilled The callback to execute when the Promise is resolved.
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
||||||
* @param onrejected The callback to execute when the Promise is rejected.
|
* @param onrejected The callback to execute when the Promise is rejected.
|
||||||
* @returns A Promise for the completion of which ever callback is executed.
|
* @returns A Promise for the completion of which ever callback is executed.
|
||||||
*/
|
*/
|
||||||
then<TResult>(onfulfilled?: (value: T) => TResult | PromiseLike<TResult>, onrejected?: (reason: any) => TResult | PromiseLike<TResult>): PromiseLike<TResult>;
|
then<TResult1, TResult2>(onfulfilled: (value: T) => TResult1 | PromiseLike<TResult1>, onrejected: (reason: any) => TResult2 | PromiseLike<TResult2>): PromiseLike<TResult1 | TResult2>;
|
||||||
then<TResult>(onfulfilled?: (value: T) => TResult | PromiseLike<TResult>, onrejected?: (reason: any) => void): PromiseLike<TResult>;
|
|
||||||
|
/**
|
||||||
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
||||||
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
||||||
|
* @param onrejected The callback to execute when the Promise is rejected.
|
||||||
|
* @returns A Promise for the completion of which ever callback is executed.
|
||||||
|
*/
|
||||||
|
then<TResult>(onfulfilled: (value: T) => TResult | PromiseLike<TResult>, onrejected: (reason: any) => TResult | PromiseLike<TResult>): PromiseLike<TResult>;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
||||||
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
||||||
|
* @returns A Promise for the completion of which ever callback is executed.
|
||||||
|
*/
|
||||||
|
then<TResult>(onfulfilled: (value: T) => TResult | PromiseLike<TResult>): PromiseLike<TResult>;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates a new Promise with the same internal state of this Promise.
|
||||||
|
* @returns A Promise.
|
||||||
|
*/
|
||||||
|
then(): PromiseLike<T>;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface ArrayLike<T> {
|
interface ArrayLike<T> {
|
||||||
|
@ -1540,7 +1560,7 @@ interface Int8Array {
|
||||||
* Returns the index of the first element in the array where predicate is true, and undefined
|
* Returns the index of the first element in the array where predicate is true, and undefined
|
||||||
* otherwise.
|
* otherwise.
|
||||||
* @param predicate find calls predicate once for each element of the array, in ascending
|
* @param predicate find calls predicate once for each element of the array, in ascending
|
||||||
* order, until it finds one where predicate returns true. If such an element is found,
|
* order, until it finds one where predicate returns true. If such an element is found,
|
||||||
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
|
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
|
||||||
* @param thisArg If provided, it will be used as the this value for each invocation of
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
||||||
* predicate. If it is not provided, undefined is used instead.
|
* predicate. If it is not provided, undefined is used instead.
|
||||||
|
@ -1813,7 +1833,7 @@ interface Uint8Array {
|
||||||
* Returns the index of the first element in the array where predicate is true, and undefined
|
* Returns the index of the first element in the array where predicate is true, and undefined
|
||||||
* otherwise.
|
* otherwise.
|
||||||
* @param predicate find calls predicate once for each element of the array, in ascending
|
* @param predicate find calls predicate once for each element of the array, in ascending
|
||||||
* order, until it finds one where predicate returns true. If such an element is found,
|
* order, until it finds one where predicate returns true. If such an element is found,
|
||||||
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
|
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
|
||||||
* @param thisArg If provided, it will be used as the this value for each invocation of
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
||||||
* predicate. If it is not provided, undefined is used instead.
|
* predicate. If it is not provided, undefined is used instead.
|
||||||
|
@ -2087,7 +2107,7 @@ interface Uint8ClampedArray {
|
||||||
* Returns the index of the first element in the array where predicate is true, and undefined
|
* Returns the index of the first element in the array where predicate is true, and undefined
|
||||||
* otherwise.
|
* otherwise.
|
||||||
* @param predicate find calls predicate once for each element of the array, in ascending
|
* @param predicate find calls predicate once for each element of the array, in ascending
|
||||||
* order, until it finds one where predicate returns true. If such an element is found,
|
* order, until it finds one where predicate returns true. If such an element is found,
|
||||||
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
|
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
|
||||||
* @param thisArg If provided, it will be used as the this value for each invocation of
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
||||||
* predicate. If it is not provided, undefined is used instead.
|
* predicate. If it is not provided, undefined is used instead.
|
||||||
|
@ -2360,7 +2380,7 @@ interface Int16Array {
|
||||||
* Returns the index of the first element in the array where predicate is true, and undefined
|
* Returns the index of the first element in the array where predicate is true, and undefined
|
||||||
* otherwise.
|
* otherwise.
|
||||||
* @param predicate find calls predicate once for each element of the array, in ascending
|
* @param predicate find calls predicate once for each element of the array, in ascending
|
||||||
* order, until it finds one where predicate returns true. If such an element is found,
|
* order, until it finds one where predicate returns true. If such an element is found,
|
||||||
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
|
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
|
||||||
* @param thisArg If provided, it will be used as the this value for each invocation of
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
||||||
* predicate. If it is not provided, undefined is used instead.
|
* predicate. If it is not provided, undefined is used instead.
|
||||||
|
@ -2634,7 +2654,7 @@ interface Uint16Array {
|
||||||
* Returns the index of the first element in the array where predicate is true, and undefined
|
* Returns the index of the first element in the array where predicate is true, and undefined
|
||||||
* otherwise.
|
* otherwise.
|
||||||
* @param predicate find calls predicate once for each element of the array, in ascending
|
* @param predicate find calls predicate once for each element of the array, in ascending
|
||||||
* order, until it finds one where predicate returns true. If such an element is found,
|
* order, until it finds one where predicate returns true. If such an element is found,
|
||||||
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
|
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
|
||||||
* @param thisArg If provided, it will be used as the this value for each invocation of
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
||||||
* predicate. If it is not provided, undefined is used instead.
|
* predicate. If it is not provided, undefined is used instead.
|
||||||
|
@ -2907,7 +2927,7 @@ interface Int32Array {
|
||||||
* Returns the index of the first element in the array where predicate is true, and undefined
|
* Returns the index of the first element in the array where predicate is true, and undefined
|
||||||
* otherwise.
|
* otherwise.
|
||||||
* @param predicate find calls predicate once for each element of the array, in ascending
|
* @param predicate find calls predicate once for each element of the array, in ascending
|
||||||
* order, until it finds one where predicate returns true. If such an element is found,
|
* order, until it finds one where predicate returns true. If such an element is found,
|
||||||
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
|
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
|
||||||
* @param thisArg If provided, it will be used as the this value for each invocation of
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
||||||
* predicate. If it is not provided, undefined is used instead.
|
* predicate. If it is not provided, undefined is used instead.
|
||||||
|
@ -3180,7 +3200,7 @@ interface Uint32Array {
|
||||||
* Returns the index of the first element in the array where predicate is true, and undefined
|
* Returns the index of the first element in the array where predicate is true, and undefined
|
||||||
* otherwise.
|
* otherwise.
|
||||||
* @param predicate find calls predicate once for each element of the array, in ascending
|
* @param predicate find calls predicate once for each element of the array, in ascending
|
||||||
* order, until it finds one where predicate returns true. If such an element is found,
|
* order, until it finds one where predicate returns true. If such an element is found,
|
||||||
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
|
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
|
||||||
* @param thisArg If provided, it will be used as the this value for each invocation of
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
||||||
* predicate. If it is not provided, undefined is used instead.
|
* predicate. If it is not provided, undefined is used instead.
|
||||||
|
@ -3453,7 +3473,7 @@ interface Float32Array {
|
||||||
* Returns the index of the first element in the array where predicate is true, and undefined
|
* Returns the index of the first element in the array where predicate is true, and undefined
|
||||||
* otherwise.
|
* otherwise.
|
||||||
* @param predicate find calls predicate once for each element of the array, in ascending
|
* @param predicate find calls predicate once for each element of the array, in ascending
|
||||||
* order, until it finds one where predicate returns true. If such an element is found,
|
* order, until it finds one where predicate returns true. If such an element is found,
|
||||||
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
|
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
|
||||||
* @param thisArg If provided, it will be used as the this value for each invocation of
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
||||||
* predicate. If it is not provided, undefined is used instead.
|
* predicate. If it is not provided, undefined is used instead.
|
||||||
|
@ -3727,7 +3747,7 @@ interface Float64Array {
|
||||||
* Returns the index of the first element in the array where predicate is true, and undefined
|
* Returns the index of the first element in the array where predicate is true, and undefined
|
||||||
* otherwise.
|
* otherwise.
|
||||||
* @param predicate find calls predicate once for each element of the array, in ascending
|
* @param predicate find calls predicate once for each element of the array, in ascending
|
||||||
* order, until it finds one where predicate returns true. If such an element is found,
|
* order, until it finds one where predicate returns true. If such an element is found,
|
||||||
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
|
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
|
||||||
* @param thisArg If provided, it will be used as the this value for each invocation of
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
||||||
* predicate. If it is not provided, undefined is used instead.
|
* predicate. If it is not provided, undefined is used instead.
|
||||||
|
|
972
lib/lib.es6.d.ts
vendored
972
lib/lib.es6.d.ts
vendored
File diff suppressed because it is too large
Load diff
223
lib/lib.webworker.d.ts
vendored
223
lib/lib.webworker.d.ts
vendored
|
@ -19,6 +19,10 @@ and limitations under the License.
|
||||||
/// IE Worker APIs
|
/// IE Worker APIs
|
||||||
/////////////////////////////
|
/////////////////////////////
|
||||||
|
|
||||||
|
interface Algorithm {
|
||||||
|
name: string;
|
||||||
|
}
|
||||||
|
|
||||||
interface EventInit {
|
interface EventInit {
|
||||||
bubbles?: boolean;
|
bubbles?: boolean;
|
||||||
cancelable?: boolean;
|
cancelable?: boolean;
|
||||||
|
@ -34,6 +38,10 @@ interface IDBObjectStoreParameters {
|
||||||
keyPath?: IDBKeyPath;
|
keyPath?: IDBKeyPath;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
interface KeyAlgorithm {
|
||||||
|
name?: string;
|
||||||
|
}
|
||||||
|
|
||||||
interface EventListener {
|
interface EventListener {
|
||||||
(evt: Event): void;
|
(evt: Event): void;
|
||||||
}
|
}
|
||||||
|
@ -123,6 +131,18 @@ declare var Coordinates: {
|
||||||
new(): Coordinates;
|
new(): Coordinates;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
interface CryptoKey {
|
||||||
|
readonly algorithm: KeyAlgorithm;
|
||||||
|
readonly extractable: boolean;
|
||||||
|
readonly type: string;
|
||||||
|
readonly usages: string[];
|
||||||
|
}
|
||||||
|
|
||||||
|
declare var CryptoKey: {
|
||||||
|
prototype: CryptoKey;
|
||||||
|
new(): CryptoKey;
|
||||||
|
}
|
||||||
|
|
||||||
interface DOMError {
|
interface DOMError {
|
||||||
readonly name: string;
|
readonly name: string;
|
||||||
toString(): string;
|
toString(): string;
|
||||||
|
@ -339,7 +359,7 @@ interface IDBDatabase extends EventTarget {
|
||||||
readonly name: string;
|
readonly name: string;
|
||||||
readonly objectStoreNames: DOMStringList;
|
readonly objectStoreNames: DOMStringList;
|
||||||
onabort: (ev: Event) => any;
|
onabort: (ev: Event) => any;
|
||||||
onerror: (ev: Event) => any;
|
onerror: (ev: ErrorEvent) => any;
|
||||||
version: number;
|
version: number;
|
||||||
onversionchange: (ev: IDBVersionChangeEvent) => any;
|
onversionchange: (ev: IDBVersionChangeEvent) => any;
|
||||||
close(): void;
|
close(): void;
|
||||||
|
@ -442,7 +462,7 @@ declare var IDBOpenDBRequest: {
|
||||||
|
|
||||||
interface IDBRequest extends EventTarget {
|
interface IDBRequest extends EventTarget {
|
||||||
readonly error: DOMError;
|
readonly error: DOMError;
|
||||||
onerror: (ev: Event) => any;
|
onerror: (ev: ErrorEvent) => any;
|
||||||
onsuccess: (ev: Event) => any;
|
onsuccess: (ev: Event) => any;
|
||||||
readonly readyState: string;
|
readonly readyState: string;
|
||||||
readonly result: any;
|
readonly result: any;
|
||||||
|
@ -464,7 +484,7 @@ interface IDBTransaction extends EventTarget {
|
||||||
readonly mode: string;
|
readonly mode: string;
|
||||||
onabort: (ev: Event) => any;
|
onabort: (ev: Event) => any;
|
||||||
oncomplete: (ev: Event) => any;
|
oncomplete: (ev: Event) => any;
|
||||||
onerror: (ev: Event) => any;
|
onerror: (ev: ErrorEvent) => any;
|
||||||
abort(): void;
|
abort(): void;
|
||||||
objectStore(name: string): IDBObjectStore;
|
objectStore(name: string): IDBObjectStore;
|
||||||
readonly READ_ONLY: string;
|
readonly READ_ONLY: string;
|
||||||
|
@ -532,7 +552,7 @@ declare var MSApp: MSApp;
|
||||||
interface MSAppAsyncOperation extends EventTarget {
|
interface MSAppAsyncOperation extends EventTarget {
|
||||||
readonly error: DOMError;
|
readonly error: DOMError;
|
||||||
oncomplete: (ev: Event) => any;
|
oncomplete: (ev: Event) => any;
|
||||||
onerror: (ev: Event) => any;
|
onerror: (ev: ErrorEvent) => any;
|
||||||
readonly readyState: number;
|
readonly readyState: number;
|
||||||
readonly result: any;
|
readonly result: any;
|
||||||
start(): void;
|
start(): void;
|
||||||
|
@ -681,7 +701,7 @@ interface WebSocket extends EventTarget {
|
||||||
readonly bufferedAmount: number;
|
readonly bufferedAmount: number;
|
||||||
readonly extensions: string;
|
readonly extensions: string;
|
||||||
onclose: (ev: CloseEvent) => any;
|
onclose: (ev: CloseEvent) => any;
|
||||||
onerror: (ev: Event) => any;
|
onerror: (ev: ErrorEvent) => any;
|
||||||
onmessage: (ev: MessageEvent) => any;
|
onmessage: (ev: MessageEvent) => any;
|
||||||
onopen: (ev: Event) => any;
|
onopen: (ev: Event) => any;
|
||||||
readonly protocol: string;
|
readonly protocol: string;
|
||||||
|
@ -724,7 +744,6 @@ declare var Worker: {
|
||||||
}
|
}
|
||||||
|
|
||||||
interface XMLHttpRequest extends EventTarget, XMLHttpRequestEventTarget {
|
interface XMLHttpRequest extends EventTarget, XMLHttpRequestEventTarget {
|
||||||
msCaching: string;
|
|
||||||
onreadystatechange: (ev: ProgressEvent) => any;
|
onreadystatechange: (ev: ProgressEvent) => any;
|
||||||
readonly readyState: number;
|
readonly readyState: number;
|
||||||
readonly response: any;
|
readonly response: any;
|
||||||
|
@ -736,6 +755,7 @@ interface XMLHttpRequest extends EventTarget, XMLHttpRequestEventTarget {
|
||||||
timeout: number;
|
timeout: number;
|
||||||
readonly upload: XMLHttpRequestUpload;
|
readonly upload: XMLHttpRequestUpload;
|
||||||
withCredentials: boolean;
|
withCredentials: boolean;
|
||||||
|
msCaching?: string;
|
||||||
abort(): void;
|
abort(): void;
|
||||||
getAllResponseHeaders(): string;
|
getAllResponseHeaders(): string;
|
||||||
getResponseHeader(header: string): string | null;
|
getResponseHeader(header: string): string | null;
|
||||||
|
@ -782,14 +802,14 @@ declare var XMLHttpRequestUpload: {
|
||||||
}
|
}
|
||||||
|
|
||||||
interface AbstractWorker {
|
interface AbstractWorker {
|
||||||
onerror: (ev: Event) => any;
|
onerror: (ev: ErrorEvent) => any;
|
||||||
addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
|
addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
|
||||||
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface MSBaseReader {
|
interface MSBaseReader {
|
||||||
onabort: (ev: Event) => any;
|
onabort: (ev: Event) => any;
|
||||||
onerror: (ev: Event) => any;
|
onerror: (ev: ErrorEvent) => any;
|
||||||
onload: (ev: Event) => any;
|
onload: (ev: Event) => any;
|
||||||
onloadend: (ev: ProgressEvent) => any;
|
onloadend: (ev: ProgressEvent) => any;
|
||||||
onloadstart: (ev: Event) => any;
|
onloadstart: (ev: Event) => any;
|
||||||
|
@ -835,7 +855,7 @@ interface WindowConsole {
|
||||||
|
|
||||||
interface XMLHttpRequestEventTarget {
|
interface XMLHttpRequestEventTarget {
|
||||||
onabort: (ev: Event) => any;
|
onabort: (ev: Event) => any;
|
||||||
onerror: (ev: Event) => any;
|
onerror: (ev: ErrorEvent) => any;
|
||||||
onload: (ev: Event) => any;
|
onload: (ev: Event) => any;
|
||||||
onloadend: (ev: ProgressEvent) => any;
|
onloadend: (ev: ProgressEvent) => any;
|
||||||
onloadstart: (ev: Event) => any;
|
onloadstart: (ev: Event) => any;
|
||||||
|
@ -865,7 +885,7 @@ declare var FileReaderSync: {
|
||||||
|
|
||||||
interface WorkerGlobalScope extends EventTarget, WorkerUtils, DedicatedWorkerGlobalScope, WindowConsole {
|
interface WorkerGlobalScope extends EventTarget, WorkerUtils, DedicatedWorkerGlobalScope, WindowConsole {
|
||||||
readonly location: WorkerLocation;
|
readonly location: WorkerLocation;
|
||||||
onerror: (ev: Event) => any;
|
onerror: (ev: ErrorEvent) => any;
|
||||||
readonly self: WorkerGlobalScope;
|
readonly self: WorkerGlobalScope;
|
||||||
close(): void;
|
close(): void;
|
||||||
msWriteProfilerMark(profilerMarkName: string): void;
|
msWriteProfilerMark(profilerMarkName: string): void;
|
||||||
|
@ -921,8 +941,11 @@ interface WorkerUtils extends Object, WindowBase64 {
|
||||||
clearInterval(handle: number): void;
|
clearInterval(handle: number): void;
|
||||||
clearTimeout(handle: number): void;
|
clearTimeout(handle: number): void;
|
||||||
importScripts(...urls: string[]): void;
|
importScripts(...urls: string[]): void;
|
||||||
|
setImmediate(handler: (...args: any[]) => void): number;
|
||||||
setImmediate(handler: any, ...args: any[]): number;
|
setImmediate(handler: any, ...args: any[]): number;
|
||||||
|
setInterval(handler: (...args: any[]) => void, timeout: number): number;
|
||||||
setInterval(handler: any, timeout?: any, ...args: any[]): number;
|
setInterval(handler: any, timeout?: any, ...args: any[]): number;
|
||||||
|
setTimeout(handler: (...args: any[]) => void, timeout: number): number;
|
||||||
setTimeout(handler: any, timeout?: any, ...args: any[]): number;
|
setTimeout(handler: any, timeout?: any, ...args: any[]): number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -958,6 +981,177 @@ interface ProgressEventInit extends EventInit {
|
||||||
interface IDBArrayKey extends Array<IDBValidKey> {
|
interface IDBArrayKey extends Array<IDBValidKey> {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
interface RsaKeyGenParams extends Algorithm {
|
||||||
|
modulusLength: number;
|
||||||
|
publicExponent: Uint8Array;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface RsaHashedKeyGenParams extends RsaKeyGenParams {
|
||||||
|
hash: AlgorithmIdentifier;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface RsaKeyAlgorithm extends KeyAlgorithm {
|
||||||
|
modulusLength: number;
|
||||||
|
publicExponent: Uint8Array;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface RsaHashedKeyAlgorithm extends RsaKeyAlgorithm {
|
||||||
|
hash: AlgorithmIdentifier;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface RsaHashedImportParams {
|
||||||
|
hash: AlgorithmIdentifier;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface RsaPssParams {
|
||||||
|
saltLength: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface RsaOaepParams extends Algorithm {
|
||||||
|
label?: BufferSource;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface EcdsaParams extends Algorithm {
|
||||||
|
hash: AlgorithmIdentifier;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface EcKeyGenParams extends Algorithm {
|
||||||
|
typedCurve: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface EcKeyAlgorithm extends KeyAlgorithm {
|
||||||
|
typedCurve: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface EcKeyImportParams {
|
||||||
|
namedCurve: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface EcdhKeyDeriveParams extends Algorithm {
|
||||||
|
public: CryptoKey;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface AesCtrParams extends Algorithm {
|
||||||
|
counter: BufferSource;
|
||||||
|
length: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface AesKeyAlgorithm extends KeyAlgorithm {
|
||||||
|
length: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface AesKeyGenParams extends Algorithm {
|
||||||
|
length: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface AesDerivedKeyParams extends Algorithm {
|
||||||
|
length: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface AesCbcParams extends Algorithm {
|
||||||
|
iv: BufferSource;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface AesCmacParams extends Algorithm {
|
||||||
|
length: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface AesGcmParams extends Algorithm {
|
||||||
|
iv: BufferSource;
|
||||||
|
additionalData?: BufferSource;
|
||||||
|
tagLength?: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface AesCfbParams extends Algorithm {
|
||||||
|
iv: BufferSource;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface HmacImportParams extends Algorithm {
|
||||||
|
hash?: AlgorithmIdentifier;
|
||||||
|
length?: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface HmacKeyAlgorithm extends KeyAlgorithm {
|
||||||
|
hash: AlgorithmIdentifier;
|
||||||
|
length: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface HmacKeyGenParams extends Algorithm {
|
||||||
|
hash: AlgorithmIdentifier;
|
||||||
|
length?: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface DhKeyGenParams extends Algorithm {
|
||||||
|
prime: Uint8Array;
|
||||||
|
generator: Uint8Array;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface DhKeyAlgorithm extends KeyAlgorithm {
|
||||||
|
prime: Uint8Array;
|
||||||
|
generator: Uint8Array;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface DhKeyDeriveParams extends Algorithm {
|
||||||
|
public: CryptoKey;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface DhImportKeyParams extends Algorithm {
|
||||||
|
prime: Uint8Array;
|
||||||
|
generator: Uint8Array;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface ConcatParams extends Algorithm {
|
||||||
|
hash?: AlgorithmIdentifier;
|
||||||
|
algorithmId: Uint8Array;
|
||||||
|
partyUInfo: Uint8Array;
|
||||||
|
partyVInfo: Uint8Array;
|
||||||
|
publicInfo?: Uint8Array;
|
||||||
|
privateInfo?: Uint8Array;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface HkdfCtrParams extends Algorithm {
|
||||||
|
hash: AlgorithmIdentifier;
|
||||||
|
label: BufferSource;
|
||||||
|
context: BufferSource;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface Pbkdf2Params extends Algorithm {
|
||||||
|
salt: BufferSource;
|
||||||
|
iterations: number;
|
||||||
|
hash: AlgorithmIdentifier;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface RsaOtherPrimesInfo {
|
||||||
|
r: string;
|
||||||
|
d: string;
|
||||||
|
t: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface JsonWebKey {
|
||||||
|
kty: string;
|
||||||
|
use?: string;
|
||||||
|
key_ops?: string[];
|
||||||
|
alg?: string;
|
||||||
|
kid?: string;
|
||||||
|
x5u?: string;
|
||||||
|
x5c?: string;
|
||||||
|
x5t?: string;
|
||||||
|
ext?: boolean;
|
||||||
|
crv?: string;
|
||||||
|
x?: string;
|
||||||
|
y?: string;
|
||||||
|
d?: string;
|
||||||
|
n?: string;
|
||||||
|
e?: string;
|
||||||
|
p?: string;
|
||||||
|
q?: string;
|
||||||
|
dp?: string;
|
||||||
|
dq?: string;
|
||||||
|
qi?: string;
|
||||||
|
oth?: RsaOtherPrimesInfo[];
|
||||||
|
k?: string;
|
||||||
|
}
|
||||||
|
|
||||||
declare type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
|
declare type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
|
||||||
|
|
||||||
interface ErrorEventHandler {
|
interface ErrorEventHandler {
|
||||||
|
@ -991,7 +1185,7 @@ interface FunctionStringCallback {
|
||||||
(data: string): void;
|
(data: string): void;
|
||||||
}
|
}
|
||||||
declare var location: WorkerLocation;
|
declare var location: WorkerLocation;
|
||||||
declare var onerror: (ev: Event) => any;
|
declare var onerror: (ev: ErrorEvent) => any;
|
||||||
declare var self: WorkerGlobalScope;
|
declare var self: WorkerGlobalScope;
|
||||||
declare function close(): void;
|
declare function close(): void;
|
||||||
declare function msWriteProfilerMark(profilerMarkName: string): void;
|
declare function msWriteProfilerMark(profilerMarkName: string): void;
|
||||||
|
@ -1006,8 +1200,11 @@ declare function clearImmediate(handle: number): void;
|
||||||
declare function clearInterval(handle: number): void;
|
declare function clearInterval(handle: number): void;
|
||||||
declare function clearTimeout(handle: number): void;
|
declare function clearTimeout(handle: number): void;
|
||||||
declare function importScripts(...urls: string[]): void;
|
declare function importScripts(...urls: string[]): void;
|
||||||
|
declare function setImmediate(handler: (...args: any[]) => void): number;
|
||||||
declare function setImmediate(handler: any, ...args: any[]): number;
|
declare function setImmediate(handler: any, ...args: any[]): number;
|
||||||
|
declare function setInterval(handler: (...args: any[]) => void, timeout: number): number;
|
||||||
declare function setInterval(handler: any, timeout?: any, ...args: any[]): number;
|
declare function setInterval(handler: any, timeout?: any, ...args: any[]): number;
|
||||||
|
declare function setTimeout(handler: (...args: any[]) => void, timeout: number): number;
|
||||||
declare function setTimeout(handler: any, timeout?: any, ...args: any[]): number;
|
declare function setTimeout(handler: any, timeout?: any, ...args: any[]): number;
|
||||||
declare function atob(encodedString: string): string;
|
declare function atob(encodedString: string): string;
|
||||||
declare function btoa(rawString: string): string;
|
declare function btoa(rawString: string): string;
|
||||||
|
@ -1017,5 +1214,7 @@ declare var console: Console;
|
||||||
declare function addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
|
declare function addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
|
||||||
declare function addEventListener(type: "message", listener: (ev: MessageEvent) => any, useCapture?: boolean): void;
|
declare function addEventListener(type: "message", listener: (ev: MessageEvent) => any, useCapture?: boolean): void;
|
||||||
declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
|
declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
|
||||||
|
type AlgorithmIdentifier = string | Algorithm;
|
||||||
type IDBKeyPath = string;
|
type IDBKeyPath = string;
|
||||||
type IDBValidKey = number | string | Date | IDBArrayKey;
|
type IDBValidKey = number | string | Date | IDBArrayKey;
|
||||||
|
type BufferSource = ArrayBuffer | ArrayBufferView;
|
2041
lib/tsc.js
2041
lib/tsc.js
File diff suppressed because it is too large
Load diff
29152
lib/tsserver.js
29152
lib/tsserver.js
File diff suppressed because one or more lines are too long
667
lib/tsserverlibrary.d.ts
vendored
667
lib/tsserverlibrary.d.ts
vendored
File diff suppressed because it is too large
Load diff
29125
lib/tsserverlibrary.js
29125
lib/tsserverlibrary.js
File diff suppressed because one or more lines are too long
35
lib/typescript.d.ts
vendored
35
lib/typescript.d.ts
vendored
|
@ -713,7 +713,6 @@ declare namespace ts {
|
||||||
}
|
}
|
||||||
interface PropertyAccessExpression extends MemberExpression, Declaration {
|
interface PropertyAccessExpression extends MemberExpression, Declaration {
|
||||||
expression: LeftHandSideExpression;
|
expression: LeftHandSideExpression;
|
||||||
dotToken: Node;
|
|
||||||
name: Identifier;
|
name: Identifier;
|
||||||
}
|
}
|
||||||
type IdentifierOrPropertyAccess = Identifier | PropertyAccessExpression;
|
type IdentifierOrPropertyAccess = Identifier | PropertyAccessExpression;
|
||||||
|
@ -844,6 +843,7 @@ declare namespace ts {
|
||||||
interface SwitchStatement extends Statement {
|
interface SwitchStatement extends Statement {
|
||||||
expression: Expression;
|
expression: Expression;
|
||||||
caseBlock: CaseBlock;
|
caseBlock: CaseBlock;
|
||||||
|
possiblyExhaustive?: boolean;
|
||||||
}
|
}
|
||||||
interface CaseBlock extends Node {
|
interface CaseBlock extends Node {
|
||||||
clauses: NodeArray<CaseOrDefaultClause>;
|
clauses: NodeArray<CaseOrDefaultClause>;
|
||||||
|
@ -1075,8 +1075,9 @@ declare namespace ts {
|
||||||
Assignment = 16,
|
Assignment = 16,
|
||||||
TrueCondition = 32,
|
TrueCondition = 32,
|
||||||
FalseCondition = 64,
|
FalseCondition = 64,
|
||||||
Referenced = 128,
|
SwitchClause = 128,
|
||||||
Shared = 256,
|
Referenced = 256,
|
||||||
|
Shared = 512,
|
||||||
Label = 12,
|
Label = 12,
|
||||||
Condition = 96,
|
Condition = 96,
|
||||||
}
|
}
|
||||||
|
@ -1098,6 +1099,12 @@ declare namespace ts {
|
||||||
expression: Expression;
|
expression: Expression;
|
||||||
antecedent: FlowNode;
|
antecedent: FlowNode;
|
||||||
}
|
}
|
||||||
|
interface FlowSwitchClause extends FlowNode {
|
||||||
|
switchStatement: SwitchStatement;
|
||||||
|
clauseStart: number;
|
||||||
|
clauseEnd: number;
|
||||||
|
antecedent: FlowNode;
|
||||||
|
}
|
||||||
interface AmdDependency {
|
interface AmdDependency {
|
||||||
path: string;
|
path: string;
|
||||||
name: string;
|
name: string;
|
||||||
|
@ -1132,7 +1139,13 @@ declare namespace ts {
|
||||||
getCurrentDirectory(): string;
|
getCurrentDirectory(): string;
|
||||||
}
|
}
|
||||||
interface ParseConfigHost {
|
interface ParseConfigHost {
|
||||||
readDirectory(rootDir: string, extension: string, exclude: string[]): string[];
|
useCaseSensitiveFileNames: boolean;
|
||||||
|
readDirectory(rootDir: string, extensions: string[], excludes: string[], includes: string[]): string[];
|
||||||
|
/**
|
||||||
|
* Gets a value indicating whether the specified path exists and is a file.
|
||||||
|
* @param path The path to test.
|
||||||
|
*/
|
||||||
|
fileExists(path: string): boolean;
|
||||||
}
|
}
|
||||||
interface WriteFileCallback {
|
interface WriteFileCallback {
|
||||||
(fileName: string, data: string, writeByteOrderMark: boolean, onError?: (message: string) => void, sourceFiles?: SourceFile[]): void;
|
(fileName: string, data: string, writeByteOrderMark: boolean, onError?: (message: string) => void, sourceFiles?: SourceFile[]): void;
|
||||||
|
@ -1412,7 +1425,6 @@ declare namespace ts {
|
||||||
ThisType = 33554432,
|
ThisType = 33554432,
|
||||||
ObjectLiteralPatternWithComputedProperties = 67108864,
|
ObjectLiteralPatternWithComputedProperties = 67108864,
|
||||||
Never = 134217728,
|
Never = 134217728,
|
||||||
Falsy = 126,
|
|
||||||
StringLike = 258,
|
StringLike = 258,
|
||||||
NumberLike = 132,
|
NumberLike = 132,
|
||||||
ObjectType = 80896,
|
ObjectType = 80896,
|
||||||
|
@ -1574,6 +1586,7 @@ declare namespace ts {
|
||||||
suppressImplicitAnyIndexErrors?: boolean;
|
suppressImplicitAnyIndexErrors?: boolean;
|
||||||
target?: ScriptTarget;
|
target?: ScriptTarget;
|
||||||
traceResolution?: boolean;
|
traceResolution?: boolean;
|
||||||
|
disableSizeLimit?: boolean;
|
||||||
types?: string[];
|
types?: string[];
|
||||||
/** Paths used to used to compute primary types search locations */
|
/** Paths used to used to compute primary types search locations */
|
||||||
typeRoots?: string[];
|
typeRoots?: string[];
|
||||||
|
@ -1640,6 +1653,15 @@ declare namespace ts {
|
||||||
fileNames: string[];
|
fileNames: string[];
|
||||||
raw?: any;
|
raw?: any;
|
||||||
errors: Diagnostic[];
|
errors: Diagnostic[];
|
||||||
|
wildcardDirectories?: Map<WatchDirectoryFlags>;
|
||||||
|
}
|
||||||
|
enum WatchDirectoryFlags {
|
||||||
|
None = 0,
|
||||||
|
Recursive = 1,
|
||||||
|
}
|
||||||
|
interface ExpandResult {
|
||||||
|
fileNames: string[];
|
||||||
|
wildcardDirectories: Map<WatchDirectoryFlags>;
|
||||||
}
|
}
|
||||||
interface ModuleResolutionHost {
|
interface ModuleResolutionHost {
|
||||||
fileExists(fileName: string): boolean;
|
fileExists(fileName: string): boolean;
|
||||||
|
@ -1710,6 +1732,7 @@ declare namespace ts {
|
||||||
useCaseSensitiveFileNames: boolean;
|
useCaseSensitiveFileNames: boolean;
|
||||||
write(s: string): void;
|
write(s: string): void;
|
||||||
readFile(path: string, encoding?: string): string;
|
readFile(path: string, encoding?: string): string;
|
||||||
|
getFileSize?(path: string): number;
|
||||||
writeFile(path: string, data: string, writeByteOrderMark?: boolean): void;
|
writeFile(path: string, data: string, writeByteOrderMark?: boolean): void;
|
||||||
watchFile?(path: string, callback: FileWatcherCallback): FileWatcher;
|
watchFile?(path: string, callback: FileWatcherCallback): FileWatcher;
|
||||||
watchDirectory?(path: string, callback: DirectoryWatcherCallback, recursive?: boolean): FileWatcher;
|
watchDirectory?(path: string, callback: DirectoryWatcherCallback, recursive?: boolean): FileWatcher;
|
||||||
|
@ -1720,7 +1743,7 @@ declare namespace ts {
|
||||||
getExecutingFilePath(): string;
|
getExecutingFilePath(): string;
|
||||||
getCurrentDirectory(): string;
|
getCurrentDirectory(): string;
|
||||||
getDirectories(path: string): string[];
|
getDirectories(path: string): string[];
|
||||||
readDirectory(path: string, extension?: string, exclude?: string[]): string[];
|
readDirectory(path: string, extensions?: string[], exclude?: string[], include?: string[]): string[];
|
||||||
getModifiedTime?(path: string): Date;
|
getModifiedTime?(path: string): Date;
|
||||||
createHash?(data: string): string;
|
createHash?(data: string): string;
|
||||||
getMemoryUsage?(): number;
|
getMemoryUsage?(): number;
|
||||||
|
|
2656
lib/typescript.js
2656
lib/typescript.js
File diff suppressed because it is too large
Load diff
35
lib/typescriptServices.d.ts
vendored
35
lib/typescriptServices.d.ts
vendored
|
@ -713,7 +713,6 @@ declare namespace ts {
|
||||||
}
|
}
|
||||||
interface PropertyAccessExpression extends MemberExpression, Declaration {
|
interface PropertyAccessExpression extends MemberExpression, Declaration {
|
||||||
expression: LeftHandSideExpression;
|
expression: LeftHandSideExpression;
|
||||||
dotToken: Node;
|
|
||||||
name: Identifier;
|
name: Identifier;
|
||||||
}
|
}
|
||||||
type IdentifierOrPropertyAccess = Identifier | PropertyAccessExpression;
|
type IdentifierOrPropertyAccess = Identifier | PropertyAccessExpression;
|
||||||
|
@ -844,6 +843,7 @@ declare namespace ts {
|
||||||
interface SwitchStatement extends Statement {
|
interface SwitchStatement extends Statement {
|
||||||
expression: Expression;
|
expression: Expression;
|
||||||
caseBlock: CaseBlock;
|
caseBlock: CaseBlock;
|
||||||
|
possiblyExhaustive?: boolean;
|
||||||
}
|
}
|
||||||
interface CaseBlock extends Node {
|
interface CaseBlock extends Node {
|
||||||
clauses: NodeArray<CaseOrDefaultClause>;
|
clauses: NodeArray<CaseOrDefaultClause>;
|
||||||
|
@ -1075,8 +1075,9 @@ declare namespace ts {
|
||||||
Assignment = 16,
|
Assignment = 16,
|
||||||
TrueCondition = 32,
|
TrueCondition = 32,
|
||||||
FalseCondition = 64,
|
FalseCondition = 64,
|
||||||
Referenced = 128,
|
SwitchClause = 128,
|
||||||
Shared = 256,
|
Referenced = 256,
|
||||||
|
Shared = 512,
|
||||||
Label = 12,
|
Label = 12,
|
||||||
Condition = 96,
|
Condition = 96,
|
||||||
}
|
}
|
||||||
|
@ -1098,6 +1099,12 @@ declare namespace ts {
|
||||||
expression: Expression;
|
expression: Expression;
|
||||||
antecedent: FlowNode;
|
antecedent: FlowNode;
|
||||||
}
|
}
|
||||||
|
interface FlowSwitchClause extends FlowNode {
|
||||||
|
switchStatement: SwitchStatement;
|
||||||
|
clauseStart: number;
|
||||||
|
clauseEnd: number;
|
||||||
|
antecedent: FlowNode;
|
||||||
|
}
|
||||||
interface AmdDependency {
|
interface AmdDependency {
|
||||||
path: string;
|
path: string;
|
||||||
name: string;
|
name: string;
|
||||||
|
@ -1132,7 +1139,13 @@ declare namespace ts {
|
||||||
getCurrentDirectory(): string;
|
getCurrentDirectory(): string;
|
||||||
}
|
}
|
||||||
interface ParseConfigHost {
|
interface ParseConfigHost {
|
||||||
readDirectory(rootDir: string, extension: string, exclude: string[]): string[];
|
useCaseSensitiveFileNames: boolean;
|
||||||
|
readDirectory(rootDir: string, extensions: string[], excludes: string[], includes: string[]): string[];
|
||||||
|
/**
|
||||||
|
* Gets a value indicating whether the specified path exists and is a file.
|
||||||
|
* @param path The path to test.
|
||||||
|
*/
|
||||||
|
fileExists(path: string): boolean;
|
||||||
}
|
}
|
||||||
interface WriteFileCallback {
|
interface WriteFileCallback {
|
||||||
(fileName: string, data: string, writeByteOrderMark: boolean, onError?: (message: string) => void, sourceFiles?: SourceFile[]): void;
|
(fileName: string, data: string, writeByteOrderMark: boolean, onError?: (message: string) => void, sourceFiles?: SourceFile[]): void;
|
||||||
|
@ -1412,7 +1425,6 @@ declare namespace ts {
|
||||||
ThisType = 33554432,
|
ThisType = 33554432,
|
||||||
ObjectLiteralPatternWithComputedProperties = 67108864,
|
ObjectLiteralPatternWithComputedProperties = 67108864,
|
||||||
Never = 134217728,
|
Never = 134217728,
|
||||||
Falsy = 126,
|
|
||||||
StringLike = 258,
|
StringLike = 258,
|
||||||
NumberLike = 132,
|
NumberLike = 132,
|
||||||
ObjectType = 80896,
|
ObjectType = 80896,
|
||||||
|
@ -1574,6 +1586,7 @@ declare namespace ts {
|
||||||
suppressImplicitAnyIndexErrors?: boolean;
|
suppressImplicitAnyIndexErrors?: boolean;
|
||||||
target?: ScriptTarget;
|
target?: ScriptTarget;
|
||||||
traceResolution?: boolean;
|
traceResolution?: boolean;
|
||||||
|
disableSizeLimit?: boolean;
|
||||||
types?: string[];
|
types?: string[];
|
||||||
/** Paths used to used to compute primary types search locations */
|
/** Paths used to used to compute primary types search locations */
|
||||||
typeRoots?: string[];
|
typeRoots?: string[];
|
||||||
|
@ -1640,6 +1653,15 @@ declare namespace ts {
|
||||||
fileNames: string[];
|
fileNames: string[];
|
||||||
raw?: any;
|
raw?: any;
|
||||||
errors: Diagnostic[];
|
errors: Diagnostic[];
|
||||||
|
wildcardDirectories?: Map<WatchDirectoryFlags>;
|
||||||
|
}
|
||||||
|
enum WatchDirectoryFlags {
|
||||||
|
None = 0,
|
||||||
|
Recursive = 1,
|
||||||
|
}
|
||||||
|
interface ExpandResult {
|
||||||
|
fileNames: string[];
|
||||||
|
wildcardDirectories: Map<WatchDirectoryFlags>;
|
||||||
}
|
}
|
||||||
interface ModuleResolutionHost {
|
interface ModuleResolutionHost {
|
||||||
fileExists(fileName: string): boolean;
|
fileExists(fileName: string): boolean;
|
||||||
|
@ -1710,6 +1732,7 @@ declare namespace ts {
|
||||||
useCaseSensitiveFileNames: boolean;
|
useCaseSensitiveFileNames: boolean;
|
||||||
write(s: string): void;
|
write(s: string): void;
|
||||||
readFile(path: string, encoding?: string): string;
|
readFile(path: string, encoding?: string): string;
|
||||||
|
getFileSize?(path: string): number;
|
||||||
writeFile(path: string, data: string, writeByteOrderMark?: boolean): void;
|
writeFile(path: string, data: string, writeByteOrderMark?: boolean): void;
|
||||||
watchFile?(path: string, callback: FileWatcherCallback): FileWatcher;
|
watchFile?(path: string, callback: FileWatcherCallback): FileWatcher;
|
||||||
watchDirectory?(path: string, callback: DirectoryWatcherCallback, recursive?: boolean): FileWatcher;
|
watchDirectory?(path: string, callback: DirectoryWatcherCallback, recursive?: boolean): FileWatcher;
|
||||||
|
@ -1720,7 +1743,7 @@ declare namespace ts {
|
||||||
getExecutingFilePath(): string;
|
getExecutingFilePath(): string;
|
||||||
getCurrentDirectory(): string;
|
getCurrentDirectory(): string;
|
||||||
getDirectories(path: string): string[];
|
getDirectories(path: string): string[];
|
||||||
readDirectory(path: string, extension?: string, exclude?: string[]): string[];
|
readDirectory(path: string, extensions?: string[], exclude?: string[], include?: string[]): string[];
|
||||||
getModifiedTime?(path: string): Date;
|
getModifiedTime?(path: string): Date;
|
||||||
createHash?(data: string): string;
|
createHash?(data: string): string;
|
||||||
getMemoryUsage?(): number;
|
getMemoryUsage?(): number;
|
||||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue