Add Union to consider v4 & v5
Signed-off-by: Philipp Hugenroth <philipph@spotify.com>
This commit is contained in:
@@ -502,9 +502,14 @@ export const googleAuthApiRef: ApiRef<
|
||||
>;
|
||||
|
||||
// @public
|
||||
export type IconComponent = ComponentType<{
|
||||
fontSize?: 'inherit' | 'medium' | 'large' | 'small';
|
||||
}>;
|
||||
export type IconComponent = ComponentType<
|
||||
| {
|
||||
fontSize?: 'large' | 'small' | 'default';
|
||||
}
|
||||
| {
|
||||
fontSize?: 'medium' | 'large' | 'small';
|
||||
}
|
||||
>;
|
||||
|
||||
// @public
|
||||
export type IdentityApi = {
|
||||
|
||||
@@ -32,6 +32,14 @@ import { ComponentType } from 'react';
|
||||
*
|
||||
* @public
|
||||
*/
|
||||
export type IconComponent = ComponentType<{
|
||||
fontSize?: 'inherit' | 'medium' | 'large' | 'small';
|
||||
}>;
|
||||
|
||||
export type IconComponent = ComponentType<
|
||||
/* MUI v4 */
|
||||
| {
|
||||
fontSize?: 'large' | 'small' | 'default';
|
||||
}
|
||||
/* MUI v5: https://mui.com/material-ui/migration/v5-component-changes/#icon */
|
||||
| {
|
||||
fontSize?: 'medium' | 'large' | 'small';
|
||||
}
|
||||
>;
|
||||
|
||||
Reference in New Issue
Block a user