From cf04d6843109ae29611cc4fc1afedd3e0673a52c Mon Sep 17 00:00:00 2001 From: unadlib Date: Wed, 27 Dec 2023 08:07:17 +0800 Subject: [PATCH] fix(type): fix type for usm-redux --- packages/usm-redux/src/createStore.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/packages/usm-redux/src/createStore.ts b/packages/usm-redux/src/createStore.ts index e10f278..000d1c1 100644 --- a/packages/usm-redux/src/createStore.ts +++ b/packages/usm-redux/src/createStore.ts @@ -3,7 +3,7 @@ import { createStore as createStoreWithRedux, combineReducers, ReducersMapObject, - PreloadedState, + Reducer, Store as ReduxStore, } from 'redux'; import { @@ -28,7 +28,7 @@ import { export const createStore = ( options: StoreOptions, - preloadedState?: PreloadedState, + preloadedState?: any, config: Config = {} ) => { const { @@ -165,11 +165,6 @@ export const createStore = ( enumerable: false, value: strict, }, - [strictKey]: { - configurable: false, - enumerable: false, - value: strict, - }, [enablePatchesKey]: { configurable: false, enumerable: false,