From 51042d8ae1d8177f866cdefdfe1df0c6c897f1e7 Mon Sep 17 00:00:00 2001 From: Marc-Andre Roy Date: Wed, 17 Jul 2013 10:58:16 -0400 Subject: [PATCH] Change url typing for any in IRouteParameters Change the typing of the url parameter in IRouteInfoParameters from string to any. Using a string disallow the use of Regular Expression as URL value. Using any instead of string give more flexibility. Using RegExp as URL gives you the possibility to specify "catch all" routes. --- 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 043ab3f66..e47bb1f15 100644 --- a/durandal/durandal.d.ts +++ b/durandal/durandal.d.ts @@ -375,7 +375,7 @@ declare module "durandal/plugins/router" { */ interface IRouteInfoParameters { /** your url pattern. The only required parameter */ - url: string; + url: any; /** if not supplied, router.convertRouteToName derives it */ moduleId?: string; /** if not supplied, router.convertRouteToModuleId derives it */