When I tried to use unistore instead of redux in one of my pet projects, I discovered that its TypeScript typings are not very accurate. In this post I try to come up with better typings for unistore’s connect() function.
TypeScript, preact, and unistore
![TypeScript, preact, and unistore TypeScript, preact, and unistore](https://wildwolf.name/wp-content/uploads/2019/11/unistore-750x350.png)