How to implement OnInit and OnChanges on same component with type safety
<p>One of the things I like about typescript is its type safety and I use it consistently.</p>

<p>Typescript does not support multiple inheritance, so how can I extend an Angular 2 component class by <code>OnInit</code> and <code>OnChanges</code> at the same time?</p>

<p>I know that it works without declaring the inheritance but I like my code without squiggly lines.</p>