From 29c10dea1e555359a000655614f8cf17e81bf6d7 Mon Sep 17 00:00:00 2001 From: Nitesh Singh Date: Thu, 12 Jun 2025 20:11:13 +0530 Subject: [PATCH] tighten typescript types --- types/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/index.d.ts b/types/index.d.ts index e7915d1..10894d5 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -184,9 +184,9 @@ declare module 'react-sweet-state' { /** * createStore */ - + function createStore< - TState extends object, + TState extends Record, TActions extends Record>, TContainerProps = unknown >(