Created
September 5, 2021 18:06
-
-
Save quisido/7ee61f6b6176dd98138cdbc43580867a to your computer and use it in GitHub Desktop.
ReadonlyHistory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import type { History, Location } from 'history'; | |
type ReadonlyHistory<HistoryLocationState> = Omit< | |
Readonly<History<HistoryLocationState>>, | |
'location' | |
> & { | |
readonly location: Readonly<Location<HistoryLocationState>>; | |
}; | |
export default ReadonlyHistory; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment