From 1d2dbf3d7da80ecfc3e676afe0b918f0cd676bc7 Mon Sep 17 00:00:00 2001 From: arash16 Date: Fri, 29 Mar 2013 12:08:33 +0430 Subject: [PATCH] Update durandal.d.ts mapNav's second and third parameters must be optional.. --- durandal/durandal.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/durandal/durandal.d.ts b/durandal/durandal.d.ts index c5c5de3b13..a5369261a6 100644 --- a/durandal/durandal.d.ts +++ b/durandal/durandal.d.ts @@ -419,7 +419,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. */