DEV Community

Discussion on: My confusions about TypeScript

Collapse
 
jwp profile image
John Peters • Edited

Interface defintions are not strictly needed. They only provide the abilty for other users to inject their own implementation of a pattern. This stops the need to always use just one concrete class and is favored mostly by testers.