While using UI-Router with React (and potentially Angular as well, though my experience here is limited) is it possible to make sure the resolved values are the correct type