mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Add tests
Restore old definitions as react-router-0.13.3.d.ts Update react-redux to use old definitions
This commit is contained in:
Vendored
+4
-4
@@ -26,16 +26,16 @@ declare namespace ReactRouter {
|
||||
|
||||
type RedirectFunction = (state: H.LocationState, pathname: H.Pathname | H.Path, query?: H.Query) => void
|
||||
|
||||
interface RouteComponentProps {
|
||||
interface RouteComponentProps<P, R> {
|
||||
history?: History
|
||||
location?: Location
|
||||
params?: Params
|
||||
params?: P
|
||||
route?: PlainRoute
|
||||
routeParams?: Params
|
||||
routeParams?: R
|
||||
routes?: PlainRoute[]
|
||||
}
|
||||
|
||||
type RouteComponent = React.ComponentClass<RouteComponentProps>
|
||||
type RouteComponent = React.ComponentClass<Object>
|
||||
|
||||
type RouteConfig = RouteObject[]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user