-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c361a6e
commit 65002fc
Showing
2 changed files
with
9 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
import type { experimental_extendTheme } from '@mui/material/styles'; | ||
import type { Theme } from '@mui/material/styles'; | ||
import type {} from '@mui/material/themeCssVarsAugmentation'; | ||
import '@mui/zero-runtime/theme'; | ||
|
||
declare module '@mui/zero-runtime/theme' { | ||
export interface ThemeArgs { | ||
theme: ReturnType<typeof experimental_extendTheme> & { | ||
applyDarkStyles<T>(obj: T): Record<string, T>; | ||
theme: Omit<Theme, 'applyStyles'> & { | ||
applyStyles: ( | ||
colorScheme: 'light' | 'dark', | ||
styles: Record<string, any>, | ||
) => Record<string, any>; | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters