converted injector module to typescript
converted index module to typescript