Skip to content

Commit

Permalink
fix(typings): Allow urlRouter.rule to return void
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherthielen committed Oct 24, 2016
1 parent 7f936f9 commit 0b78bdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/url/urlRouter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0b78bdf

Please sign in to comment.