Answer the question
In order to leave comments, you need to log in
How to type the history object?
I added a history
method to the object push()
,
history.push = (route: any) => {
history.pushState(null, null, route);
someAction();
}
history
so that the code is without underscores?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question