mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
(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:
Vendored
+3
-3
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user