How to connect redux-persist to react typescript project?

Trying to import from storage 'redux-persist/lib/storage' (import storage from 'redux-persist/lib/storage') but I catch an error:
Could not find a declaration file for module 'redux-persist/lib/storage'. '.../WebstormProjects/catalog/node_modules/redux-persist/lib/storage/index.js' implicitly has an 'any' type.
 Try `npm install @types/redux-persist` if it exists or add a new declaration (.d.ts) file containing `declare module 'redux-persist/lib/storage'

@types/redux-persist established, though not necessary, redux-persist provides its own definitions of types
How to connect this library?
April 4th 20 at 13:29
1 answer
April 4th 20 at 13:31
Add to design something.d.ts file (react-app-env.d.ts, if you use the create react app) line:
/// <reference types="redux-persist" />
Thank you very much) yesterday I rummaged through a pile of resources - no entries. Did not expect that there will help) - glennie commented on April 4th 20 at 13:34

Find more questions by tags TypeScriptReactRedux