fix(toast, action-sheet): allow button handler to return Promise<void> (#21259)

This commit is contained in:
Simon Hänisch
2020-05-26 21:27:14 +02:00
committed by GitHub
parent 1ea5ce5839
commit 7703da28f8
2 changed files with 2 additions and 2 deletions

View File

@ -21,5 +21,5 @@ export interface ActionSheetButton {
role?: 'cancel' | 'destructive' | 'selected' | string;
icon?: string;
cssClass?: string | string[];
handler?: () => boolean | void | Promise<boolean>;
handler?: () => boolean | void | Promise<boolean | void>;
}

View File

@ -26,5 +26,5 @@ export interface ToastButton {
side?: 'start' | 'end';
role?: 'cancel' | string;
cssClass?: string | string[];
handler?: () => boolean | void | Promise<boolean>;
handler?: () => boolean | void | Promise<boolean | void>;
}