fix(react): update icon types to be a string as well, fixes #20229 (#20230)

This commit is contained in:
Ely Lucas
2020-01-17 16:57:11 -07:00
parent 50dcab5c32
commit f971f76b4b
4 changed files with 5 additions and 5 deletions

View File

@ -6,7 +6,7 @@ export interface ActionSheetButton extends Omit<ActionSheetButtonCore, 'icon'> {
icon?: { icon?: {
ios: string; ios: string;
md: string; md: string;
}; } | string;
} }
export interface ActionSheetOptions extends Omit<ActionSheetOptionsCore, 'buttons'> { export interface ActionSheetOptions extends Omit<ActionSheetOptionsCore, 'buttons'> {

View File

@ -6,7 +6,7 @@ export interface ToastButton extends Omit<ToastButtonCore, 'icon'> {
icon?: { icon?: {
ios: string; ios: string;
md: string; md: string;
}; } | string;
} }
export interface ToastOptions extends Omit<ToastOptionsCore, 'buttons'> { export interface ToastOptions extends Omit<ToastOptionsCore, 'buttons'> {

View File

@ -8,11 +8,11 @@ export * from './proxies';
// createControllerComponent // createControllerComponent
export { IonAlert } from './IonAlert'; export { IonAlert } from './IonAlert';
export { IonLoading } from './IonLoading'; export { IonLoading } from './IonLoading';
export { IonToast } from './IonToast'; export * from './IonToast';
export { IonPicker } from './IonPicker'; export { IonPicker } from './IonPicker';
// createOverlayComponent // createOverlayComponent
export { IonActionSheet } from './IonActionSheet'; export * from './IonActionSheet';
export { IonModal } from './IonModal'; export { IonModal } from './IonModal';
export { IonPopover } from './IonPopover'; export { IonPopover } from './IonPopover';

View File

@ -9,7 +9,7 @@ type Props = Omit<LocalJSX.IonBackButton, 'icon'> & IonicReactProps & {
icon?: { icon?: {
ios: string; ios: string;
md: string; md: string;
}; } | string;
ref?: React.RefObject<HTMLIonBackButtonElement>; ref?: React.RefObject<HTMLIonBackButtonElement>;
}; };