From 9393ee39b81163d49e630abbc8bcd259f2b84fa7 Mon Sep 17 00:00:00 2001 From: Ben Durrant Date: Thu, 14 Mar 2024 14:56:49 +0000 Subject: [PATCH] remove unnecessary assertion --- src/createStore.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/createStore.ts b/src/createStore.ts index 7cfc044d88..90a1ed71f7 100644 --- a/src/createStore.ts +++ b/src/createStore.ts @@ -3,7 +3,6 @@ import $$observable from './utils/symbol-observable' import type { Store, StoreEnhancer, - Dispatch, Observer, ListenerCallback, UnknownIfNonSpecific @@ -399,7 +398,7 @@ export function createStore< initialState = currentState const store = { - dispatch: dispatch as Dispatch, + dispatch, subscribe, getState, getInitialState,