From 226e2bf5d935cb4340cddfa06d7ba6ad87fd84bb Mon Sep 17 00:00:00 2001 From: Anthony Tsang Date: Tue, 1 Jan 2019 18:43:27 +0900 Subject: [PATCH 1/2] [withWidth] Add missing options to typescript definition. --- packages/material-ui/src/withWidth/withWidth.d.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/material-ui/src/withWidth/withWidth.d.ts b/packages/material-ui/src/withWidth/withWidth.d.ts index 194665efbbe41b..218f661a113c79 100644 --- a/packages/material-ui/src/withWidth/withWidth.d.ts +++ b/packages/material-ui/src/withWidth/withWidth.d.ts @@ -2,7 +2,10 @@ import { Breakpoint } from '../styles/createBreakpoints'; import { PropInjector } from '..'; export interface WithWidthOptions { - resizeInterval: number; + withTheme?: boolean; + noSSR?: boolean; + initialWidth?: Breakpoint; + resizeInterval?: number; } export interface WithWidth { From f945df232207784c13701317506bb32f0a1b14e8 Mon Sep 17 00:00:00 2001 From: Anthony Tsang Date: Tue, 1 Jan 2019 18:44:10 +0900 Subject: [PATCH 2/2] [createMuiTheme] Add MuiWithWidth props to typescript definition. --- packages/material-ui/src/styles/props.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/material-ui/src/styles/props.d.ts b/packages/material-ui/src/styles/props.d.ts index 3f6a730f4be392..51ecf6fa6aa760 100644 --- a/packages/material-ui/src/styles/props.d.ts +++ b/packages/material-ui/src/styles/props.d.ts @@ -84,6 +84,7 @@ import { ToolbarProps } from '../Toolbar'; import { TooltipProps } from '../Tooltip'; import { TouchRippleProps } from '../ButtonBase/TouchRipple'; import { TypographyProps } from '../Typography'; +import { WithWidthOptions } from '../withWidth'; export type ComponentsProps = { [Name in keyof ComponentsPropsList]?: Partial @@ -173,4 +174,5 @@ export interface ComponentsPropsList { MuiTooltip: TooltipProps; MuiTouchRipple: TouchRippleProps; MuiTypography: TypographyProps; + MuiWithWidth: WithWidthOptions; }