import type { History } from 'history' ; interface Storage { history : History | null ; } let history = null ; const storage = { history : null , } ; function getHistory ( ) { return storage . history ; } function setHistory ( customHistory ) { history = customHistory ; storage . history = customHistory ; } export { getHistory , setHistory , history , } ;