@@ -1331,7 +1331,7 @@ interface AudioContextBase extends EventTarget {
13311331 onstatechange: (this: AudioContext, ev: Event) => any;
13321332 readonly sampleRate: number;
13331333 readonly state: string;
1334- close(): PromiseLike <void>;
1334+ close(): Promise <void>;
13351335 createAnalyser(): AnalyserNode;
13361336 createBiquadFilter(): BiquadFilterNode;
13371337 createBuffer(numberOfChannels: number, length: number, sampleRate: number): AudioBuffer;
@@ -1351,14 +1351,14 @@ interface AudioContextBase extends EventTarget {
13511351 createScriptProcessor(bufferSize?: number, numberOfInputChannels?: number, numberOfOutputChannels?: number): ScriptProcessorNode;
13521352 createStereoPanner(): StereoPannerNode;
13531353 createWaveShaper(): WaveShaperNode;
1354- decodeAudioData(audioData: ArrayBuffer, successCallback?: DecodeSuccessCallback, errorCallback?: DecodeErrorCallback): PromiseLike <AudioBuffer>;
1355- resume(): PromiseLike <void>;
1354+ decodeAudioData(audioData: ArrayBuffer, successCallback?: DecodeSuccessCallback, errorCallback?: DecodeErrorCallback): Promise <AudioBuffer>;
1355+ resume(): Promise <void>;
13561356 addEventListener<K extends keyof AudioContextEventMap>(type: K, listener: (this: AudioContext, ev: AudioContextEventMap[K]) => any, useCapture?: boolean): void;
13571357 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
13581358}
13591359
13601360interface AudioContext extends AudioContextBase {
1361- suspend(): PromiseLike <void>;
1361+ suspend(): Promise <void>;
13621362}
13631363
13641364declare var AudioContext: {
@@ -2076,13 +2076,13 @@ declare var CSSSupportsRule: {
20762076}
20772077
20782078interface Cache {
2079- add(request: RequestInfo): PromiseLike <void>;
2080- addAll(requests: RequestInfo[]): PromiseLike <void>;
2081- delete(request: RequestInfo, options?: CacheQueryOptions): PromiseLike <boolean>;
2079+ add(request: RequestInfo): Promise <void>;
2080+ addAll(requests: RequestInfo[]): Promise <void>;
2081+ delete(request: RequestInfo, options?: CacheQueryOptions): Promise <boolean>;
20822082 keys(request?: RequestInfo, options?: CacheQueryOptions): any;
2083- match(request: RequestInfo, options?: CacheQueryOptions): PromiseLike <Response>;
2083+ match(request: RequestInfo, options?: CacheQueryOptions): Promise <Response>;
20842084 matchAll(request?: RequestInfo, options?: CacheQueryOptions): any;
2085- put(request: RequestInfo, response: Response): PromiseLike <void>;
2085+ put(request: RequestInfo, response: Response): Promise <void>;
20862086}
20872087
20882088declare var Cache: {
@@ -2091,11 +2091,11 @@ declare var Cache: {
20912091}
20922092
20932093interface CacheStorage {
2094- delete(cacheName: string): PromiseLike <boolean>;
2095- has(cacheName: string): PromiseLike <boolean>;
2094+ delete(cacheName: string): Promise <boolean>;
2095+ has(cacheName: string): Promise <boolean>;
20962096 keys(): any;
2097- match(request: RequestInfo, options?: CacheQueryOptions): PromiseLike <any>;
2098- open(cacheName: string): PromiseLike <Cache>;
2097+ match(request: RequestInfo, options?: CacheQueryOptions): Promise <any>;
2098+ open(cacheName: string): Promise <Cache>;
20992099}
21002100
21012101declare var CacheStorage: {
@@ -5716,7 +5716,7 @@ interface HTMLMediaElement extends HTMLElement {
57165716 * Loads and starts playback of a media resource.
57175717 */
57185718 play(): void;
5719- setMediaKeys(mediaKeys: MediaKeys | null): PromiseLike <void>;
5719+ setMediaKeys(mediaKeys: MediaKeys | null): Promise <void>;
57205720 readonly HAVE_CURRENT_DATA: number;
57215721 readonly HAVE_ENOUGH_DATA: number;
57225722 readonly HAVE_FUTURE_DATA: number;
@@ -7294,7 +7294,7 @@ interface MSApp {
72947294 execAsyncAtPriority(asynchronousCallback: MSExecAtPriorityFunctionCallback, priority: string, ...args: any[]): void;
72957295 execAtPriority(synchronousCallback: MSExecAtPriorityFunctionCallback, priority: string, ...args: any[]): any;
72967296 getCurrentPriority(): string;
7297- getHtmlPrintDocumentSourceAsync(htmlDoc: any): PromiseLike <any>;
7297+ getHtmlPrintDocumentSourceAsync(htmlDoc: any): Promise <any>;
72987298 getViewId(view: any): any;
72997299 isTaskScheduledAtPriorityOrHigher(priority: string): boolean;
73007300 pageHandlesAllApplicationActivations(enabled: boolean): void;
@@ -7355,8 +7355,8 @@ declare var MSBlobBuilder: {
73557355}
73567356
73577357interface MSCredentials {
7358- getAssertion(challenge: string, filter?: MSCredentialFilter, params?: MSSignatureParameters): PromiseLike <MSAssertion>;
7359- makeCredential(accountInfo: MSAccountInfo, params: MSCredentialParameters[], challenge?: string): PromiseLike <MSAssertion>;
7358+ getAssertion(challenge: string, filter?: MSCredentialFilter, params?: MSSignatureParameters): Promise <MSAssertion>;
7359+ makeCredential(accountInfo: MSAccountInfo, params: MSCredentialParameters[], challenge?: string): Promise <MSAssertion>;
73607360}
73617361
73627362declare var MSCredentials: {
@@ -7744,7 +7744,7 @@ interface MediaDevices extends EventTarget {
77447744 ondevicechange: (this: MediaDevices, ev: Event) => any;
77457745 enumerateDevices(): any;
77467746 getSupportedConstraints(): MediaTrackSupportedConstraints;
7747- getUserMedia(constraints: MediaStreamConstraints): PromiseLike <MediaStream>;
7747+ getUserMedia(constraints: MediaStreamConstraints): Promise <MediaStream>;
77487748 addEventListener<K extends keyof MediaDevicesEventMap>(type: K, listener: (this: MediaDevices, ev: MediaDevicesEventMap[K]) => any, useCapture?: boolean): void;
77497749 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
77507750}
@@ -7803,15 +7803,15 @@ declare var MediaKeyMessageEvent: {
78037803}
78047804
78057805interface MediaKeySession extends EventTarget {
7806- readonly closed: PromiseLike <void>;
7806+ readonly closed: Promise <void>;
78077807 readonly expiration: number;
78087808 readonly keyStatuses: MediaKeyStatusMap;
78097809 readonly sessionId: string;
7810- close(): PromiseLike <void>;
7811- generateRequest(initDataType: string, initData: any): PromiseLike <void>;
7812- load(sessionId: string): PromiseLike <boolean>;
7813- remove(): PromiseLike <void>;
7814- update(response: any): PromiseLike <void>;
7810+ close(): Promise <void>;
7811+ generateRequest(initDataType: string, initData: any): Promise <void>;
7812+ load(sessionId: string): Promise <boolean>;
7813+ remove(): Promise <void>;
7814+ update(response: any): Promise <void>;
78157815}
78167816
78177817declare var MediaKeySession: {
@@ -7833,7 +7833,7 @@ declare var MediaKeyStatusMap: {
78337833
78347834interface MediaKeySystemAccess {
78357835 readonly keySystem: string;
7836- createMediaKeys(): PromiseLike <MediaKeys>;
7836+ createMediaKeys(): Promise <MediaKeys>;
78377837 getConfiguration(): MediaKeySystemConfiguration;
78387838}
78397839
@@ -7844,7 +7844,7 @@ declare var MediaKeySystemAccess: {
78447844
78457845interface MediaKeys {
78467846 createSession(sessionType?: string): MediaKeySession;
7847- setServerCertificate(serverCertificate: any): PromiseLike <void>;
7847+ setServerCertificate(serverCertificate: any): Promise <void>;
78487848}
78497849
78507850declare var MediaKeys: {
@@ -7983,7 +7983,7 @@ interface MediaStreamTrack extends EventTarget {
79837983 readonly readonly: boolean;
79847984 readonly readyState: string;
79857985 readonly remote: boolean;
7986- applyConstraints(constraints: MediaTrackConstraints): PromiseLike <void>;
7986+ applyConstraints(constraints: MediaTrackConstraints): Promise <void>;
79877987 clone(): MediaStreamTrack;
79887988 getCapabilities(): MediaTrackCapabilities;
79897989 getConstraints(): MediaTrackConstraints;
@@ -8217,7 +8217,7 @@ interface Navigator extends Object, NavigatorID, NavigatorOnLine, NavigatorConte
82178217 getGamepads(): Gamepad[];
82188218 javaEnabled(): boolean;
82198219 msLaunchUri(uri: string, successCallback?: MSLaunchUriCallback, noHandlerCallback?: MSLaunchUriCallback): void;
8220- requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: MediaKeySystemConfiguration[]): PromiseLike <MediaKeySystemAccess>;
8220+ requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: MediaKeySystemConfiguration[]): Promise <MediaKeySystemAccess>;
82218221 vibrate(pattern: number | number[]): boolean;
82228222}
82238223
@@ -8377,7 +8377,7 @@ interface Notification extends EventTarget {
83778377declare var Notification: {
83788378 prototype: Notification;
83798379 new(title: string, options?: NotificationOptions): Notification;
8380- requestPermission(callback?: NotificationPermissionCallback): PromiseLike <string>;
8380+ requestPermission(callback?: NotificationPermissionCallback): Promise <string>;
83818381}
83828382
83838383interface OES_element_index_uint {
@@ -8448,8 +8448,8 @@ interface OfflineAudioContextEventMap extends AudioContextEventMap {
84488448interface OfflineAudioContext extends AudioContextBase {
84498449 readonly length: number;
84508450 oncomplete: (this: OfflineAudioContext, ev: OfflineAudioCompletionEvent) => any;
8451- startRendering(): PromiseLike <AudioBuffer>;
8452- suspend(suspendTime: number): PromiseLike <void>;
8451+ startRendering(): Promise <AudioBuffer>;
8452+ suspend(suspendTime: number): Promise <void>;
84538453 addEventListener<K extends keyof OfflineAudioContextEventMap>(type: K, listener: (this: OfflineAudioContext, ev: OfflineAudioContextEventMap[K]) => any, useCapture?: boolean): void;
84548454 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
84558455}
@@ -8564,8 +8564,8 @@ interface PaymentRequest extends EventTarget {
85648564 readonly shippingAddress: PaymentAddress | null;
85658565 readonly shippingOption: string | null;
85668566 readonly shippingType: string | null;
8567- abort(): PromiseLike <void>;
8568- show(): PromiseLike <PaymentResponse>;
8567+ abort(): Promise <void>;
8568+ show(): Promise <PaymentResponse>;
85698569 addEventListener<K extends keyof PaymentRequestEventMap>(type: K, listener: (this: PaymentRequest, ev: PaymentRequestEventMap[K]) => any, useCapture?: boolean): void;
85708570 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
85718571}
@@ -8576,7 +8576,7 @@ declare var PaymentRequest: {
85768576}
85778577
85788578interface PaymentRequestUpdateEvent extends Event {
8579- updateWith(d: PromiseLike <PaymentDetails>): void;
8579+ updateWith(d: Promise <PaymentDetails>): void;
85808580}
85818581
85828582declare var PaymentRequestUpdateEvent: {
@@ -8592,7 +8592,7 @@ interface PaymentResponse {
85928592 readonly payerPhone: string | null;
85938593 readonly shippingAddress: PaymentAddress | null;
85948594 readonly shippingOption: string | null;
8595- complete(result?: string): PromiseLike <void>;
8595+ complete(result?: string): Promise <void>;
85968596 toJSON(): any;
85978597}
85988598
@@ -8918,9 +8918,9 @@ declare var ProgressEvent: {
89188918}
89198919
89208920interface PushManager {
8921- getSubscription(): PromiseLike <PushSubscription>;
8922- permissionState(options?: PushSubscriptionOptionsInit): PromiseLike <string>;
8923- subscribe(options?: PushSubscriptionOptionsInit): PromiseLike <PushSubscription>;
8921+ getSubscription(): Promise <PushSubscription>;
8922+ permissionState(options?: PushSubscriptionOptionsInit): Promise <string>;
8923+ subscribe(options?: PushSubscriptionOptionsInit): Promise <PushSubscription>;
89248924}
89258925
89268926declare var PushManager: {
@@ -8933,7 +8933,7 @@ interface PushSubscription {
89338933 readonly options: PushSubscriptionOptions;
89348934 getKey(name: string): ArrayBuffer | null;
89358935 toJSON(): any;
8936- unsubscribe(): PromiseLike <boolean>;
8936+ unsubscribe(): Promise <boolean>;
89378937}
89388938
89398939declare var PushSubscription: {
@@ -9127,19 +9127,19 @@ interface RTCPeerConnection extends EventTarget {
91279127 onsignalingstatechange: (this: RTCPeerConnection, ev: Event) => any;
91289128 readonly remoteDescription: RTCSessionDescription | null;
91299129 readonly signalingState: string;
9130- addIceCandidate(candidate: RTCIceCandidate, successCallback?: VoidFunction, failureCallback?: RTCPeerConnectionErrorCallback): PromiseLike <void>;
9130+ addIceCandidate(candidate: RTCIceCandidate, successCallback?: VoidFunction, failureCallback?: RTCPeerConnectionErrorCallback): Promise <void>;
91319131 addStream(stream: MediaStream): void;
91329132 close(): void;
9133- createAnswer(successCallback?: RTCSessionDescriptionCallback, failureCallback?: RTCPeerConnectionErrorCallback): PromiseLike <RTCSessionDescription>;
9134- createOffer(successCallback?: RTCSessionDescriptionCallback, failureCallback?: RTCPeerConnectionErrorCallback, options?: RTCOfferOptions): PromiseLike <RTCSessionDescription>;
9133+ createAnswer(successCallback?: RTCSessionDescriptionCallback, failureCallback?: RTCPeerConnectionErrorCallback): Promise <RTCSessionDescription>;
9134+ createOffer(successCallback?: RTCSessionDescriptionCallback, failureCallback?: RTCPeerConnectionErrorCallback, options?: RTCOfferOptions): Promise <RTCSessionDescription>;
91359135 getConfiguration(): RTCConfiguration;
91369136 getLocalStreams(): MediaStream[];
91379137 getRemoteStreams(): MediaStream[];
9138- getStats(selector: MediaStreamTrack | null, successCallback?: RTCStatsCallback, failureCallback?: RTCPeerConnectionErrorCallback): PromiseLike <RTCStatsReport>;
9138+ getStats(selector: MediaStreamTrack | null, successCallback?: RTCStatsCallback, failureCallback?: RTCPeerConnectionErrorCallback): Promise <RTCStatsReport>;
91399139 getStreamById(streamId: string): MediaStream | null;
91409140 removeStream(stream: MediaStream): void;
9141- setLocalDescription(description: RTCSessionDescription, successCallback?: VoidFunction, failureCallback?: RTCPeerConnectionErrorCallback): PromiseLike <void>;
9142- setRemoteDescription(description: RTCSessionDescription, successCallback?: VoidFunction, failureCallback?: RTCPeerConnectionErrorCallback): PromiseLike <void>;
9141+ setLocalDescription(description: RTCSessionDescription, successCallback?: VoidFunction, failureCallback?: RTCPeerConnectionErrorCallback): Promise <void>;
9142+ setRemoteDescription(description: RTCSessionDescription, successCallback?: VoidFunction, failureCallback?: RTCPeerConnectionErrorCallback): Promise <void>;
91439143 addEventListener<K extends keyof RTCPeerConnectionEventMap>(type: K, listener: (this: RTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, useCapture?: boolean): void;
91449144 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
91459145}
@@ -9245,8 +9245,8 @@ declare var RTCSsrcConflictEvent: {
92459245}
92469246
92479247interface RTCStatsProvider extends EventTarget {
9248- getStats(): PromiseLike <RTCStatsReport>;
9249- msGetStats(): PromiseLike <RTCStatsReport>;
9248+ getStats(): Promise <RTCStatsReport>;
9249+ msGetStats(): Promise <RTCStatsReport>;
92509250}
92519251
92529252declare var RTCStatsProvider: {
@@ -9300,7 +9300,7 @@ declare var Range: {
93009300
93019301interface ReadableStream {
93029302 readonly locked: boolean;
9303- cancel(): PromiseLike <void>;
9303+ cancel(): Promise <void>;
93049304 getReader(): ReadableStreamReader;
93059305}
93069306
@@ -9310,8 +9310,8 @@ declare var ReadableStream: {
93109310}
93119311
93129312interface ReadableStreamReader {
9313- cancel(): PromiseLike <void>;
9314- read(): PromiseLike <any>;
9313+ cancel(): Promise <void>;
9314+ read(): Promise <any>;
93159315 releaseLock(): void;
93169316}
93179317
@@ -11285,10 +11285,10 @@ interface ServiceWorkerContainer extends EventTarget {
1128511285 readonly controller: ServiceWorker | null;
1128611286 oncontrollerchange: (this: ServiceWorkerContainer, ev: Event) => any;
1128711287 onmessage: (this: ServiceWorkerContainer, ev: ServiceWorkerMessageEvent) => any;
11288- readonly ready: PromiseLike <ServiceWorkerRegistration>;
11289- getRegistration(clientURL?: USVString): PromiseLike <any>;
11288+ readonly ready: Promise <ServiceWorkerRegistration>;
11289+ getRegistration(clientURL?: USVString): Promise <any>;
1129011290 getRegistrations(): any;
11291- register(scriptURL: USVString, options?: RegistrationOptions): PromiseLike <ServiceWorkerRegistration>;
11291+ register(scriptURL: USVString, options?: RegistrationOptions): Promise <ServiceWorkerRegistration>;
1129211292 addEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, useCapture?: boolean): void;
1129311293 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
1129411294}
@@ -11324,9 +11324,9 @@ interface ServiceWorkerRegistration extends EventTarget {
1132411324 readonly sync: SyncManager;
1132511325 readonly waiting: ServiceWorker | null;
1132611326 getNotifications(filter?: GetNotificationOptions): any;
11327- showNotification(title: string, options?: NotificationOptions): PromiseLike <void>;
11328- unregister(): PromiseLike <boolean>;
11329- update(): PromiseLike <void>;
11327+ showNotification(title: string, options?: NotificationOptions): Promise <void>;
11328+ unregister(): Promise <boolean>;
11329+ update(): Promise <void>;
1133011330 addEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, useCapture?: boolean): void;
1133111331 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
1133211332}
@@ -11561,7 +11561,7 @@ declare var SubtleCrypto: {
1156111561
1156211562interface SyncManager {
1156311563 getTags(): any;
11564- register(tag: string): PromiseLike <void>;
11564+ register(tag: string): Promise <void>;
1156511565}
1156611566
1156711567declare var SyncManager: {
@@ -11975,8 +11975,8 @@ declare var WaveShaperNode: {
1197511975}
1197611976
1197711977interface WebAuthentication {
11978- getAssertion(assertionChallenge: any, options?: AssertionOptions): PromiseLike <WebAuthnAssertion>;
11979- makeCredential(accountInformation: Account, cryptoParameters: ScopedCredentialParameters[], attestationChallenge: any, options?: ScopedCredentialOptions): PromiseLike <ScopedCredentialInfo>;
11978+ getAssertion(assertionChallenge: any, options?: AssertionOptions): Promise <WebAuthnAssertion>;
11979+ makeCredential(accountInformation: Account, cryptoParameters: ScopedCredentialParameters[], attestationChallenge: any, options?: ScopedCredentialOptions): Promise <ScopedCredentialInfo>;
1198011980}
1198111981
1198211982declare var WebAuthentication: {
@@ -13469,10 +13469,10 @@ interface AbstractWorker {
1346913469
1347013470interface Body {
1347113471 readonly bodyUsed: boolean;
13472- arrayBuffer(): PromiseLike <ArrayBuffer>;
13473- blob(): PromiseLike <Blob>;
13474- json(): PromiseLike <any>;
13475- text(): PromiseLike <string>;
13472+ arrayBuffer(): Promise <ArrayBuffer>;
13473+ blob(): Promise <Blob>;
13474+ json(): Promise <any>;
13475+ text(): Promise <string>;
1347613476}
1347713477
1347813478interface CanvasPathMethods {
@@ -13613,7 +13613,7 @@ interface GlobalEventHandlers {
1361313613}
1361413614
1361513615interface GlobalFetch {
13616- fetch(input: RequestInfo, init?: RequestInit): PromiseLike <Response>;
13616+ fetch(input: RequestInfo, init?: RequestInit): Promise <Response>;
1361713617}
1361813618
1361913619interface HTMLTableAlignment {
@@ -14870,7 +14870,7 @@ declare var onwheel: (this: Window, ev: WheelEvent) => any;
1487014870declare var indexedDB: IDBFactory;
1487114871declare function atob(encodedString: string): string;
1487214872declare function btoa(rawString: string): string;
14873- declare function fetch(input: RequestInfo, init?: RequestInit): PromiseLike <Response>;
14873+ declare function fetch(input: RequestInfo, init?: RequestInit): Promise <Response>;
1487414874declare function addEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, useCapture?: boolean): void;
1487514875declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
1487614876type AAGUID = string;
0 commit comments