From 961ed0f05502eaef406b90010dded72ebf1b6440 Mon Sep 17 00:00:00 2001 From: Chris Thielen Date: Mon, 28 Jan 2019 13:35:43 -0800 Subject: [PATCH] fix(typescript): Fix typing of onChange callback in UrlService Closes #229 --- src/url/urlService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/url/urlService.ts b/src/url/urlService.ts index 4e3ddf64..2208d06f 100644 --- a/src/url/urlService.ts +++ b/src/url/urlService.ts @@ -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); }