Skip to content

Commit

Permalink
fixed type error
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarist committed Dec 4, 2024
1 parent 5909580 commit 149adf8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/react/src/theming.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ import hoistNonReactStatics from './_isolated-hnrs'
import { DistributiveOmit, PropsOf } from './types'

// tslint:disable-next-line: no-empty-interface
export interface Theme {}
export interface Theme {
color: string
}

export interface ThemeProviderProps {
theme: Partial<Theme> | ((outerTheme: Theme) => Theme)
Expand Down Expand Up @@ -58,7 +60,7 @@ const getTheme = (
}

let createCacheWithTheme = /* #__PURE__ */ weakMemoize((outerTheme: Theme) => {
return weakMemoize((theme: Theme) => {
return weakMemoize((theme: Partial<Theme> | ((theme: Theme) => Theme)) => {
return getTheme(outerTheme, theme)
})
})
Expand Down

0 comments on commit 149adf8

Please sign in to comment.