Skip to content

Commit

Permalink
fix leaky types
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Apr 24, 2021
1 parent 4f1e80c commit 617802e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions packages/material-ui/src/Table/Table.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ import { OverridableStringUnion } from '@material-ui/types';
import { Theme } from '..';
import { OverridableComponent, OverrideProps } from '../OverridableComponent';

export type Padding = 'default' | 'checkbox' | 'none';

export type Size = 'small' | 'medium';

export interface TablePropsSizeOverrides {}

export interface TableTypeMap<P = {}, D extends React.ElementType = 'table'> {
Expand All @@ -29,12 +25,12 @@ export interface TableTypeMap<P = {}, D extends React.ElementType = 'table'> {
* Allows TableCells to inherit padding of the Table.
* @default 'default'
*/
padding?: Padding;
padding?: 'default' | 'checkbox' | 'none';
/**
* Allows TableCells to inherit size of the Table.
* @default 'medium'
*/
size?: OverridableStringUnion<Size, TablePropsSizeOverrides>;
size?: OverridableStringUnion<'small' | 'medium', TablePropsSizeOverrides>;
/**
* Set the header sticky.
*
Expand Down

0 comments on commit 617802e

Please sign in to comment.