Add Union to consider v4 & v5

Signed-off-by: Philipp Hugenroth <philipph@spotify.com>
This commit is contained in:
Philipp Hugenroth
2023-06-22 12:41:47 +02:00
parent d43de19df9
commit 0e9d7d70e4
2 changed files with 19 additions and 6 deletions
+8 -3
View File
@@ -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 = {
+11 -3
View File
@@ -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';
}
>;