Skip to content

Instantly share code, notes, and snippets.

@srph
Last active January 22, 2019 15:34
Show Gist options
  • Save srph/1497c5627c33e222a817af578c7cc9af to your computer and use it in GitHub Desktop.
Save srph/1497c5627c33e222a817af578c7cc9af to your computer and use it in GitHub Desktop.
qhistory & react-router types
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