@types/react-router
Advanced tools
Comparing version 3.0.13 to 3.0.14
@@ -15,5 +15,6 @@ import { ComponentClass, ClassAttributes } from "react"; | ||
export interface IndexRouteProps { | ||
export interface IndexRouteProps<Props = any> { | ||
component?: RouteComponent; | ||
components?: RouteComponents; | ||
props?: Props; | ||
getComponent?(nextState: RouterState, callback: ComponentCallback): void; | ||
@@ -20,0 +21,0 @@ getComponents?(nextState: RouterState, callback: ComponentsCallback): void; |
@@ -14,3 +14,3 @@ import { ComponentClass, ClassAttributes } from "react"; | ||
export interface RouteProps extends IndexRouteProps { | ||
export interface RouteProps<Props = any> extends IndexRouteProps<Props> { | ||
path?: RoutePattern; | ||
@@ -27,3 +27,3 @@ } | ||
export interface PlainRoute extends RouteProps { | ||
export interface PlainRoute<Props = any> extends RouteProps<Props> { | ||
childRoutes?: PlainRoute[]; | ||
@@ -30,0 +30,0 @@ getChildRoutes?(partialNextState: LocationState, callback: RoutesCallback): void; |
@@ -69,6 +69,6 @@ import { Component, ComponentClass, ClassAttributes, ReactNode, StatelessComponent } from "react"; | ||
export interface RouteComponentProps<P, R> { | ||
export interface RouteComponentProps<P, R, ComponentProps = any> { | ||
location: Location; | ||
params: P & R; | ||
route: PlainRoute; | ||
route: PlainRoute<ComponentProps>; | ||
router: InjectedRouter; | ||
@@ -75,0 +75,0 @@ routes: PlainRoute[]; |
{ | ||
"name": "@types/react-router", | ||
"version": "3.0.13", | ||
"version": "3.0.14", | ||
"description": "TypeScript definitions for react-router", | ||
@@ -9,39 +9,49 @@ "license": "MIT", | ||
"name": "Sergey Buturlakin", | ||
"url": "https://github.com/sergey-buturlakin" | ||
"url": "https://github.com/sergey-buturlakin", | ||
"githubUsername": "sergey-buturlakin" | ||
}, | ||
{ | ||
"name": "Yuichi Murata", | ||
"url": "https://github.com/mrk21" | ||
"url": "https://github.com/mrk21", | ||
"githubUsername": "mrk21" | ||
}, | ||
{ | ||
"name": "Václav Ostrožlík", | ||
"url": "https://github.com/vasek17" | ||
"url": "https://github.com/vasek17", | ||
"githubUsername": "vasek17" | ||
}, | ||
{ | ||
"name": "Nathan Brown", | ||
"url": "https://github.com/ngbrown" | ||
"url": "https://github.com/ngbrown", | ||
"githubUsername": "ngbrown" | ||
}, | ||
{ | ||
"name": "Alex Wendland", | ||
"url": "https://github.com/awendland" | ||
"url": "https://github.com/awendland", | ||
"githubUsername": "awendland" | ||
}, | ||
{ | ||
"name": "Kostya Esmukov", | ||
"url": "https://github.com/KostyaEsmukov" | ||
"url": "https://github.com/KostyaEsmukov", | ||
"githubUsername": "KostyaEsmukov" | ||
}, | ||
{ | ||
"name": "John Reilly", | ||
"url": "https://github.com/johnnyreilly" | ||
"url": "https://github.com/johnnyreilly", | ||
"githubUsername": "johnnyreilly" | ||
}, | ||
{ | ||
"name": "Karol Janyst", | ||
"url": "https://github.com/LKay" | ||
"url": "https://github.com/LKay", | ||
"githubUsername": "LKay" | ||
}, | ||
{ | ||
"name": "Dovydas Navickas", | ||
"url": "https://github.com/DovydasNavickas" | ||
"url": "https://github.com/DovydasNavickas", | ||
"githubUsername": "DovydasNavickas" | ||
}, | ||
{ | ||
"name": "Ross Allen", | ||
"url": "https://github.com/ssorallen" | ||
"url": "https://github.com/ssorallen", | ||
"githubUsername": "ssorallen" | ||
} | ||
@@ -59,4 +69,4 @@ ], | ||
}, | ||
"typesPublisherContentHash": "1bdb0101e8db8e6c1e1d0a7d95b00173cd85e74873defd766faa273a05b3a8af", | ||
"typesPublisherContentHash": "e27eba4eb7b5dd842d517c936e80b008827fb6d5c908b369d1764faf84de6a2e", | ||
"typeScriptVersion": "2.3" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Wed, 23 Aug 2017 17:50:59 GMT | ||
* Last updated: Wed, 24 Jan 2018 18:35:42 GMT | ||
* Dependencies: history, react | ||
@@ -14,0 +14,0 @@ * Global values: none |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16676
305