From dc6add665e8e0400554cb3f169ddcb9b7a49651a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Burzy=C5=84ski?= Date: Wed, 4 Dec 2024 11:08:15 +0100 Subject: [PATCH] fixed type error --- packages/react/src/theming.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react/src/theming.tsx b/packages/react/src/theming.tsx index e6db452cf..dd513d033 100644 --- a/packages/react/src/theming.tsx +++ b/packages/react/src/theming.tsx @@ -58,7 +58,7 @@ const getTheme = ( } let createCacheWithTheme = /* #__PURE__ */ weakMemoize((outerTheme: Theme) => { - return weakMemoize((theme: Theme) => { + return weakMemoize((theme: Partial | ((theme: Theme) => Theme)) => { return getTheme(outerTheme, theme) }) })