Usereducer Action Typescript. const I am having a type problem with TypeScript where when