修复ts报错
This commit is contained in:
parent
241884f270
commit
2c90eacb0c
|
@ -124,7 +124,7 @@ export interface ThemeProps {
|
|||
}
|
||||
|
||||
export let defaultTheme: string = 'default';
|
||||
export const ThemeContext = React.createContext(undefined);
|
||||
export const ThemeContext = React.createContext('');
|
||||
|
||||
export function themeable<
|
||||
T extends React.ComponentType<React.ComponentProps<T> & ThemeProps> & {
|
||||
|
|
Loading…
Reference in New Issue