This repository was archived by the owner on Jun 20, 2025. It is now read-only.

Description
The exported typescript definition reads:
connectToHistory<H extends LooseHistory>(history: H): H;
But in react-router-piwik.js the function is defined as:
connectToHistory(history, trackAtConnect, callback)
I can supply those extra arguments and it works, but my IDE complains about a typescript mismatch:

I think at some point the function got extra arguments and someone forgot to update the typescript exported definition?
I even think that if you call it with just one argument, it errors, because it tries to call that callback function (third argument).