forgeplus-react/node_modules/material-ui/styles/withTheme.d.ts

13 lines
304 B
TypeScript

import { Theme } from './createMuiTheme';
import { ConsistentWith } from '..';
export interface WithTheme {
theme: Theme;
}
declare const withTheme: () => <P extends ConsistentWith<WithTheme>>(
component: React.ComponentType<P & WithTheme>,
) => React.ComponentClass<P>;
export default withTheme;