Skip to content

Commit

Permalink
[system] Add empty interfaces to fix issue with typescript module aug…
Browse files Browse the repository at this point in the history
…mentation (#43873)
  • Loading branch information
yonatan0 authored Oct 3, 2024
1 parent 094b967 commit e430fcc
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions packages/mui-system/src/createTheme/createTheme.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,24 @@ export {

export type Direction = 'ltr' | 'rtl';

export interface Typography {}
export interface Mixins {}
export interface Shadows {}
export interface Transitions {}
export interface ZIndex {}

export interface ThemeOptions {
shape?: ShapeOptions;
breakpoints?: BreakpointsOptions;
direction?: Direction;
mixins?: unknown;
mixins?: Mixins;
palette?: Record<string, any>;
shadows?: unknown;
shadows?: Shadows;
spacing?: SpacingOptions;
transitions?: unknown;
transitions?: Transitions;
components?: Record<string, any>;
typography?: unknown;
zIndex?: Record<string, number>;
typography?: Typography;
zIndex?: ZIndex;
unstable_sxConfig?: SxConfig;
}

Expand All @@ -34,13 +40,13 @@ export interface Theme extends CssContainerQueries {
breakpoints: Breakpoints;
direction: Direction;
palette: Record<string, any> & { mode: 'light' | 'dark' };
shadows?: unknown;
shadows?: Shadows;
spacing: Spacing;
transitions?: unknown;
transitions?: Transitions;
components?: Record<string, any>;
mixins?: unknown;
typography?: unknown;
zIndex?: unknown;
mixins?: Mixins;
typography?: Typography;
zIndex?: ZIndex;
applyStyles: ApplyStyles<'light' | 'dark'>;
unstable_sxConfig: SxConfig;
unstable_sx: (props: SxProps<Theme>) => CSSObject;
Expand Down

0 comments on commit e430fcc

Please sign in to comment.