@difizen/magent-au
Version:
12 lines (10 loc) • 342 B
text/typescript
import { singleton } from '@difizen/mana-app';
import type { BrowserHistory, To } from 'history';
import { createBrowserHistory } from 'history';
()
export class RouterHistory {
protected browserHistory: BrowserHistory = createBrowserHistory();
push = (to: To, state?: any) => {
this.browserHistory.push(to, state);
};
}