Skip to content

Commit

Permalink
export variant from create typography
Browse files Browse the repository at this point in the history
  • Loading branch information
aleccaputo committed Feb 13, 2020
1 parent 63cb5ba commit 1ed5965
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions packages/material-ui/src/Typography/Typography.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import * as React from 'react';
import { PropTypes } from '..';
import { OverrideProps, OverridableComponent } from '../OverridableComponent';
import { StandardProps, PropTypes } from '..';
import { OverrideProps, OverridableTypeMap, OverridableComponent } from '../OverridableComponent';
import { Variant as ThemeVariant } from '../styles/createTypography';

export type TypographyVariant = ThemeVariant | 'srOnly';
type Variant = ThemeVariant | 'srOnly';

export interface TypographyTypeMap<P = {}, D extends React.ElementType = 'span'> {
props: P & {
Expand All @@ -20,8 +20,8 @@ export interface TypographyTypeMap<P = {}, D extends React.ElementType = 'span'>
gutterBottom?: boolean;
noWrap?: boolean;
paragraph?: boolean;
variant?: TypographyVariant | 'inherit';
variantMapping?: Partial<Record<TypographyVariant, string>>;
variant?: Variant | 'inherit';
variantMapping?: Partial<Record<Variant, string>>;
};
defaultComponent: D;
classKey: TypographyClassKey;
Expand Down
2 changes: 1 addition & 1 deletion packages/material-ui/src/styles/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export {
SimplePaletteColorOptions,
} from './createPalette';
export { default as createStyles } from './createStyles';
export { TypographyStyle } from './createTypography';
export { TypographyStyle, Variant as TypographyVariant } from './createTypography';
export { default as makeStyles } from './makeStyles';
export { default as responsiveFontSizes } from './responsiveFontSizes';
export { ComponentsPropsList } from './props';
Expand Down

0 comments on commit 1ed5965

Please sign in to comment.