UNPKG

382 BTypeScriptView Raw
1import React from 'react';
2import { ThemeProps } from './ThemeProvider';
3export interface ThemedComponent {
4 displayName: string;
5}
6declare function withTheme<P = {}, T = {}>(WrappedComponent: React.ComponentType<P & Partial<ThemeProps<T>>>, themeKey: string): React.FunctionComponent<Omit<P, keyof ThemeProps<T>>> | React.ForwardRefExoticComponent<P>;
7export default withTheme;