Durandal supports injection/configuration to use a different library for Deferred/Promises (ref http://durandaljs.com/documentation/Q.html)
When using a different Deferred/Promise implementation, you might want to use a different Promise interface in the durandal.d.ts file.
Added some type annotations to ensure that durandal.d.ts won’t make compilation fail when the compiling with the noImplicitAny option set to true.
Note that I'm not the author of these changes but was asked to review it, and then publish it for the benefits of the community.
Using union type for route,
Add missing parent property (only present if the current router is a child router)
Fix queryParams type
Fix guardRoute return type
cleanup mixed tab/spaces
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.
Bugfixed mapRoute to have two function signatures.
Bugfixed map to take single or array of IRouteInfoParameters.
Renamed interface IRouteInfo from routeInfo
Added interface IRouteInfoParameters
Bugfixed mapRoute to have two function signatures.
Bugfixed map to take single or array of IRouteInfoParameters.
Renamed interface IRouteInfo from routeInfo
Added interface IRouteInfoParameters
Renamed interface IRouteInfo from routeInfo
Added interface IRouteInfoParameters
Bugfixed mapRoute to have two function signatures.
Bugfixed map to take single or array of IRouteInfoParameters.
- Make applicationHost parameter optional in setRoot
- Add missing activeRoute definition
- Add missing useConvention definition
- Add missing handleInvalidRoute definition
- Change mapRoute definition so you can pass an URL with all the other
parameters as you will usealy do or you pass a RouteInfo object without
having to give it any other parameter. moduleId, name and visible are
now optional.