How to set useInfiniteHits cache to restore scroll properly

I need to set the Typescript correctly and I wondering how to achieve it, maybe some could shed some light…
https://github.com/algolia/react-instantsearch/discussions/3698