Skip to content

Commit

Permalink
fix: add empty interfaces to fix issue with typescript module augment…
Browse files Browse the repository at this point in the history
…ation
  • Loading branch information
yonatan0 committed Sep 24, 2024
1 parent 43c14e0 commit 3cc256e
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions packages/mui-system/src/createTheme/createTheme.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,22 @@ export {

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

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

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;
typography?: Typography;
zIndex?: Record<string, number>;
unstable_sxConfig?: SxConfig;
}
Expand All @@ -34,12 +39,12 @@ 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;
mixins?: Mixins;
typography?: Typography;
zIndex?: unknown;
applyStyles: ApplyStyles<'light' | 'dark'>;
unstable_sxConfig: SxConfig;
Expand Down

0 comments on commit 3cc256e

Please sign in to comment.