Typescript support

This is necessary for a PR that I'm submitting to generator-angular