Skip to content

Commit 97d40ab

Browse files
committed
Update LKG
1 parent fc641b9 commit 97d40ab

16 files changed

+68016
-57851
lines changed

lib/lib.d.ts

Lines changed: 214 additions & 192 deletions
Large diffs are not rendered by default.

lib/lib.dom.d.ts

Lines changed: 191 additions & 190 deletions
Large diffs are not rendered by default.

lib/lib.es2015.core.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ interface NumberConstructor {
217217

218218
/**
219219
* Returns true if passed value is finite.
220-
* Unlike the global isFininte, Number.isFinite doesn't forcibly convert the parameter to a
220+
* Unlike the global isFinite, Number.isFinite doesn't forcibly convert the parameter to a
221221
* number. Only finite values of the type number, result in true.
222222
* @param number A numeric value.
223223
*/

lib/lib.es5.d.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1216,6 +1216,30 @@ interface Array<T> {
12161216
* @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.
12171217
*/
12181218
forEach(callbackfn: (value: T, index: number, array: T[]) => void, thisArg?: any): void;
1219+
/**
1220+
* Calls a defined callback function on each element of an array, and returns an array that contains the results.
1221+
* @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.
1222+
* @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.
1223+
*/
1224+
map<U>(this: [T, T, T, T, T], callbackfn: (value: T, index: number, array: T[]) => U, thisArg?: any): [U, U, U, U, U];
1225+
/**
1226+
* Calls a defined callback function on each element of an array, and returns an array that contains the results.
1227+
* @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.
1228+
* @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.
1229+
*/
1230+
map<U>(this: [T, T, T, T], callbackfn: (value: T, index: number, array: T[]) => U, thisArg?: any): [U, U, U, U];
1231+
/**
1232+
* Calls a defined callback function on each element of an array, and returns an array that contains the results.
1233+
* @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.
1234+
* @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.
1235+
*/
1236+
map<U>(this: [T, T, T], callbackfn: (value: T, index: number, array: T[]) => U, thisArg?: any): [U, U, U];
1237+
/**
1238+
* Calls a defined callback function on each element of an array, and returns an array that contains the results.
1239+
* @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.
1240+
* @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.
1241+
*/
1242+
map<U>(this: [T, T], callbackfn: (value: T, index: number, array: T[]) => U, thisArg?: any): [U, U];
12191243
/**
12201244
* Calls a defined callback function on each element of an array, and returns an array that contains the results.
12211245
* @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.

lib/lib.es6.d.ts

Lines changed: 215 additions & 190 deletions
Large diffs are not rendered by default.

lib/lib.webworker.d.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,7 @@ declare var Worker: {
744744
}
745745

746746
interface XMLHttpRequest extends EventTarget, XMLHttpRequestEventTarget {
747-
onreadystatechange: (this: this, ev: ProgressEvent) => any;
747+
onreadystatechange: (this: this, ev: Event) => any;
748748
readonly readyState: number;
749749
readonly response: any;
750750
readonly responseText: string;
@@ -770,13 +770,13 @@ interface XMLHttpRequest extends EventTarget, XMLHttpRequestEventTarget {
770770
readonly LOADING: number;
771771
readonly OPENED: number;
772772
readonly UNSENT: number;
773-
addEventListener(type: "abort", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
774-
addEventListener(type: "error", listener: (this: this, ev: ErrorEvent) => any, useCapture?: boolean): void;
775-
addEventListener(type: "load", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
773+
addEventListener(type: "abort", listener: (this: this, ev: ProgressEvent) => any, useCapture?: boolean): void;
774+
addEventListener(type: "error", listener: (this: this, ev: ProgressEvent) => any, useCapture?: boolean): void;
775+
addEventListener(type: "load", listener: (this: this, ev: ProgressEvent) => any, useCapture?: boolean): void;
776776
addEventListener(type: "loadend", listener: (this: this, ev: ProgressEvent) => any, useCapture?: boolean): void;
777-
addEventListener(type: "loadstart", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
777+
addEventListener(type: "loadstart", listener: (this: this, ev: ProgressEvent) => any, useCapture?: boolean): void;
778778
addEventListener(type: "progress", listener: (this: this, ev: ProgressEvent) => any, useCapture?: boolean): void;
779-
addEventListener(type: "readystatechange", listener: (this: this, ev: ProgressEvent) => any, useCapture?: boolean): void;
779+
addEventListener(type: "readystatechange", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
780780
addEventListener(type: "timeout", listener: (this: this, ev: ProgressEvent) => any, useCapture?: boolean): void;
781781
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
782782
}

0 commit comments

Comments
 (0)