zustandjs / zustand-slices

A slice utility for Zustand
MIT License
137 stars 6 forks source link

Implement `IsValidActions` type #14

Closed grigorischristainas closed 1 month ago

grigorischristainas commented 1 month ago

This is an implementation of IsValidActions type, aiming to detect name collisions between state and actions. I also introduced the usage of describe in type tests in order to group them and then added test cases for validating withActions types.

Please let me know if any additional changes are required or if there are potential cases where this approach might not work.