mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27:41 +08:00
fix(modal): canDismiss type with data and role (#26547)
Resolves #26544
This commit is contained in:
@ -14,7 +14,7 @@ export interface ModalOptions<T extends ComponentRef = ComponentRef> {
|
||||
* @deprecated - To prevent modals from dismissing, use canDismiss instead.
|
||||
*/
|
||||
swipeToClose?: boolean;
|
||||
canDismiss?: boolean | (() => Promise<boolean>);
|
||||
canDismiss?: boolean | ((data?: any, role?: string) => Promise<boolean>);
|
||||
|
||||
mode?: Mode;
|
||||
keyboardClose?: boolean;
|
||||
|
||||
Reference in New Issue
Block a user