mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-18 12:33:17 +08:00
Merge pull request #24192 from alexwilczewski/master
angular-route otherwise can accept string
This commit is contained in:
@@ -40,7 +40,8 @@ $routeProvider
|
||||
}
|
||||
})
|
||||
.otherwise({ redirectTo: '/' })
|
||||
.otherwise({ redirectTo: ($routeParams?: ng.route.IRouteParamsService, $locationPath?: string, $locationSearch?: any) => "" });
|
||||
.otherwise({ redirectTo: ($routeParams?: ng.route.IRouteParamsService, $locationPath?: string, $locationSearch?: any) => "" })
|
||||
.otherwise("/");
|
||||
|
||||
|
||||
var current: ng.route.ICurrentRoute;
|
||||
|
||||
2
types/angular-route/index.d.ts
vendored
2
types/angular-route/index.d.ts
vendored
@@ -138,7 +138,7 @@ declare module 'angular' {
|
||||
*
|
||||
* @params Mapping information to be assigned to $route.current.
|
||||
*/
|
||||
otherwise(params: IRoute): IRouteProvider;
|
||||
otherwise(params: IRoute | string): IRouteProvider;
|
||||
/**
|
||||
* Adds a new route definition to the $route service.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user