From dee9533b600e4515313f2e12b1a069b19246883b Mon Sep 17 00:00:00 2001 From: Alex Dik Date: Fri, 8 Jan 2016 16:49:20 +0100 Subject: [PATCH] Remove unnecessary type declarations in routing config --- .../routing/routing.configuration.ts | 21 ++----------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/frontend/app/components/routing/routing.configuration.ts b/frontend/app/components/routing/routing.configuration.ts index 47e79e250b..f8a6eb645c 100644 --- a/frontend/app/components/routing/routing.configuration.ts +++ b/frontend/app/components/routing/routing.configuration.ts @@ -26,23 +26,9 @@ // See doc/COPYRIGHT.rdoc for more details. // ++ -interface LocationService extends angular.ILocationService { - $$rewrite(href: string): string; - $$parse(url: string): string; -} - -interface BrowserService extends angular.IBrowserService { - url(): string; -} - -interface WindowService extends angular.IWindowService { - angular: angular.IAngularStatic; -} - angular .module('openproject') - .config(($stateProvider: ng.ui.IStateProvider, $urlRouterProvider: ng.ui.IUrlRouterProvider, - $urlMatcherFactoryProvider: ng.ui.IUrlMatcherFactory) => { + .config(($stateProvider, $urlRouterProvider, $urlMatcherFactoryProvider) => { $urlRouterProvider.when('/work_packages/', '/work_packages'); $urlMatcherFactoryProvider.strictMode(false); @@ -230,10 +216,7 @@ angular .state('work-packages.list.details.watchers', panels.watchers); }) - .run(($location: LocationService, $rootElement: ng.IRootElementService, - $browser: BrowserService, $rootScope: ng.IRootScopeService, $state: ng.ui.IStateService, - $window: WindowService) => { - + .run(($location, $rootElement, $browser, $rootScope, $state, $window) => { // Our application is still a hybrid one, meaning most routes are still // handled by Rails. As such, we disable the default link-hijacking that // Angular's HTML5-mode turns on.