Bring over last 3.9 dom changes (#37502)

* Bring over last 3.9 dom changes

* Addresses feedback
This commit is contained in:
Orta 2020-03-20 20:17:27 -04:00 committed by GitHub
parent fde9c7f555
commit fbd83b848c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 2 deletions

View File

@ -1697,6 +1697,12 @@ interface ShadowRootInit {
mode: ShadowRootMode;
}
interface ShareData {
text?: string;
title?: string;
url?: string;
}
interface SpeechSynthesisErrorEventInit extends SpeechSynthesisEventInit {
error: SpeechSynthesisErrorCode;
}
@ -10733,6 +10739,7 @@ interface Navigator extends MSFileSaver, MSNavigatorDoNotTrack, NavigatorAutomat
msLaunchUri(uri: string, successCallback?: MSLaunchUriCallback, noHandlerCallback?: MSLaunchUriCallback): void;
requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: MediaKeySystemConfiguration[]): Promise<MediaKeySystemAccess>;
sendBeacon(url: string, data?: BodyInit | null): boolean;
share(data?: ShareData): Promise<void>;
vibrate(pattern: number | number[]): boolean;
}
@ -19225,7 +19232,7 @@ interface BlobCallback {
}
interface CustomElementConstructor {
new (): HTMLElement;
new (...params: any[]): HTMLElement;
}
interface DecodeErrorCallback {

View File

@ -10,7 +10,7 @@ tests/cases/compiler/intersectionsOfLargeUnions2.ts(31,15): error TS2536: Type '
interface ElementTagNameMap {
~~~~~~~~~~~~~~~~~
!!! error TS2300: Duplicate identifier 'ElementTagNameMap'.
!!! related TS6203 /.ts/lib.dom.d.ts:19563:6: 'ElementTagNameMap' was also declared here.
!!! related TS6203 /.ts/lib.dom.d.ts:19570:6: 'ElementTagNameMap' was also declared here.
[index: number]: HTMLElement
}