-
-
Notifications
You must be signed in to change notification settings - Fork 191
Closed
Labels
Description
Instead of making the user define the types that the store will implement, why don't you just have the compiler figure out the typing from the implimentation itself? That would greatly reduce boilerplate, which is a goal of this library.
createStore<StoreModel>({ doesn't need to take a generic, it can figure it out itself if you write the typescript definition right.