Skip to content

Commit

Permalink
[docs] In Typescript doc, add missing createStyles to import (mui#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
TimeDropsSB authored and Joe Shelby committed Jul 14, 2018
1 parent 6ee01bf commit b064a95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/pages/guides/typescript/typescript.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ interface Props {
However this isn't very [DRY](https://en.wikipedia.org/wiki/Don%27t_repeat_yourself) because it requires you to maintain the class names (`'root'`, `'paper'`, `'button'`, ...) in two different places. We provide a type operator `WithStyles` to help with this, so that you can just write

```ts
import { WithStyles } from '@material-ui/core';
import { WithStyles, createStyles } from '@material-ui/core';

const styles = (theme: Theme) => createStyles({
root: { /* ... */ },
Expand Down

0 comments on commit b064a95

Please sign in to comment.