Skip to content

Commit c8467e1

Browse files
committed
fix(dialogs): typings fix for alert with custom view
1 parent 826252e commit c8467e1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/dialogs/dialogs.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export function alert(message: string | number | boolean): Promise<void>;
6161
* The alert() method displays an alert box with a specified message.
6262
* @param options Specifies the options for the alert box.
6363
*/
64-
export function alert(options: AlertOptions & MDCAlertControlerOptions): Promise<void>;
64+
export function alert(options: AlertOptions & MDCAlertControlerOptions): Promise<any>;
6565

6666
/**
6767
* The confirm() method displays a dialog box with a specified message.

src/dialogs/dialogs.ios.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,8 @@ function createAlertController(options: DialogOptions & MDCAlertControlerOptions
271271
return alertController;
272272
}
273273

274-
export function alert(arg: any): Promise<void> {
275-
return new Promise<void>((resolve, reject) => {
274+
export function alert(arg: any): Promise<any> {
275+
return new Promise<any>((resolve, reject) => {
276276
try {
277277
const defaultOptions = {
278278
// title: ALERT,

0 commit comments

Comments
 (0)