Skip to content

Commit 6084dec

Browse files
committed
Merge branch 'master' into alternateFixSuperInAsyncMethod
2 parents 5943f04 + 4ce4367 commit 6084dec

File tree

283 files changed

+25050
-14617
lines changed

Some content is hidden

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

283 files changed

+25050
-14617
lines changed

lib/lib.core.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ and limitations under the License.
1414
***************************************************************************** */
1515

1616
/// <reference no-default-lib="true"/>
17-
1817
/////////////////////////////
1918
/// ECMAScript APIs
2019
/////////////////////////////

lib/lib.core.es6.d.ts

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ and limitations under the License.
1414
***************************************************************************** */
1515

1616
/// <reference no-default-lib="true"/>
17-
1817
/////////////////////////////
1918
/// ECMAScript APIs
2019
/////////////////////////////
@@ -5121,15 +5120,15 @@ interface PromiseConstructor {
51215120
* @param values An array of Promises.
51225121
* @returns A new Promise.
51235122
*/
5124-
all<T1, T2>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>]): Promise<[T1, T2]>;
5125-
all<T1, T2, T3>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>]): Promise<[T1, T2, T3]>;
5126-
all<T1, T2, T3, T4>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>]): Promise<[T1, T2, T3, T4]>;
5127-
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]>;
5128-
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]>;
5129-
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]>;
5130-
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]>;
5131-
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]>;
51325123
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]>;
5124+
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]>;
5125+
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]>;
5126+
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]>;
5127+
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]>;
5128+
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]>;
5129+
all<T1, T2, T3, T4>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>]): Promise<[T1, T2, T3, T4]>;
5130+
all<T1, T2, T3>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>]): Promise<[T1, T2, T3]>;
5131+
all<T1, T2>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>]): Promise<[T1, T2]>;
51335132
all<TAll>(values: Iterable<TAll | PromiseLike<TAll>>): Promise<TAll[]>;
51345133

51355134
/**

lib/lib.d.ts

Lines changed: 32 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ and limitations under the License.
1414
***************************************************************************** */
1515

1616
/// <reference no-default-lib="true"/>
17-
1817
/////////////////////////////
1918
/// ECMAScript APIs
2019
/////////////////////////////
@@ -5296,7 +5295,7 @@ interface Console {
52965295
select(element: Element): void;
52975296
time(timerName?: string): void;
52985297
timeEnd(timerName?: string): void;
5299-
trace(): void;
5298+
trace(message?: any, ...optionalParams: any[]): void;
53005299
warn(message?: any, ...optionalParams: any[]): void;
53015300
}
53025301

@@ -5555,9 +5554,9 @@ interface DataTransferItemList {
55555554
length: number;
55565555
add(data: File): DataTransferItem;
55575556
clear(): void;
5558-
item(index: number): File;
5557+
item(index: number): DataTransferItem;
55595558
remove(index: number): void;
5560-
[index: number]: File;
5559+
[index: number]: DataTransferItem;
55615560
}
55625561

55635562
declare var DataTransferItemList: {
@@ -6610,6 +6609,8 @@ interface Document extends Node, GlobalEventHandlers, NodeSelector, DocumentEven
66106609
* @param content The text and HTML tags to write.
66116610
*/
66126611
writeln(...content: string[]): void;
6612+
createElement(tagName: "picture"): HTMLPictureElement;
6613+
getElementsByTagName(tagname: "picture"): NodeListOf<HTMLPictureElement>;
66136614
addEventListener(type: "MSContentZoom", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
66146615
addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
66156616
addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
@@ -7022,6 +7023,7 @@ interface Element extends Node, GlobalEventHandlers, ElementTraversal, NodeSelec
70227023
webkitRequestFullscreen(): void;
70237024
getElementsByClassName(classNames: string): NodeListOf<Element>;
70247025
matches(selector: string): boolean;
7026+
getElementsByTagName(tagname: "picture"): NodeListOf<HTMLPictureElement>;
70257027
addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
70267028
addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
70277029
addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
@@ -7811,6 +7813,7 @@ interface HTMLCanvasElement extends HTMLElement {
78117813
* @param type The standard MIME type for the image format to return. If you do not specify this parameter, the default value is a PNG format image.
78127814
*/
78137815
toDataURL(type?: string, ...args: any[]): string;
7816+
toBlob(): Blob;
78147817
}
78157818

78167819
declare var HTMLCanvasElement: {
@@ -10965,7 +10968,7 @@ interface IDBDatabase extends EventTarget {
1096510968
objectStoreNames: DOMStringList;
1096610969
onabort: (ev: Event) => any;
1096710970
onerror: (ev: Event) => any;
10968-
version: string;
10971+
version: number;
1096910972
close(): void;
1097010973
createObjectStore(name: string, optionalParameters?: IDBObjectStoreParameters): IDBObjectStore;
1097110974
deleteObjectStore(name: string): void;
@@ -11681,7 +11684,7 @@ declare var MediaQueryList: {
1168111684
interface MediaSource extends EventTarget {
1168211685
activeSourceBuffers: SourceBufferList;
1168311686
duration: number;
11684-
readyState: number;
11687+
readyState: string;
1168511688
sourceBuffers: SourceBufferList;
1168611689
addSourceBuffer(type: string): SourceBuffer;
1168711690
endOfStream(error?: number): void;
@@ -14410,17 +14413,16 @@ declare var Storage: {
1441014413
}
1441114414

1441214415
interface StorageEvent extends Event {
14413-
key: string;
14414-
newValue: any;
14415-
oldValue: any;
14416-
storageArea: Storage;
1441714416
url: string;
14418-
initStorageEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, keyArg: string, oldValueArg: any, newValueArg: any, urlArg: string, storageAreaArg: Storage): void;
14417+
key?: string;
14418+
oldValue?: string;
14419+
newValue?: string;
14420+
storageArea?: Storage;
1441914421
}
1442014422

1442114423
declare var StorageEvent: {
1442214424
prototype: StorageEvent;
14423-
new(): StorageEvent;
14425+
new (type: string, eventInitDict?: StorageEventInit): StorageEvent;
1442414426
}
1442514427

1442614428
interface StyleMedia {
@@ -16018,7 +16020,7 @@ interface Window extends EventTarget, WindowTimers, WindowSessionStorage, Window
1601816020
msMatchMedia(mediaQuery: string): MediaQueryList;
1601916021
msRequestAnimationFrame(callback: FrameRequestCallback): number;
1602016022
msWriteProfilerMark(profilerMarkName: string): void;
16021-
open(url?: string, target?: string, features?: string, replace?: boolean): any;
16023+
open(url?: string, target?: string, features?: string, replace?: boolean): Window;
1602216024
postMessage(message: any, targetOrigin: string, ports?: any): void;
1602316025
print(): void;
1602416026
prompt(message?: string, _default?: string): string;
@@ -16620,6 +16622,14 @@ interface XMLHttpRequestEventTarget {
1662016622
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
1662116623
}
1662216624

16625+
interface StorageEventInit extends EventInit {
16626+
key?: string;
16627+
oldValue?: string;
16628+
newValue?: string;
16629+
url: string;
16630+
storageArea?: Storage;
16631+
}
16632+
1662316633
interface IDBObjectStoreParameters {
1662416634
keyPath?: string | string[];
1662516635
autoIncrement?: boolean;
@@ -16674,6 +16684,14 @@ declare var HTMLTemplateElement: {
1667416684
new(): HTMLTemplateElement;
1667516685
}
1667616686

16687+
interface HTMLPictureElement extends HTMLElement {
16688+
}
16689+
16690+
declare var HTMLPictureElement: {
16691+
prototype: HTMLPictureElement;
16692+
new(): HTMLPictureElement;
16693+
}
16694+
1667716695
declare type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
1667816696

1667916697
interface ErrorEventHandler {
@@ -16870,7 +16888,7 @@ declare function msCancelRequestAnimationFrame(handle: number): void;
1687016888
declare function msMatchMedia(mediaQuery: string): MediaQueryList;
1687116889
declare function msRequestAnimationFrame(callback: FrameRequestCallback): number;
1687216890
declare function msWriteProfilerMark(profilerMarkName: string): void;
16873-
declare function open(url?: string, target?: string, features?: string, replace?: boolean): any;
16891+
declare function open(url?: string, target?: string, features?: string, replace?: boolean): Window;
1687416892
declare function postMessage(message: any, targetOrigin: string, ports?: any): void;
1687516893
declare function print(): void;
1687616894
declare function prompt(message?: string, _default?: string): string;

lib/lib.dom.d.ts

Lines changed: 32 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1472,7 +1472,7 @@ interface Console {
14721472
select(element: Element): void;
14731473
time(timerName?: string): void;
14741474
timeEnd(timerName?: string): void;
1475-
trace(): void;
1475+
trace(message?: any, ...optionalParams: any[]): void;
14761476
warn(message?: any, ...optionalParams: any[]): void;
14771477
}
14781478

@@ -1731,9 +1731,9 @@ interface DataTransferItemList {
17311731
length: number;
17321732
add(data: File): DataTransferItem;
17331733
clear(): void;
1734-
item(index: number): File;
1734+
item(index: number): DataTransferItem;
17351735
remove(index: number): void;
1736-
[index: number]: File;
1736+
[index: number]: DataTransferItem;
17371737
}
17381738

17391739
declare var DataTransferItemList: {
@@ -2786,6 +2786,8 @@ interface Document extends Node, GlobalEventHandlers, NodeSelector, DocumentEven
27862786
* @param content The text and HTML tags to write.
27872787
*/
27882788
writeln(...content: string[]): void;
2789+
createElement(tagName: "picture"): HTMLPictureElement;
2790+
getElementsByTagName(tagname: "picture"): NodeListOf<HTMLPictureElement>;
27892791
addEventListener(type: "MSContentZoom", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
27902792
addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
27912793
addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
@@ -3198,6 +3200,7 @@ interface Element extends Node, GlobalEventHandlers, ElementTraversal, NodeSelec
31983200
webkitRequestFullscreen(): void;
31993201
getElementsByClassName(classNames: string): NodeListOf<Element>;
32003202
matches(selector: string): boolean;
3203+
getElementsByTagName(tagname: "picture"): NodeListOf<HTMLPictureElement>;
32013204
addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
32023205
addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
32033206
addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
@@ -3987,6 +3990,7 @@ interface HTMLCanvasElement extends HTMLElement {
39873990
* @param type The standard MIME type for the image format to return. If you do not specify this parameter, the default value is a PNG format image.
39883991
*/
39893992
toDataURL(type?: string, ...args: any[]): string;
3993+
toBlob(): Blob;
39903994
}
39913995

39923996
declare var HTMLCanvasElement: {
@@ -7141,7 +7145,7 @@ interface IDBDatabase extends EventTarget {
71417145
objectStoreNames: DOMStringList;
71427146
onabort: (ev: Event) => any;
71437147
onerror: (ev: Event) => any;
7144-
version: string;
7148+
version: number;
71457149
close(): void;
71467150
createObjectStore(name: string, optionalParameters?: IDBObjectStoreParameters): IDBObjectStore;
71477151
deleteObjectStore(name: string): void;
@@ -7857,7 +7861,7 @@ declare var MediaQueryList: {
78577861
interface MediaSource extends EventTarget {
78587862
activeSourceBuffers: SourceBufferList;
78597863
duration: number;
7860-
readyState: number;
7864+
readyState: string;
78617865
sourceBuffers: SourceBufferList;
78627866
addSourceBuffer(type: string): SourceBuffer;
78637867
endOfStream(error?: number): void;
@@ -10586,17 +10590,16 @@ declare var Storage: {
1058610590
}
1058710591

1058810592
interface StorageEvent extends Event {
10589-
key: string;
10590-
newValue: any;
10591-
oldValue: any;
10592-
storageArea: Storage;
1059310593
url: string;
10594-
initStorageEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, keyArg: string, oldValueArg: any, newValueArg: any, urlArg: string, storageAreaArg: Storage): void;
10594+
key?: string;
10595+
oldValue?: string;
10596+
newValue?: string;
10597+
storageArea?: Storage;
1059510598
}
1059610599

1059710600
declare var StorageEvent: {
1059810601
prototype: StorageEvent;
10599-
new(): StorageEvent;
10602+
new (type: string, eventInitDict?: StorageEventInit): StorageEvent;
1060010603
}
1060110604

1060210605
interface StyleMedia {
@@ -12194,7 +12197,7 @@ interface Window extends EventTarget, WindowTimers, WindowSessionStorage, Window
1219412197
msMatchMedia(mediaQuery: string): MediaQueryList;
1219512198
msRequestAnimationFrame(callback: FrameRequestCallback): number;
1219612199
msWriteProfilerMark(profilerMarkName: string): void;
12197-
open(url?: string, target?: string, features?: string, replace?: boolean): any;
12200+
open(url?: string, target?: string, features?: string, replace?: boolean): Window;
1219812201
postMessage(message: any, targetOrigin: string, ports?: any): void;
1219912202
print(): void;
1220012203
prompt(message?: string, _default?: string): string;
@@ -12796,6 +12799,14 @@ interface XMLHttpRequestEventTarget {
1279612799
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
1279712800
}
1279812801

12802+
interface StorageEventInit extends EventInit {
12803+
key?: string;
12804+
oldValue?: string;
12805+
newValue?: string;
12806+
url: string;
12807+
storageArea?: Storage;
12808+
}
12809+
1279912810
interface IDBObjectStoreParameters {
1280012811
keyPath?: string | string[];
1280112812
autoIncrement?: boolean;
@@ -12850,6 +12861,14 @@ declare var HTMLTemplateElement: {
1285012861
new(): HTMLTemplateElement;
1285112862
}
1285212863

12864+
interface HTMLPictureElement extends HTMLElement {
12865+
}
12866+
12867+
declare var HTMLPictureElement: {
12868+
prototype: HTMLPictureElement;
12869+
new(): HTMLPictureElement;
12870+
}
12871+
1285312872
declare type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
1285412873

1285512874
interface ErrorEventHandler {
@@ -13046,7 +13065,7 @@ declare function msCancelRequestAnimationFrame(handle: number): void;
1304613065
declare function msMatchMedia(mediaQuery: string): MediaQueryList;
1304713066
declare function msRequestAnimationFrame(callback: FrameRequestCallback): number;
1304813067
declare function msWriteProfilerMark(profilerMarkName: string): void;
13049-
declare function open(url?: string, target?: string, features?: string, replace?: boolean): any;
13068+
declare function open(url?: string, target?: string, features?: string, replace?: boolean): Window;
1305013069
declare function postMessage(message: any, targetOrigin: string, ports?: any): void;
1305113070
declare function print(): void;
1305213071
declare function prompt(message?: string, _default?: string): string;

0 commit comments

Comments
 (0)