From 8bbf4084f0388a1bf61b4dc12a2562213bb52184 Mon Sep 17 00:00:00 2001 From: Santi Albo Date: Tue, 28 Jan 2014 11:34:13 +0000 Subject: [PATCH] (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 (i.e. any[]). --- angular-ui/angular-ui-router.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/angular-ui/angular-ui-router.d.ts b/angular-ui/angular-ui-router.d.ts index bc3e27c2d..eec2cfcf3 100644 --- a/angular-ui/angular-ui-router.d.ts +++ b/angular-ui/angular-ui-router.d.ts @@ -42,9 +42,9 @@ declare module ng.ui { } interface IUrlRouterProvider extends IServiceProvider { - when(whenPath: string, toPath: string): IUrlRouterProvider; - when(whenPath: RegExp, toPath: string): IUrlRouterProvider; - when(whenPath: IUrlMatcher, toPath: string): IUrlRouterProvider; + when(whenPath: string, toPath: any): IUrlRouterProvider; + when(whenPath: RegExp, toPath: any): IUrlRouterProvider; + when(whenPath: IUrlMatcher, toPath: any): IUrlRouterProvider; otherwise(path: string): IUrlRouterProvider; otherwise(path: Function): IUrlRouterProvider; rule(handler: Function): IUrlRouterProvider;