I am trying to convert a useReducer hooks to TypeScript, It\'s working fine as useReducer hooks, however not in TypeScript.
Here is my code,
import * a