We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5909580 commit 149adf8Copy full SHA for 149adf8
packages/react/src/theming.tsx
@@ -5,7 +5,9 @@ import hoistNonReactStatics from './_isolated-hnrs'
5
import { DistributiveOmit, PropsOf } from './types'
6
7
// tslint:disable-next-line: no-empty-interface
8
-export interface Theme {}
+export interface Theme {
9
+ color: string
10
+}
11
12
export interface ThemeProviderProps {
13
theme: Partial<Theme> | ((outerTheme: Theme) => Theme)
@@ -58,7 +60,7 @@ const getTheme = (
58
60
}
59
61
62
let createCacheWithTheme = /* #__PURE__ */ weakMemoize((outerTheme: Theme) => {
- return weakMemoize((theme: Theme) => {
63
+ return weakMemoize((theme: Partial<Theme> | ((theme: Theme) => Theme)) => {
64
return getTheme(outerTheme, theme)
65
})
66
0 commit comments