TS2689
error TS2689: Cannot extend an interface ‘Animal’. Did you mean ‘implements’?
Broken Code ❌
1 |
|
Fixed Code ✔️
The TypeScript compiler tells us already the solution: When implementing an interface, we have to use implements
. If we inherit from classes, we use extends
.
1 |
|