Skip to content

Commit

Permalink
(angular-ui-router) Set toPath argument to any
Browse files Browse the repository at this point in the history
The `toPath` argument on `IUrlRouterProvider.when` can also be a function that returns a string and an injected function (i.e. any[]).
  • Loading branch information
santialbo committed Jan 28, 2014
1 parent 4821f9a commit 8bbf408
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions angular-ui/angular-ui-router.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8bbf408

Please sign in to comment.