mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-31 19:12:20 +08:00
Merge pull request #459 from Diullei/master
durandal: Fixed introduced bug at pull/451
This commit is contained in:
2
durandal/durandal.d.ts
vendored
2
durandal/durandal.d.ts
vendored
@@ -423,7 +423,7 @@ declare module "durandal/plugins/router" {
|
||||
/**
|
||||
* Works the same as mapRoute except that routes are automatically added to the visibleRoutes array.
|
||||
*/
|
||||
export var mapNav: (url: string, moduleId: string, name: string) => routeInfo;
|
||||
export var mapNav: (url: string, moduleId?: string, name?: string) => routeInfo;
|
||||
/**
|
||||
* You can pass a single routeInfo to this function, or you can pass the basic configuration parameters. url is your url pattern, moduleId is the module path this pattern will map to, name is used as the document title and visible determines whether or not to include it in the router's visibleRoutes array for easy navigation UI binding.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user