Skip to content

Commit 961ed0f

Browse files
fix(typescript): Fix typing of onChange callback in UrlService
Closes #229
1 parent 6b487be commit 961ed0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/url/urlService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,5 +269,5 @@ export class UrlService implements LocationServices, UrlSyncApi {
269269
* @param callback a function that will be called when the url is changing
270270
* @return a function that de-registers the callback
271271
*/
272-
public onChange = (callback: Function): Function => this.router.locationService.onChange(callback);
272+
public onChange = (callback: EventListener): Function => this.router.locationService.onChange(callback);
273273
}

0 commit comments

Comments
 (0)