You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.
Types are great. Following what has been done with #244 we should add types to the Redux store as well.
The types can be static (added manually) or dynamically, based on the reducers composing the store.
Given the dynamic nature of the PCM store, and all the related setState/useState calls, a static typing it's probably easier to implement, even if changes to the store will require a manual update to the types.
Stretch goal
Add typings also for setState/useState functions to have type checking for every operation on the store and avoid manual upcast/downcast.
The text was updated successfully, but these errors were encountered:
Description
Types are great. Following what has been done with #244 we should add types to the Redux store as well.
The types can be static (added manually) or dynamically, based on the reducers composing the store.
Given the dynamic nature of the PCM store, and all the related
setState/useState
calls, a static typing it's probably easier to implement, even if changes to the store will require a manual update to the types.Stretch goal
Add typings also for
setState/useState
functions to have type checking for every operation on the store and avoid manual upcast/downcast.The text was updated successfully, but these errors were encountered: