export type HistoryFunction = (history: any, routePath?: string) => void;