learning typescript
! operator
var w = document.getElementById("printable")!
without the ! operator the compiler complains that HTMLElement could be null. One must be sure that the dom elemenet exists tho...
or add the runtime nullable check to the code.
difference between implements and extends
implements RepositoryPort<CreateTeamRequestDto, TeamEntity>
implements ensures the class implements all properties and methods declared in interface of abstract class
you can implement multiple interfaces in a class. and implement both interfaces and abstract classes.
extends is used for inheritance. the subclass inherits its properties and methods. the subclass can override methods or add new functionality on top.
you can only extend one class.
works for abstract and regular classes.