TypeScript useReducer and the ‘undefined’ is not assignable error · HackerTrans