From de37f2dbbf86dc3c39ac8309cba8c16f40f47d4a Mon Sep 17 00:00:00 2001 From: Punyashloka Biswal Date: Tue, 23 Sep 2014 12:09:27 -0400 Subject: [PATCH] More precise type for $routeProvider.resolve --- angularjs/angular-route.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/angularjs/angular-route.d.ts b/angularjs/angular-route.d.ts index ba6d0aac98..a71299e258 100644 --- a/angularjs/angular-route.d.ts +++ b/angularjs/angular-route.d.ts @@ -75,7 +75,7 @@ declare module ng.route { * - key - {string}: a name of a dependency to be injected into the controller. * - factory - {string|function}: If string then it is an alias for a service. Otherwise if function, then it is injected and the return value is treated as the dependency. If the result is a promise, it is resolved before its value is injected into the controller. Be aware that ngRoute.$routeParams will still refer to the previous route within these resolve functions. Use $route.current.params to access the new route parameters, instead. */ - resolve?: any; + resolve?: {[key: string]: any}; /** * {(string|function())=} * Value to update $location path with and trigger route redirection.