More precise type for $routeProvider.resolve