use of typescript compilation to validate data between controller and module