mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 03:00:58 +08:00
fix(alert): AlertButton role now has correct types (#23791)
This commit is contained in:
@ -44,7 +44,7 @@ export interface AlertInputAttributes extends JSXBase.InputHTMLAttributes<HTMLIn
|
|||||||
|
|
||||||
export interface AlertButton {
|
export interface AlertButton {
|
||||||
text: string;
|
text: string;
|
||||||
role?: string;
|
role?: 'cancel' | 'destructive' | string;
|
||||||
cssClass?: string | string[];
|
cssClass?: string | string[];
|
||||||
handler?: (value: any) => boolean | void | {[key: string]: any};
|
handler?: (value: any) => boolean | void | {[key: string]: any};
|
||||||
}
|
}
|
||||||
|
@ -48,7 +48,7 @@ Any of the defined [CSS Custom Properties](#css-custom-properties) can be used t
|
|||||||
```typescript
|
```typescript
|
||||||
interface AlertButton {
|
interface AlertButton {
|
||||||
text: string;
|
text: string;
|
||||||
role?: string;
|
role?: 'cancel' | 'destructive' | string;
|
||||||
cssClass?: string | string[];
|
cssClass?: string | string[];
|
||||||
handler?: (value: any) => boolean | void | {[key: string]: any};
|
handler?: (value: any) => boolean | void | {[key: string]: any};
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user