Typescript module, and part of controller