fix(alert): AlertButton role now has correct types (#23791)

This commit is contained in:
Liam DeBeasi
2021-08-18 13:43:12 -04:00
committed by GitHub
parent 34b150e5e7
commit 864212b0f2
2 changed files with 2 additions and 2 deletions

View File

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

View File

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