diff --git a/packages/material-ui-lab/src/Autocomplete/Autocomplete.d.ts b/packages/material-ui-lab/src/Autocomplete/Autocomplete.d.ts index 87e6876a38c729..d5a61410dd626a 100644 --- a/packages/material-ui-lab/src/Autocomplete/Autocomplete.d.ts +++ b/packages/material-ui-lab/src/Autocomplete/Autocomplete.d.ts @@ -208,5 +208,5 @@ export type AutocompleteClassKey = * - [Autocomplete API](https://material-ui.com/api/autocomplete/) */ export default function Autocomplete( - props: AutocompleteProps & UseAutocompleteProps, + props: AutocompleteProps & UseAutocompleteProps ): JSX.Element; diff --git a/packages/material-ui-lab/src/Pagination/Pagination.d.ts b/packages/material-ui-lab/src/Pagination/Pagination.d.ts index 2f7294c36798ca..bea6dfaa93c22b 100644 --- a/packages/material-ui-lab/src/Pagination/Pagination.d.ts +++ b/packages/material-ui-lab/src/Pagination/Pagination.d.ts @@ -22,7 +22,7 @@ export interface PaginationProps getItemAriaLabel?: ( type: 'page' | 'first' | 'last' | 'next' | 'previous', page: number, - selected: boolean, + selected: boolean ) => string; /** * Render the item. diff --git a/packages/material-ui-lab/src/useAutocomplete/useAutocomplete.d.ts b/packages/material-ui-lab/src/useAutocomplete/useAutocomplete.d.ts index 821e062b11c9c0..2e390bceecc8b8 100644 --- a/packages/material-ui-lab/src/useAutocomplete/useAutocomplete.d.ts +++ b/packages/material-ui-lab/src/useAutocomplete/useAutocomplete.d.ts @@ -15,7 +15,7 @@ export interface FilterOptionsState { } export function createFilterOptions( - config?: CreateFilterOptionsConfig, + config?: CreateFilterOptionsConfig ): (options: T[], state: FilterOptionsState) => T[]; export interface UseAutocompleteCommonProps { @@ -143,7 +143,7 @@ export interface UseAutocompleteCommonProps { onInputChange?: ( event: React.ChangeEvent<{}>, value: string, - reason: AutocompleteInputChangeReason, + reason: AutocompleteInputChangeReason ) => void; /** * Callback fired when the popup requests to be opened. @@ -210,7 +210,7 @@ export interface UseAutocompleteMultipleProps extends UseAutocompleteCommonPr event: React.ChangeEvent<{}>, value: T[], reason: AutocompleteChangeReason, - details?: AutocompleteChangeDetails, + details?: AutocompleteChangeDetails ) => void; } @@ -241,7 +241,7 @@ export interface UseAutocompleteSingleProps extends UseAutocompleteCommonProp event: React.ChangeEvent<{}>, value: T | null, reason: AutocompleteChangeReason, - details?: AutocompleteChangeDetails, + details?: AutocompleteChangeDetails ) => void; } @@ -250,7 +250,7 @@ export type UseAutocompleteProps = | UseAutocompleteMultipleProps; export default function useAutocomplete( - props: UseAutocompleteProps, + props: UseAutocompleteProps ): { getRootProps: () => {}; getInputProps: () => {}; diff --git a/packages/material-ui-styles/src/ThemeProvider/ThemeProvider.d.ts b/packages/material-ui-styles/src/ThemeProvider/ThemeProvider.d.ts index e0bbb10f1f3a90..6bed1d7713d610 100644 --- a/packages/material-ui-styles/src/ThemeProvider/ThemeProvider.d.ts +++ b/packages/material-ui-styles/src/ThemeProvider/ThemeProvider.d.ts @@ -5,5 +5,5 @@ export interface ThemeProviderProps { theme: Partial | ((outerTheme: Theme) => Theme); } export default function ThemeProvider( - props: ThemeProviderProps, + props: ThemeProviderProps ): React.ReactElement>; diff --git a/packages/material-ui-styles/src/createStyles/createStyles.d.ts b/packages/material-ui-styles/src/createStyles/createStyles.d.ts index bdf32029e42caa..fbcbc0ac7a70df 100644 --- a/packages/material-ui-styles/src/createStyles/createStyles.d.ts +++ b/packages/material-ui-styles/src/createStyles/createStyles.d.ts @@ -12,5 +12,5 @@ import { StyleRules } from '@material-ui/styles/withStyles'; // See https://github.com/mui-org/material-ui/issues/15942 // and https://github.com/microsoft/TypeScript/issues/31735 export default function createStyles( - styles: StyleRules, + styles: StyleRules ): StyleRules; diff --git a/packages/material-ui-styles/src/getStylesCreator/getStylesCreator.d.ts b/packages/material-ui-styles/src/getStylesCreator/getStylesCreator.d.ts index 6d52de78fce75a..35dec50e28fef2 100644 --- a/packages/material-ui-styles/src/getStylesCreator/getStylesCreator.d.ts +++ b/packages/material-ui-styles/src/getStylesCreator/getStylesCreator.d.ts @@ -7,5 +7,5 @@ export interface StylesCreator>( - style: S, + style: S ): StylesCreator; diff --git a/packages/material-ui-styles/src/makeStyles/makeStyles.d.ts b/packages/material-ui-styles/src/makeStyles/makeStyles.d.ts index aa91cc7a67c908..f1ffc3d4b23055 100644 --- a/packages/material-ui-styles/src/makeStyles/makeStyles.d.ts +++ b/packages/material-ui-styles/src/makeStyles/makeStyles.d.ts @@ -12,7 +12,7 @@ import { DefaultTheme } from '../defaultTheme'; */ export default function makeStyles( style: Styles, - options?: Omit, 'withTheme'>, + options?: Omit, 'withTheme'> ): (props?: any) => ClassNameMap; /** * `makeStyles` where the passed `styles` do depend on props @@ -23,5 +23,5 @@ export default function makeStyles< ClassKey extends string = string >( styles: Styles, - options?: Omit, 'withTheme'>, + options?: Omit, 'withTheme'> ): (props: Props) => ClassNameMap; diff --git a/packages/material-ui-styles/src/styled/styled.d.ts b/packages/material-ui-styles/src/styled/styled.d.ts index e409c1a227416f..9578dc29d5ca35 100644 --- a/packages/material-ui-styles/src/styled/styled.d.ts +++ b/packages/material-ui-styles/src/styled/styled.d.ts @@ -17,7 +17,7 @@ export type ComponentCreator = < styles: | CreateCSSProperties | ((props: { theme: Theme } & Props) => CreateCSSProperties), - options?: WithStylesOptions, + options?: WithStylesOptions ) => React.ComponentType< Omit< JSX.LibraryManagedAttributes>, @@ -33,5 +33,5 @@ export interface StyledProps { } export default function styled( - Component: Component, + Component: Component ): ComponentCreator; diff --git a/packages/material-ui-styles/src/withStyles/withStyles.d.ts b/packages/material-ui-styles/src/withStyles/withStyles.d.ts index 0e3bf8ad1a6338..f6fcd0f2dee94f 100644 --- a/packages/material-ui-styles/src/withStyles/withStyles.d.ts +++ b/packages/material-ui-styles/src/withStyles/withStyles.d.ts @@ -64,7 +64,7 @@ export type StyleRules = ( - theme: Theme, + theme: Theme ) => StyleRules; export type Styles = @@ -123,7 +123,7 @@ export default function withStyles< Options extends WithStylesOptions> = {} >( style: StylesType, - options?: Options, + options?: Options ): PropInjector< WithStyles, StyledComponentProps> & PropsOfStyles diff --git a/packages/material-ui-styles/src/withTheme/withTheme.d.ts b/packages/material-ui-styles/src/withTheme/withTheme.d.ts index cac9fc6a451647..0ae49c9c8de398 100644 --- a/packages/material-ui-styles/src/withTheme/withTheme.d.ts +++ b/packages/material-ui-styles/src/withTheme/withTheme.d.ts @@ -21,14 +21,14 @@ export interface ThemedComponentProps extends Partial { } export function withThemeCreator( - option?: WithThemeCreatorOption, + option?: WithThemeCreatorOption ): PropInjector, ThemedComponentProps>; export default function withTheme< Theme, C extends React.ComponentType, WithTheme>> >( - component: C, + component: C ): React.ComponentType< Omit>, keyof WithTheme> & Partial> & diff --git a/packages/material-ui-system/src/index.d.ts b/packages/material-ui-system/src/index.d.ts index 7bb156580bef1d..419bf11bf61c82 100644 --- a/packages/material-ui-system/src/index.d.ts +++ b/packages/material-ui-system/src/index.d.ts @@ -35,7 +35,7 @@ type DefaultBreakPoints = 'xs' | 'sm' | 'md' | 'lg' | 'xl'; * @returns An enhanced stylefunction that considers breakpoints */ export function breakpoints( - styleFunction: StyleFunction, + styleFunction: StyleFunction ): StyleFunction>>; // compose.js @@ -55,7 +55,7 @@ export function compose>>(...args: T): Compos // css.js export function css( - styleFunction: StyleFunction, + styleFunction: StyleFunction ): StyleFunction }>; export const display: SimpleStyleFunction< @@ -180,7 +180,7 @@ export interface StyleOptions { transform?: (cssValue: unknown) => number | string | React.CSSProperties; } export function style( - options: StyleOptions, + options: StyleOptions ): StyleFunction<{ [K in PropKey]?: unknown } & { theme: Theme }>; // typography.js diff --git a/packages/material-ui-types/index.d.ts b/packages/material-ui-types/index.d.ts index d086905e7c3fb1..e1cbf70146b4fc 100644 --- a/packages/material-ui-types/index.d.ts +++ b/packages/material-ui-types/index.d.ts @@ -25,7 +25,7 @@ export type ConsistentWith = { export type PropInjector = < C extends React.ComponentType, InjectedProps>> >( - component: C, + component: C ) => React.ComponentType< Omit>, keyof InjectedProps> & AdditionalProps diff --git a/packages/material-ui/src/Backdrop/Backdrop.d.ts b/packages/material-ui/src/Backdrop/Backdrop.d.ts index 9f309a944b82d8..40ec74bd313ec0 100644 --- a/packages/material-ui/src/Backdrop/Backdrop.d.ts +++ b/packages/material-ui/src/Backdrop/Backdrop.d.ts @@ -1,5 +1,5 @@ import * as React from 'react'; -import { StandardProps } from '..'; +import { Omit, StandardProps } from '..'; import { FadeProps } from '../Fade'; import { TransitionProps } from '../transitions/transition'; diff --git a/packages/material-ui/src/Box/Box.d.ts b/packages/material-ui/src/Box/Box.d.ts index 22d375fed9680e..2eb664df6c9d61 100644 --- a/packages/material-ui/src/Box/Box.d.ts +++ b/packages/material-ui/src/Box/Box.d.ts @@ -26,7 +26,7 @@ type BoxStyleFunction = ComposedStyleFunction< typeof shadows, typeof sizing, typeof spacing, - typeof typography, + typeof typography ] >; diff --git a/packages/material-ui/src/ButtonBase/ButtonBase.d.ts b/packages/material-ui/src/ButtonBase/ButtonBase.d.ts index 9bbe235d87c2f5..6d8b9f6456545b 100644 --- a/packages/material-ui/src/ButtonBase/ButtonBase.d.ts +++ b/packages/material-ui/src/ButtonBase/ButtonBase.d.ts @@ -34,7 +34,7 @@ export interface ExtendButtonBaseTypeMap { } export type ExtendButtonBase = (( - props: { href: string } & OverrideProps, 'a'>, + props: { href: string } & OverrideProps, 'a'> ) => JSX.Element) & OverridableComponent>; diff --git a/packages/material-ui/src/CardHeader/CardHeader.d.ts b/packages/material-ui/src/CardHeader/CardHeader.d.ts index 61873bb281abc5..836d81a13baf80 100644 --- a/packages/material-ui/src/CardHeader/CardHeader.d.ts +++ b/packages/material-ui/src/CardHeader/CardHeader.d.ts @@ -50,7 +50,7 @@ export interface OverridableCardHeader extends OverridableComponent, + > ): JSX.Element; } diff --git a/packages/material-ui/src/Fade/Fade.d.ts b/packages/material-ui/src/Fade/Fade.d.ts index 6b13062a191407..fa9fdd99f4fe3d 100644 --- a/packages/material-ui/src/Fade/Fade.d.ts +++ b/packages/material-ui/src/Fade/Fade.d.ts @@ -1,4 +1,5 @@ import * as React from 'react'; +import { Omit } from '..'; import { TransitionProps } from '../transitions/transition'; export interface FadeProps extends Omit { diff --git a/packages/material-ui/src/Select/SelectInput.d.ts b/packages/material-ui/src/Select/SelectInput.d.ts index 979096b7486d32..5da3c2e93ef67d 100644 --- a/packages/material-ui/src/Select/SelectInput.d.ts +++ b/packages/material-ui/src/Select/SelectInput.d.ts @@ -7,7 +7,7 @@ export interface SelectInputProps { disabled?: boolean; IconComponent?: React.ElementType; inputRef?: ( - ref: HTMLSelectElement | { node: HTMLInputElement; value: SelectInputProps['value'] }, + ref: HTMLSelectElement | { node: HTMLInputElement; value: SelectInputProps['value'] } ) => void; MenuProps?: Partial; multiple: boolean; @@ -16,7 +16,7 @@ export interface SelectInputProps { onBlur?: React.FocusEventHandler; onChange?: ( event: React.ChangeEvent<{ name?: string; value: unknown }>, - child: React.ReactNode, + child: React.ReactNode ) => void; onClose?: (event: React.ChangeEvent<{}>) => void; onFocus?: React.FocusEventHandler; diff --git a/packages/material-ui/src/TextareaAutosize/TextareaAutosize.d.ts b/packages/material-ui/src/TextareaAutosize/TextareaAutosize.d.ts index 6d9cfeb503f874..3a4a7b35b333ff 100644 --- a/packages/material-ui/src/TextareaAutosize/TextareaAutosize.d.ts +++ b/packages/material-ui/src/TextareaAutosize/TextareaAutosize.d.ts @@ -1,4 +1,5 @@ import * as React from 'react'; +import { Omit } from '..'; export interface TextareaAutosizeProps extends Omit, 'children' | 'rows'> { diff --git a/packages/material-ui/src/styles/createMixins.d.ts b/packages/material-ui/src/styles/createMixins.d.ts index cbf7aced080d69..02880c8d271b00 100644 --- a/packages/material-ui/src/styles/createMixins.d.ts +++ b/packages/material-ui/src/styles/createMixins.d.ts @@ -15,5 +15,5 @@ export interface MixinsOptions extends Partial { export default function createMixins( breakpoints: Breakpoints, spacing: Spacing, - mixins: MixinsOptions, + mixins: MixinsOptions ): Mixins; diff --git a/packages/material-ui/src/styles/createPalette.d.ts b/packages/material-ui/src/styles/createPalette.d.ts index 1e8cf9893fdfbe..05fbb0d6495abd 100644 --- a/packages/material-ui/src/styles/createPalette.d.ts +++ b/packages/material-ui/src/styles/createPalette.d.ts @@ -86,7 +86,7 @@ export interface Palette { color: ColorPartial, mainShade?: number | string, lightShade?: number | string, - darkShade?: number | string, + darkShade?: number | string ): PaletteColor; (color: PaletteColorOptions): PaletteColor; }; diff --git a/packages/material-ui/src/styles/createSpacing.d.ts b/packages/material-ui/src/styles/createSpacing.d.ts index bce50f88a6e3ac..25a3fed7c43cd3 100644 --- a/packages/material-ui/src/styles/createSpacing.d.ts +++ b/packages/material-ui/src/styles/createSpacing.d.ts @@ -11,7 +11,7 @@ export interface Spacing { top: SpacingArgument, right: SpacingArgument, bottom: SpacingArgument, - left: SpacingArgument, + left: SpacingArgument ): string; } diff --git a/packages/material-ui/src/styles/createTypography.d.ts b/packages/material-ui/src/styles/createTypography.d.ts index 8bdcd0da96c225..42243fb6b03155 100644 --- a/packages/material-ui/src/styles/createTypography.d.ts +++ b/packages/material-ui/src/styles/createTypography.d.ts @@ -49,5 +49,5 @@ export interface TypographyOptions export default function createTypography( palette: Palette, - typography: TypographyOptions | ((palette: Palette) => TypographyOptions), + typography: TypographyOptions | ((palette: Palette) => TypographyOptions) ): Typography; diff --git a/packages/material-ui/src/styles/makeStyles.d.ts b/packages/material-ui/src/styles/makeStyles.d.ts index d7702ab3c204bd..0581923403e100 100644 --- a/packages/material-ui/src/styles/makeStyles.d.ts +++ b/packages/material-ui/src/styles/makeStyles.d.ts @@ -8,7 +8,7 @@ import { Omit } from '@material-ui/types'; */ export default function makeStyles( style: Styles, - options?: Omit, 'withTheme'>, + options?: Omit, 'withTheme'> ): (props?: any) => ClassNameMap; /** * `makeStyles` where the passed `styles` do depend on props @@ -19,5 +19,5 @@ export default function makeStyles< ClassKey extends string = string >( styles: Styles, - options?: Omit, 'withTheme'>, + options?: Omit, 'withTheme'> ): (props: Props) => ClassNameMap; diff --git a/packages/material-ui/src/styles/responsiveFontSizes.d.ts b/packages/material-ui/src/styles/responsiveFontSizes.d.ts index d2c154192ce539..309d3382b9313d 100644 --- a/packages/material-ui/src/styles/responsiveFontSizes.d.ts +++ b/packages/material-ui/src/styles/responsiveFontSizes.d.ts @@ -11,5 +11,5 @@ export interface ResponsiveFontSizesOptions { export default function responsiveFontSizes( theme: Theme, - options?: ResponsiveFontSizesOptions, + options?: ResponsiveFontSizesOptions ): Theme; diff --git a/packages/material-ui/src/styles/shadows.d.ts b/packages/material-ui/src/styles/shadows.d.ts index 2f7e30929183d7..0b8c2396e63934 100644 --- a/packages/material-ui/src/styles/shadows.d.ts +++ b/packages/material-ui/src/styles/shadows.d.ts @@ -23,7 +23,7 @@ export type Shadows = [ string, string, string, - string, + string ]; declare const shadows: Shadows; export default shadows; diff --git a/packages/material-ui/src/styles/styled.d.ts b/packages/material-ui/src/styles/styled.d.ts index 0f186a6c50d04d..0414fde1bfd65c 100644 --- a/packages/material-ui/src/styles/styled.d.ts +++ b/packages/material-ui/src/styles/styled.d.ts @@ -21,7 +21,7 @@ export type ComponentCreator = < styles: | CreateCSSProperties | ((props: { theme: Theme } & Props) => CreateCSSProperties), - options?: WithStylesOptions, + options?: WithStylesOptions ) => React.ComponentType< Omit< JSX.LibraryManagedAttributes>, @@ -37,5 +37,5 @@ export interface StyledProps { } export default function styled( - Component: Component, + Component: Component ): ComponentCreator; diff --git a/packages/material-ui/src/styles/transitions.d.ts b/packages/material-ui/src/styles/transitions.d.ts index 2e7a4d10df8cd7..ed19f0384ca124 100644 --- a/packages/material-ui/src/styles/transitions.d.ts +++ b/packages/material-ui/src/styles/transitions.d.ts @@ -24,7 +24,7 @@ export interface Transitions { duration: Duration; create( props: string | string[], - options?: Partial<{ duration: number | string; easing: string; delay: number | string }>, + options?: Partial<{ duration: number | string; easing: string; delay: number | string }> ): string; getAutoHeightDuration(height: number): number; } @@ -34,7 +34,7 @@ export interface TransitionsOptions { duration?: Partial; create?: ( props: string | string[], - options?: Partial<{ duration: number | string; easing: string; delay: number | string }>, + options?: Partial<{ duration: number | string; easing: string; delay: number | string }> ) => string; getAutoHeightDuration?: (height: number) => number; } diff --git a/packages/material-ui/src/styles/withStyles.d.ts b/packages/material-ui/src/styles/withStyles.d.ts index af3dac2f00e73a..6b0b2ed5879eae 100644 --- a/packages/material-ui/src/styles/withStyles.d.ts +++ b/packages/material-ui/src/styles/withStyles.d.ts @@ -48,5 +48,5 @@ export default function withStyles< Props extends object = {} >( style: Styles, - options?: Options, + options?: Options ): PropInjector, StyledComponentProps & Props>; diff --git a/packages/material-ui/src/test-utils/createMount.d.ts b/packages/material-ui/src/test-utils/createMount.d.ts index 9083d86706eabd..3a513928c94395 100644 --- a/packages/material-ui/src/test-utils/createMount.d.ts +++ b/packages/material-ui/src/test-utils/createMount.d.ts @@ -6,7 +6,7 @@ export interface MountOptions { } export default function createMount( - options?: Partial, + options?: Partial ): typeof mount & { attachTo: HTMLElement; cleanUp(): void; diff --git a/packages/material-ui/src/test-utils/getClasses.d.ts b/packages/material-ui/src/test-utils/getClasses.d.ts index 616346e61c64cf..9b7a28b7694586 100644 --- a/packages/material-ui/src/test-utils/getClasses.d.ts +++ b/packages/material-ui/src/test-utils/getClasses.d.ts @@ -1,4 +1,4 @@ export default function getClasses( element: React.ReactElement, - options?: Partial<{ withTheme: boolean }>, + options?: Partial<{ withTheme: boolean }> ): T; diff --git a/packages/material-ui/src/test-utils/until.d.ts b/packages/material-ui/src/test-utils/until.d.ts index 9b36abee263d4a..232340474b3465 100644 --- a/packages/material-ui/src/test-utils/until.d.ts +++ b/packages/material-ui/src/test-utils/until.d.ts @@ -2,5 +2,5 @@ import { CommonWrapper } from 'enzyme'; export default function until

( selector: string, - options: { context: any }, + options: { context: any } ): CommonWrapper; diff --git a/packages/material-ui/src/useMediaQuery/useMediaQuery.d.ts b/packages/material-ui/src/useMediaQuery/useMediaQuery.d.ts index 38cfde87e7dd5a..869cd186516e01 100644 --- a/packages/material-ui/src/useMediaQuery/useMediaQuery.d.ts +++ b/packages/material-ui/src/useMediaQuery/useMediaQuery.d.ts @@ -18,5 +18,5 @@ export interface Options { export default function useMediaQuery( query: string | ((theme: Theme) => string), - options?: Options, + options?: Options ): boolean; diff --git a/packages/material-ui/src/utils/debounce.d.ts b/packages/material-ui/src/utils/debounce.d.ts index a284c7af435baf..ead5017e3d59cc 100644 --- a/packages/material-ui/src/utils/debounce.d.ts +++ b/packages/material-ui/src/utils/debounce.d.ts @@ -4,5 +4,5 @@ export interface Cancelable { export default function debounce any>( func: T, - wait?: number, + wait?: number ): T & Cancelable; diff --git a/packages/material-ui/src/utils/setRef.d.ts b/packages/material-ui/src/utils/setRef.d.ts index c96db8763707bc..fb838c6cbc6d8c 100644 --- a/packages/material-ui/src/utils/setRef.d.ts +++ b/packages/material-ui/src/utils/setRef.d.ts @@ -12,5 +12,5 @@ */ export default function setRef( ref: React.RefObject | ((instance: T | null) => void) | null | undefined, - value: T | null, + value: T | null ): void; diff --git a/packages/material-ui/src/utils/unsupportedProp.d.ts b/packages/material-ui/src/utils/unsupportedProp.d.ts index e26087c2c7daea..e08c9a729fccab 100644 --- a/packages/material-ui/src/utils/unsupportedProp.d.ts +++ b/packages/material-ui/src/utils/unsupportedProp.d.ts @@ -3,5 +3,5 @@ export default function unsupportedProp( propName: string, componentName: string, location: string, - propFullName: string, + propFullName: string ): Error | null; diff --git a/packages/material-ui/src/withMobileDialog/withMobileDialog.d.ts b/packages/material-ui/src/withMobileDialog/withMobileDialog.d.ts index dc1b1eda7e2a21..fed68f6668aa72 100644 --- a/packages/material-ui/src/withMobileDialog/withMobileDialog.d.ts +++ b/packages/material-ui/src/withMobileDialog/withMobileDialog.d.ts @@ -16,5 +16,5 @@ export interface WithMobileDialog extends WithWidth { export interface InjectedProps extends WithMobileDialog {} export default function withMobileDialog

( - options?: WithMobileDialogOptions, + options?: WithMobileDialogOptions ): PropInjector>; diff --git a/packages/material-ui/src/withWidth/withWidth.d.ts b/packages/material-ui/src/withWidth/withWidth.d.ts index 1f8e2522ef5117..64669acfd1abc0 100644 --- a/packages/material-ui/src/withWidth/withWidth.d.ts +++ b/packages/material-ui/src/withWidth/withWidth.d.ts @@ -19,15 +19,15 @@ export interface WithWidthProps extends Partial { export function isWidthDown( breakpoint: Breakpoint, screenWidth: Breakpoint, - inclusive?: boolean, + inclusive?: boolean ): boolean; export function isWidthUp( breakpoint: Breakpoint, screenWidth: Breakpoint, - inclusive?: boolean, + inclusive?: boolean ): boolean; export default function withWidth( - options?: WithWidthOptions, + options?: WithWidthOptions ): PropInjector; diff --git a/prettier.config.js b/prettier.config.js index 3c0f46c13c1422..cadce92889f02a 100644 --- a/prettier.config.js +++ b/prettier.config.js @@ -2,4 +2,13 @@ module.exports = { printWidth: 100, singleQuote: true, trailingComma: 'all', + overrides: [ + { + files: '*.d.ts', + options: { + // This is needed for TypeScript 3.2 support + trailingComma: 'es5', + }, + }, + ], };