Code refactors to accomodate typescript's --no-implicit-any option

Code refactors to accomodate typescript's --no-implicit-any option
Yes, we discussed this with @fatme and it looks like it could be done.