(angular-ui-router) Set `toPath` argument to any

The `toPath` argument on `IUrlRouterProvider.when` can also be a function that returns a string and an injected function that returns a string (i.e. any[]).