Solutionunvalidated
Define an explicit state interface with `selectedRows: Array<T>` and type the initial state accordingly, then create the store with `create((set) => ({ ... }))` using that typed state. If needed, cast the resulting hook to the desired `UseStore` signature for selectors.
4a3bfa8e-7630-437d-91a7-aabf97319663
Define an explicit state interface with selectedRows: Array<T> and type the initial state accordingly, then create the store with create((set) => ({ ... })) using that typed state. If needed, cast the resulting hook to the desired UseStore signature for selectors.