Reactjs – How to properly type a getter when assigning value using a tuple
In my TS React App, I am using Zustand to manage the states of all dialogs/modals. Here is how I typed the ModalStoreState: type ModalStoreState = { /** * 1st arg is "name" of the target dialog, while 2nd arg…