Skip to content

Commit

Permalink
fix(typescript): Fix typing of onChange callback in UrlService
Browse files Browse the repository at this point in the history
Closes #229
  • Loading branch information
christopherthielen committed Jan 28, 2019
1 parent 6b487be commit 961ed0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/url/urlService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -269,5 +269,5 @@ export class UrlService implements LocationServices, UrlSyncApi {
* @param callback a function that will be called when the url is changing
* @return a function that de-registers the callback
*/
public onChange = (callback: Function): Function => this.router.locationService.onChange(callback);
public onChange = (callback: EventListener): Function => this.router.locationService.onChange(callback);
}

0 comments on commit 961ed0f

Please sign in to comment.