TypeScript definitions for component builds

I have added some TypeScript definitions to use with component builds and the excellent component-tsc compiler.

Thanks