File tree 3 files changed +8
-1
lines changed
3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 69
69
"stylelint-config-idiomatic-order" : " ^8.1.0" ,
70
70
"stylelint-config-prettier" : " ^9.0.3" ,
71
71
"stylelint-config-standard" : " ^24.0.0" ,
72
+ "ts-essentials" : " ^9.0.0" ,
72
73
"ts-jest" : " ^27.0.0" ,
73
74
"ts-loader" : " ^9.2.3" ,
74
75
"typescript" : " ^4.2.2" ,
Original file line number Diff line number Diff line change 1
1
import { merge } from 'lodash' ;
2
2
import { StoreEnhancer , StoreEnhancerStoreCreator } from 'redux' ;
3
+ import { DeepPartial } from 'ts-essentials' ;
3
4
4
5
type SimpleStorage = Pick < Storage , 'getItem' | 'setItem' > ;
5
6
6
7
interface Config < S > {
7
8
storageFactory : ( ) => SimpleStorage ;
8
9
serialize : ( state : S ) => string ;
9
- deserialize : ( state : string ) => S ;
10
+ deserialize : ( state : string ) => DeepPartial < S > ;
10
11
}
11
12
12
13
export class InMemoryStorage {
Original file line number Diff line number Diff line change @@ -6157,6 +6157,11 @@ ts-easing@^0.2.0:
6157
6157
resolved "https://registry.yarnpkg.com/ts-easing/-/ts-easing-0.2.0.tgz#c8a8a35025105566588d87dbda05dd7fbfa5a4ec"
6158
6158
integrity sha512-Z86EW+fFFh/IFB1fqQ3/+7Zpf9t2ebOAxNI/V6Wo7r5gqiqtxmgTlQ1qbqQcjLKYeSHPTsEmvlJUDg/EuL0uHQ==
6159
6159
6160
+ ts-essentials@^9.0.0 :
6161
+ version "9.1.2"
6162
+ resolved "https://registry.yarnpkg.com/ts-essentials/-/ts-essentials-9.1.2.tgz#46db6944b73b4cd603f3d959ef1123c16ba56f59"
6163
+ integrity sha512-EaSmXsAhEiirrTY1Oaa7TSpei9dzuCuFPmjKRJRPamERYtfaGS8/KpOSbjergLz/Y76/aZlV9i/krgzsuWEBbg==
6164
+
6160
6165
ts-jest@^27.0.0 :
6161
6166
version "27.1.2"
6162
6167
resolved "https://registry.yarnpkg.com/ts-jest/-/ts-jest-27.1.2.tgz#5991d6eb3fd8e1a8d4b8f6de3ec0a3cc567f3151"
You can’t perform that action at this time.
0 commit comments