修复ts报错
This commit is contained in:
parent
1b3033d73d
commit
6f1ccef6f1
|
@ -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