Typescript Throw New Bindingresolutionexception