This project demonstrates violations of the SOLID principles using TypeScript. Each folder contains:
- A
bad.ts
file showing a non-SOLID implementation. - A
good.ts
file with an explanation inREADME.md
.
- SRP – Single Responsibility Principle
- OCP – Open/Closed Principle
- LSP – Liskov Substitution Principle
- ISP – Interface Segregation Principle
- DIP – Dependency Inversion Principle
Fork the project, improve it, and learn!