(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[]).
This commit is contained in:
Santi Albo committed 2014-01-28 11:34:13 +00:00
1 parent 4821f9a722
commit 8bbf4084f0
1 file changed
+3 -3
+3 -3
View File
@@ -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;