fix(modal): canDismiss type with data and role (#26547)

Resolves #26544
This commit is contained in:
Sean Perkins
2023-01-04 13:33:14 -05:00
committed by GitHub
parent c238ede622
commit 32c2622ab0

View File

@ -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;