TypeScript useReducer and the ‘undefined’ is not assignable error | Hacker News Reader