In app.ts
- Create a interface to represent
todoItems - Represent hard-coded status property to
enum - Apply defined types into parameters and return values of functions,
addTodoItemandgetnextId - Also introduce generic parameter for
getNextIdfunction