A small TypeScript project that implements a generic task manager using interfaces, classes, and generics.
- Add a task
- Remove a task
- Toggle task completion
- Get all tasks
- Get completed and pending tasks
- Find a task by ID
- Update a task with
Partial<T>
- Clear all completed tasks
- Count total tasks
- TypeScript
- Generics
- Interfaces
- Classes
- Basic OOP patterns
This project uses Jest for unit testing.
All methods are covered with tests, and test coverage is 100%.
To run tests:
npm test