diff --git a/src/url/urlRouter.ts b/src/url/urlRouter.ts index c3114c53..2b7a20a6 100644 --- a/src/url/urlRouter.ts +++ b/src/url/urlRouter.ts @@ -117,7 +117,7 @@ export class UrlRouterProvider { * * @return [[$urlRouterProvider]] (`this`) */ - rule(rule: ($injector: $InjectorLike, $location: LocationServices) => string): UrlRouterProvider { + rule(rule: ($injector: $InjectorLike, $location: LocationServices) => string|void): UrlRouterProvider { if (!isFunction(rule)) throw new Error("'rule' must be a function"); this.rules.push(rule); return this;