mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 23:16:52 +08:00
fix(toast, action-sheet): allow button handler to return Promise<void> (#21259)
This commit is contained in:
@ -21,5 +21,5 @@ export interface ActionSheetButton {
|
|||||||
role?: 'cancel' | 'destructive' | 'selected' | string;
|
role?: 'cancel' | 'destructive' | 'selected' | string;
|
||||||
icon?: string;
|
icon?: string;
|
||||||
cssClass?: string | string[];
|
cssClass?: string | string[];
|
||||||
handler?: () => boolean | void | Promise<boolean>;
|
handler?: () => boolean | void | Promise<boolean | void>;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -26,5 +26,5 @@ export interface ToastButton {
|
|||||||
side?: 'start' | 'end';
|
side?: 'start' | 'end';
|
||||||
role?: 'cancel' | string;
|
role?: 'cancel' | string;
|
||||||
cssClass?: string | string[];
|
cssClass?: string | string[];
|
||||||
handler?: () => boolean | void | Promise<boolean>;
|
handler?: () => boolean | void | Promise<boolean | void>;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user