1 | import { Theme as DefaultTheme } from './createTheme';
|
2 | import { ClassNameMap, Styles, WithStylesOptions } from '@material-ui/styles/withStyles';
|
3 |
|
4 | import { Omit } from '@material-ui/types';
|
5 |
|
6 | export default function makeStyles<
|
7 | Theme = DefaultTheme,
|
8 | Props extends object = {},
|
9 | ClassKey extends string = string
|
10 | >(
|
11 | styles: Styles<Theme, Props, ClassKey>,
|
12 | options?: Omit<WithStylesOptions<Theme>, 'withTheme'>
|
13 | ): keyof Props extends never
|
14 | ? (props?: any) => ClassNameMap<ClassKey>
|
15 | : (props: Props) => ClassNameMap<ClassKey>;
|