mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 04:49:15 +08:00
Add IonicPopupConfirmPromise
confirm(options) Show a simple confirm popup with a Cancel and OK button. Resolves the promise with true if the user presses the OK button, and false if the user presses the Cancel button. (Ref: http://ionicframework.com/docs/api/service/$ionicPopup/)
This commit is contained in:
5
ionic/ionic.d.ts
vendored
5
ionic/ionic.d.ts
vendored
@@ -246,10 +246,13 @@ declare module ionic {
|
||||
interface IonicPopupService {
|
||||
show(options: IonicPopupFullOptions): IonicPopupPromise;
|
||||
alert(options: IonicPopupAlertOptions): IonicPopupPromise;
|
||||
confirm(options: IonicPopupConfirmOptions): IonicPopupPromise;
|
||||
confirm(options: IonicPopupConfirmOptions): IonicPopupConfirmPromise;
|
||||
prompt(options: IonicPopupPromptOptions): IonicPopupPromise;
|
||||
}
|
||||
|
||||
interface IonicPopupConfirmPromise extends ng.IPromise<boolean> {
|
||||
close(value?: boolean): void;
|
||||
}
|
||||
interface IonicPopupPromise extends ng.IPromise<any> {
|
||||
close(value?: any): any;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user