We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6cb5be commit 6a2a84cCopy full SHA for 6a2a84c
src/components/types/utils.ts
@@ -70,9 +70,11 @@ type CustomPropType<T extends keyof ITheme['components'], Key> = Extract<
70
// | CustomPropType<T, 'sizes'>
71
// | CustomPropType<T, 'defaultProps'>;
72
73
-export type CustomProps<T extends keyof ITheme['components']> = Exclude<
74
- {
75
- [Key in keyof ComponentTheme]: CustomPropType<T, Key>;
76
- }[keyof ComponentTheme],
77
- undefined
+export type CustomProps<T extends keyof ITheme['components']> = Partial<
+ Exclude<
+ {
+ [Key in keyof ComponentTheme]: CustomPropType<T, Key>;
+ }[keyof ComponentTheme],
78
+ undefined
79
+ >
80
>;
0 commit comments