Skip to content

Commit

Permalink
removed CommonProps from @material-ui/types
Browse files Browse the repository at this point in the history
  • Loading branch information
mnajdova committed Oct 26, 2020
1 parent bdfd77f commit 41d7b2b
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions packages/material-ui-types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,20 +122,10 @@ export type DefaultComponentProps<M extends OverridableTypeMap> =
& Omit<React.ComponentPropsWithRef<M['defaultComponent']>, keyof BaseProps<M>>;

/**
* Props defined on the component (+ common material-ui props).
* Props defined on the component.
*/
// prettier-ignore
export type BaseProps<M extends OverridableTypeMap> =
& M['props']
& CommonProps;

/**
* Props that are valid for material-ui components.
*/
export interface CommonProps {
className?: string;
style?: React.CSSProperties;
}
export type BaseProps<M extends OverridableTypeMap> = M['props'];

export interface OverridableTypeMap {
props: {};
Expand Down

0 comments on commit 41d7b2b

Please sign in to comment.