Skip to content

Commit

Permalink
[core] Remove unnecessary Required utility type from Typography fon…
Browse files Browse the repository at this point in the history
…t style type (#38203)
  • Loading branch information
ZeeshanTamboli committed Jul 29, 2023
1 parent c606154 commit 9dc13d3
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions packages/mui-material/src/styles/createTypography.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,15 @@ export type Variant =
| 'button'
| 'overline';

export interface FontStyle
extends Required<{
fontFamily: React.CSSProperties['fontFamily'];
fontSize: number;
fontWeightLight: React.CSSProperties['fontWeight'];
fontWeightRegular: React.CSSProperties['fontWeight'];
fontWeightMedium: React.CSSProperties['fontWeight'];
fontWeightBold: React.CSSProperties['fontWeight'];
htmlFontSize: number;
}> {}
export interface FontStyle {
fontFamily: React.CSSProperties['fontFamily'];
fontSize: number;
fontWeightLight: React.CSSProperties['fontWeight'];
fontWeightRegular: React.CSSProperties['fontWeight'];
fontWeightMedium: React.CSSProperties['fontWeight'];
fontWeightBold: React.CSSProperties['fontWeight'];
htmlFontSize: number;
}

export type NormalCssProperties = CSS.Properties<number | string>;
export type Fontface = CSS.AtRule.FontFace & { fallbacks?: CSS.AtRule.FontFace[] };
Expand Down

0 comments on commit 9dc13d3

Please sign in to comment.