Last active
January 22, 2019 15:34
-
-
Save srph/1497c5627c33e222a817af578c7cc9af to your computer and use it in GitHub Desktop.
qhistory & react-router types
This file contains hidden or 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 { Location, LocationState } from 'history'; | |
import { RouteComponentProps as ReactRouteComponentProps } from 'react-router-dom' | |
export interface RouteComponentProps<Q = { [key: string]: string }> extends ReactRouteComponentProps { | |
location: Location<LocationState> & { | |
query: Q | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment