Last active
July 26, 2021 11:13
-
-
Save wickedev/3f58ea25686da67e4f988c272b9bf7ef to your computer and use it in GitHub Desktop.
react-router generic Location hack
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
/// <reference types="react-scripts" /> | |
declare module 'react-router' { | |
import type { Location, State } from 'history' | |
export type * from 'react-router' | |
export declare function useLocation<S extends State = State>(): Location<S> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment