@@ -1331,7 +1331,7 @@ interface AudioContextBase extends EventTarget {
1331
1331
onstatechange: (this: AudioContext, ev: Event) => any;
1332
1332
readonly sampleRate: number;
1333
1333
readonly state: string;
1334
- close(): PromiseLike <void>;
1334
+ close(): Promise <void>;
1335
1335
createAnalyser(): AnalyserNode;
1336
1336
createBiquadFilter(): BiquadFilterNode;
1337
1337
createBuffer(numberOfChannels: number, length: number, sampleRate: number): AudioBuffer;
@@ -1351,14 +1351,14 @@ interface AudioContextBase extends EventTarget {
1351
1351
createScriptProcessor(bufferSize?: number, numberOfInputChannels?: number, numberOfOutputChannels?: number): ScriptProcessorNode;
1352
1352
createStereoPanner(): StereoPannerNode;
1353
1353
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>;
1356
1356
addEventListener<K extends keyof AudioContextEventMap>(type: K, listener: (this: AudioContext, ev: AudioContextEventMap[K]) => any, useCapture?: boolean): void;
1357
1357
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
1358
1358
}
1359
1359
1360
1360
interface AudioContext extends AudioContextBase {
1361
- suspend(): PromiseLike <void>;
1361
+ suspend(): Promise <void>;
1362
1362
}
1363
1363
1364
1364
declare var AudioContext: {
@@ -2076,13 +2076,13 @@ declare var CSSSupportsRule: {
2076
2076
}
2077
2077
2078
2078
interface 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>;
2082
2082
keys(request?: RequestInfo, options?: CacheQueryOptions): any;
2083
- match(request: RequestInfo, options?: CacheQueryOptions): PromiseLike <Response>;
2083
+ match(request: RequestInfo, options?: CacheQueryOptions): Promise <Response>;
2084
2084
matchAll(request?: RequestInfo, options?: CacheQueryOptions): any;
2085
- put(request: RequestInfo, response: Response): PromiseLike <void>;
2085
+ put(request: RequestInfo, response: Response): Promise <void>;
2086
2086
}
2087
2087
2088
2088
declare var Cache: {
@@ -2091,11 +2091,11 @@ declare var Cache: {
2091
2091
}
2092
2092
2093
2093
interface 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>;
2096
2096
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>;
2099
2099
}
2100
2100
2101
2101
declare var CacheStorage: {
@@ -5716,7 +5716,7 @@ interface HTMLMediaElement extends HTMLElement {
5716
5716
* Loads and starts playback of a media resource.
5717
5717
*/
5718
5718
play(): void;
5719
- setMediaKeys(mediaKeys: MediaKeys | null): PromiseLike <void>;
5719
+ setMediaKeys(mediaKeys: MediaKeys | null): Promise <void>;
5720
5720
readonly HAVE_CURRENT_DATA: number;
5721
5721
readonly HAVE_ENOUGH_DATA: number;
5722
5722
readonly HAVE_FUTURE_DATA: number;
@@ -7294,7 +7294,7 @@ interface MSApp {
7294
7294
execAsyncAtPriority(asynchronousCallback: MSExecAtPriorityFunctionCallback, priority: string, ...args: any[]): void;
7295
7295
execAtPriority(synchronousCallback: MSExecAtPriorityFunctionCallback, priority: string, ...args: any[]): any;
7296
7296
getCurrentPriority(): string;
7297
- getHtmlPrintDocumentSourceAsync(htmlDoc: any): PromiseLike <any>;
7297
+ getHtmlPrintDocumentSourceAsync(htmlDoc: any): Promise <any>;
7298
7298
getViewId(view: any): any;
7299
7299
isTaskScheduledAtPriorityOrHigher(priority: string): boolean;
7300
7300
pageHandlesAllApplicationActivations(enabled: boolean): void;
@@ -7355,8 +7355,8 @@ declare var MSBlobBuilder: {
7355
7355
}
7356
7356
7357
7357
interface 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>;
7360
7360
}
7361
7361
7362
7362
declare var MSCredentials: {
@@ -7744,7 +7744,7 @@ interface MediaDevices extends EventTarget {
7744
7744
ondevicechange: (this: MediaDevices, ev: Event) => any;
7745
7745
enumerateDevices(): any;
7746
7746
getSupportedConstraints(): MediaTrackSupportedConstraints;
7747
- getUserMedia(constraints: MediaStreamConstraints): PromiseLike <MediaStream>;
7747
+ getUserMedia(constraints: MediaStreamConstraints): Promise <MediaStream>;
7748
7748
addEventListener<K extends keyof MediaDevicesEventMap>(type: K, listener: (this: MediaDevices, ev: MediaDevicesEventMap[K]) => any, useCapture?: boolean): void;
7749
7749
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
7750
7750
}
@@ -7803,15 +7803,15 @@ declare var MediaKeyMessageEvent: {
7803
7803
}
7804
7804
7805
7805
interface MediaKeySession extends EventTarget {
7806
- readonly closed: PromiseLike <void>;
7806
+ readonly closed: Promise <void>;
7807
7807
readonly expiration: number;
7808
7808
readonly keyStatuses: MediaKeyStatusMap;
7809
7809
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>;
7815
7815
}
7816
7816
7817
7817
declare var MediaKeySession: {
@@ -7833,7 +7833,7 @@ declare var MediaKeyStatusMap: {
7833
7833
7834
7834
interface MediaKeySystemAccess {
7835
7835
readonly keySystem: string;
7836
- createMediaKeys(): PromiseLike <MediaKeys>;
7836
+ createMediaKeys(): Promise <MediaKeys>;
7837
7837
getConfiguration(): MediaKeySystemConfiguration;
7838
7838
}
7839
7839
@@ -7844,7 +7844,7 @@ declare var MediaKeySystemAccess: {
7844
7844
7845
7845
interface MediaKeys {
7846
7846
createSession(sessionType?: string): MediaKeySession;
7847
- setServerCertificate(serverCertificate: any): PromiseLike <void>;
7847
+ setServerCertificate(serverCertificate: any): Promise <void>;
7848
7848
}
7849
7849
7850
7850
declare var MediaKeys: {
@@ -7983,7 +7983,7 @@ interface MediaStreamTrack extends EventTarget {
7983
7983
readonly readonly: boolean;
7984
7984
readonly readyState: string;
7985
7985
readonly remote: boolean;
7986
- applyConstraints(constraints: MediaTrackConstraints): PromiseLike <void>;
7986
+ applyConstraints(constraints: MediaTrackConstraints): Promise <void>;
7987
7987
clone(): MediaStreamTrack;
7988
7988
getCapabilities(): MediaTrackCapabilities;
7989
7989
getConstraints(): MediaTrackConstraints;
@@ -8217,7 +8217,7 @@ interface Navigator extends Object, NavigatorID, NavigatorOnLine, NavigatorConte
8217
8217
getGamepads(): Gamepad[];
8218
8218
javaEnabled(): boolean;
8219
8219
msLaunchUri(uri: string, successCallback?: MSLaunchUriCallback, noHandlerCallback?: MSLaunchUriCallback): void;
8220
- requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: MediaKeySystemConfiguration[]): PromiseLike <MediaKeySystemAccess>;
8220
+ requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: MediaKeySystemConfiguration[]): Promise <MediaKeySystemAccess>;
8221
8221
vibrate(pattern: number | number[]): boolean;
8222
8222
}
8223
8223
@@ -8377,7 +8377,7 @@ interface Notification extends EventTarget {
8377
8377
declare var Notification: {
8378
8378
prototype: Notification;
8379
8379
new(title: string, options?: NotificationOptions): Notification;
8380
- requestPermission(callback?: NotificationPermissionCallback): PromiseLike <string>;
8380
+ requestPermission(callback?: NotificationPermissionCallback): Promise <string>;
8381
8381
}
8382
8382
8383
8383
interface OES_element_index_uint {
@@ -8448,8 +8448,8 @@ interface OfflineAudioContextEventMap extends AudioContextEventMap {
8448
8448
interface OfflineAudioContext extends AudioContextBase {
8449
8449
readonly length: number;
8450
8450
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>;
8453
8453
addEventListener<K extends keyof OfflineAudioContextEventMap>(type: K, listener: (this: OfflineAudioContext, ev: OfflineAudioContextEventMap[K]) => any, useCapture?: boolean): void;
8454
8454
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
8455
8455
}
@@ -8564,8 +8564,8 @@ interface PaymentRequest extends EventTarget {
8564
8564
readonly shippingAddress: PaymentAddress | null;
8565
8565
readonly shippingOption: string | null;
8566
8566
readonly shippingType: string | null;
8567
- abort(): PromiseLike <void>;
8568
- show(): PromiseLike <PaymentResponse>;
8567
+ abort(): Promise <void>;
8568
+ show(): Promise <PaymentResponse>;
8569
8569
addEventListener<K extends keyof PaymentRequestEventMap>(type: K, listener: (this: PaymentRequest, ev: PaymentRequestEventMap[K]) => any, useCapture?: boolean): void;
8570
8570
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
8571
8571
}
@@ -8576,7 +8576,7 @@ declare var PaymentRequest: {
8576
8576
}
8577
8577
8578
8578
interface PaymentRequestUpdateEvent extends Event {
8579
- updateWith(d: PromiseLike <PaymentDetails>): void;
8579
+ updateWith(d: Promise <PaymentDetails>): void;
8580
8580
}
8581
8581
8582
8582
declare var PaymentRequestUpdateEvent: {
@@ -8592,7 +8592,7 @@ interface PaymentResponse {
8592
8592
readonly payerPhone: string | null;
8593
8593
readonly shippingAddress: PaymentAddress | null;
8594
8594
readonly shippingOption: string | null;
8595
- complete(result?: string): PromiseLike <void>;
8595
+ complete(result?: string): Promise <void>;
8596
8596
toJSON(): any;
8597
8597
}
8598
8598
@@ -8918,9 +8918,9 @@ declare var ProgressEvent: {
8918
8918
}
8919
8919
8920
8920
interface 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>;
8924
8924
}
8925
8925
8926
8926
declare var PushManager: {
@@ -8933,7 +8933,7 @@ interface PushSubscription {
8933
8933
readonly options: PushSubscriptionOptions;
8934
8934
getKey(name: string): ArrayBuffer | null;
8935
8935
toJSON(): any;
8936
- unsubscribe(): PromiseLike <boolean>;
8936
+ unsubscribe(): Promise <boolean>;
8937
8937
}
8938
8938
8939
8939
declare var PushSubscription: {
@@ -9127,19 +9127,19 @@ interface RTCPeerConnection extends EventTarget {
9127
9127
onsignalingstatechange: (this: RTCPeerConnection, ev: Event) => any;
9128
9128
readonly remoteDescription: RTCSessionDescription | null;
9129
9129
readonly signalingState: string;
9130
- addIceCandidate(candidate: RTCIceCandidate, successCallback?: VoidFunction, failureCallback?: RTCPeerConnectionErrorCallback): PromiseLike <void>;
9130
+ addIceCandidate(candidate: RTCIceCandidate, successCallback?: VoidFunction, failureCallback?: RTCPeerConnectionErrorCallback): Promise <void>;
9131
9131
addStream(stream: MediaStream): void;
9132
9132
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>;
9135
9135
getConfiguration(): RTCConfiguration;
9136
9136
getLocalStreams(): MediaStream[];
9137
9137
getRemoteStreams(): MediaStream[];
9138
- getStats(selector: MediaStreamTrack | null, successCallback?: RTCStatsCallback, failureCallback?: RTCPeerConnectionErrorCallback): PromiseLike <RTCStatsReport>;
9138
+ getStats(selector: MediaStreamTrack | null, successCallback?: RTCStatsCallback, failureCallback?: RTCPeerConnectionErrorCallback): Promise <RTCStatsReport>;
9139
9139
getStreamById(streamId: string): MediaStream | null;
9140
9140
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>;
9143
9143
addEventListener<K extends keyof RTCPeerConnectionEventMap>(type: K, listener: (this: RTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, useCapture?: boolean): void;
9144
9144
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
9145
9145
}
@@ -9245,8 +9245,8 @@ declare var RTCSsrcConflictEvent: {
9245
9245
}
9246
9246
9247
9247
interface RTCStatsProvider extends EventTarget {
9248
- getStats(): PromiseLike <RTCStatsReport>;
9249
- msGetStats(): PromiseLike <RTCStatsReport>;
9248
+ getStats(): Promise <RTCStatsReport>;
9249
+ msGetStats(): Promise <RTCStatsReport>;
9250
9250
}
9251
9251
9252
9252
declare var RTCStatsProvider: {
@@ -9300,7 +9300,7 @@ declare var Range: {
9300
9300
9301
9301
interface ReadableStream {
9302
9302
readonly locked: boolean;
9303
- cancel(): PromiseLike <void>;
9303
+ cancel(): Promise <void>;
9304
9304
getReader(): ReadableStreamReader;
9305
9305
}
9306
9306
@@ -9310,8 +9310,8 @@ declare var ReadableStream: {
9310
9310
}
9311
9311
9312
9312
interface ReadableStreamReader {
9313
- cancel(): PromiseLike <void>;
9314
- read(): PromiseLike <any>;
9313
+ cancel(): Promise <void>;
9314
+ read(): Promise <any>;
9315
9315
releaseLock(): void;
9316
9316
}
9317
9317
@@ -11285,10 +11285,10 @@ interface ServiceWorkerContainer extends EventTarget {
11285
11285
readonly controller: ServiceWorker | null;
11286
11286
oncontrollerchange: (this: ServiceWorkerContainer, ev: Event) => any;
11287
11287
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>;
11290
11290
getRegistrations(): any;
11291
- register(scriptURL: USVString, options?: RegistrationOptions): PromiseLike <ServiceWorkerRegistration>;
11291
+ register(scriptURL: USVString, options?: RegistrationOptions): Promise <ServiceWorkerRegistration>;
11292
11292
addEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, useCapture?: boolean): void;
11293
11293
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
11294
11294
}
@@ -11324,9 +11324,9 @@ interface ServiceWorkerRegistration extends EventTarget {
11324
11324
readonly sync: SyncManager;
11325
11325
readonly waiting: ServiceWorker | null;
11326
11326
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>;
11330
11330
addEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, useCapture?: boolean): void;
11331
11331
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
11332
11332
}
@@ -11561,7 +11561,7 @@ declare var SubtleCrypto: {
11561
11561
11562
11562
interface SyncManager {
11563
11563
getTags(): any;
11564
- register(tag: string): PromiseLike <void>;
11564
+ register(tag: string): Promise <void>;
11565
11565
}
11566
11566
11567
11567
declare var SyncManager: {
@@ -11975,8 +11975,8 @@ declare var WaveShaperNode: {
11975
11975
}
11976
11976
11977
11977
interface 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>;
11980
11980
}
11981
11981
11982
11982
declare var WebAuthentication: {
@@ -13469,10 +13469,10 @@ interface AbstractWorker {
13469
13469
13470
13470
interface Body {
13471
13471
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>;
13476
13476
}
13477
13477
13478
13478
interface CanvasPathMethods {
@@ -13613,7 +13613,7 @@ interface GlobalEventHandlers {
13613
13613
}
13614
13614
13615
13615
interface GlobalFetch {
13616
- fetch(input: RequestInfo, init?: RequestInit): PromiseLike <Response>;
13616
+ fetch(input: RequestInfo, init?: RequestInit): Promise <Response>;
13617
13617
}
13618
13618
13619
13619
interface HTMLTableAlignment {
@@ -14870,7 +14870,7 @@ declare var onwheel: (this: Window, ev: WheelEvent) => any;
14870
14870
declare var indexedDB: IDBFactory;
14871
14871
declare function atob(encodedString: string): string;
14872
14872
declare 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>;
14874
14874
declare function addEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, useCapture?: boolean): void;
14875
14875
declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
14876
14876
type AAGUID = string;
0 commit comments