diff --git a/docs/src/pages/guides/typescript/typescript.md b/docs/src/pages/guides/typescript/typescript.md index c2b1255eb85ff3..8371737e4c01d9 100644 --- a/docs/src/pages/guides/typescript/typescript.md +++ b/docs/src/pages/guides/typescript/typescript.md @@ -242,8 +242,7 @@ And a custom theme factory with additional defaulted options: **./styles/createMyTheme**: ```ts -import { createMuiTheme } from '@material-ui/core/styles'; -import { ThemeOptions } from '@material-ui/core/styles/createMuiTheme'; +import { createMuiTheme, ThemeOptions } from '@material-ui/core/styles'; export default function createMyTheme(options: ThemeOptions) { return createMuiTheme({ diff --git a/packages/material-ui/src/styles/index.d.ts b/packages/material-ui/src/styles/index.d.ts index bb7805447d4a06..febaa62123e73c 100644 --- a/packages/material-ui/src/styles/index.d.ts +++ b/packages/material-ui/src/styles/index.d.ts @@ -1,5 +1,5 @@ export * from './colorManipulator'; -export { default as createMuiTheme, Theme, Direction } from './createMuiTheme'; +export { default as createMuiTheme, ThemeOptions, Theme, Direction } from './createMuiTheme'; export { default as createPalette, PaletteColorOptions,