I making routing in my SPFx, trying to change url parametrs.
import * as PropTypes from 'prop-types';
private EventListners(): void {
const btnSearch = this.domElement.querySelector("#btnSearchQuerySubmit");
const queryText: HTMLElement = <HTMLInputElement>this.domElement.querySelector("#txtInput");
btnSearch.addEventListener('click', () => {
(new SpFxSearchWebPart()).OnChangeEvent(queryText);
let po = PropTypes.object;
po.history.push('/Title');
});
}
And get the error: "history" does not exist on type 'Requireble'