Skip to content

Commit 0b78bdf

Browse files
fix(typings): Allow urlRouter.rule to return void
1 parent 7f936f9 commit 0b78bdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/url/urlRouter.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export class UrlRouterProvider {
117117
*
118118
* @return [[$urlRouterProvider]] (`this`)
119119
*/
120-
rule(rule: ($injector: $InjectorLike, $location: LocationServices) => string): UrlRouterProvider {
120+
rule(rule: ($injector: $InjectorLike, $location: LocationServices) => string|void): UrlRouterProvider {
121121
if (!isFunction(rule)) throw new Error("'rule' must be a function");
122122
this.rules.push(rule);
123123
return this;

0 commit comments

Comments
 (0)