phonegap: Fix "Notification" conflict with global interface

This commit is contained in:
Andy Hanson
2018-08-06 11:26:22 -07:00
parent 1d9679b2dc
commit 1fad4c8cbd
+2 -2
View File
@@ -526,7 +526,7 @@ declare var Media: {
new(src: string, onSuccess: (arg: any) => any, onError: (error: any) => any): Media;
}
interface Notification {
interface PhonegapNotification {
alert(message: string, alertCallback: Function, title?: string, buttonName?: string): void;
confirm(message: string, confirmCallback: Function, title?: string, buttonLabels?: string): void;
confirm(message: string, confirmCallback: Function, title?: string, buttonLabels?: string[]): void;
@@ -614,7 +614,7 @@ interface /*PhoneGapNavigator extends*/ Navigator {
contacts: Contacts;
device: Device;
globalization: Globalization;
notification: Notification;
notification: PhonegapNotification;
splashscreen: Splashscreen;
}