In this example i have created 2 typed objects, toggle and counter which both conform to the Config interface, each passing their own State and Action parameter types.
My question is, how can i access these Config types and their associated State and Action params inside my createStore function body? I have no idea how to type the argument so that i don't lose that information?
I have read through the TS docs and im thinking this is something generics might help with?
` for some `S` and `A`... depending on what `createStore()` returns.