elgerlambert / redux-localstorage

Store enhancer that syncs (a subset) of your Redux store state to localstorage.
MIT License
1.32k stars 107 forks source link

Typescript definitions #71

Closed vincaslt closed 7 years ago

vincaslt commented 7 years ago

Definitions installed from @types/redux-localstorage seem to be either old or incorrect. I can't make sense of them:

export default function persistState<A>(storage?: StorageAdapter<A>, key?: string, callback?: Function): Redux.GenericStoreEnhancer;

This doesn't look like the function in doc examples.

calvin commented 7 years ago

Use redux-localstorage@rc.