michaelbull / aurelia-hacker-news

A recreation of the Hacker News website written in TypeScript and built with Aurelia.
https://michaelbull.github.io/aurelia-hacker-news
ISC License
62 stars 7 forks source link

Extend component & router lifecycle interfaces #12

Closed michaelbull closed 6 years ago

michaelbull commented 7 years ago

Currently we use the bind/unbind/activate/deactivate methods and they are 'magically' instantiated.

It would be beneficial to actually implement the interface types for components and for routable components, as then it is clear to the reader what these methods are meant to do and provides IDE assistance.