mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-25 12:00:38 +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:
1 parent
4821f9a722
commit
8bbf4084f0
1 file changed
+3
-3
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