I use TypeScript with React and useReducer and I want to define reducer Actions in a type-safe way.
The simplest approximation of Action is:
type Action =