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:
Sergey Buturlakin
2015-09-30 19:27:10 +03:00
parent ef5f585334
commit 4a33c914d1
6 changed files with 430 additions and 9 deletions
+4 -4
View File
@@ -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[]