mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-11 11:50:54 +08:00
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:
Vendored
+1
-1
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user