From 390eac2509a3438e91651f97711fb154e7daa09f Mon Sep 17 00:00:00 2001 From: Daniel Szczepanik Date: Sat, 3 Sep 2022 15:13:09 +0200 Subject: [PATCH] feat: accept dynamic theme type in useTheme hook --- typings/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typings/index.d.ts b/typings/index.d.ts index d2bb222..fd76d0e 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -15,7 +15,7 @@ export type ThemingType = { $Without & { theme?: $DeepPartial } > & hoistNonReactStatics.NonReactStatics; - useTheme(overrides?: $DeepPartial): Theme; + useTheme(overrides?: $DeepPartial): T; }; export const createTheming: (defaultTheme: Theme) => ThemingType;