Typescript support

Hello!

This is necessary for a PR that I'm submitting to generator-angular: https://github.com/yeoman/generator-angular/pull/313

-anchann