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.
This commit is contained in:
Marc-Andre Roy
2013-07-17 10:58:16 -04:00
parent 0592d2fb45
commit 51042d8ae1
+1 -1
View File
@@ -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 */