@types/react-router
Advanced tools
Comparing version 4.0.2 to 4.0.3
@@ -13,2 +13,3 @@ // Type definitions for React Router 4.0 | ||
// Tanguy Krotoff <https://github.com/tkrotoff> | ||
// Huy Nguyen <https://github.com/huy-nguyen> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -21,3 +22,13 @@ // TypeScript Version: 2.2 | ||
// This is the type of the context object that will be passed down to all children of | ||
// a `Router` component: | ||
interface RouterChildContext<P> { | ||
router: { | ||
history: H.History | ||
route: { | ||
location: H.Location, | ||
match: match<P> | ||
} | ||
} | ||
} | ||
interface MemoryRouterProps { | ||
@@ -110,4 +121,5 @@ initialEntries?: H.Location[]; | ||
matchPath, | ||
withRouter | ||
withRouter, | ||
RouterChildContext | ||
} | ||
} |
{ | ||
"name": "@types/react-router", | ||
"version": "4.0.2", | ||
"version": "4.0.3", | ||
"description": "TypeScript definitions for React Router", | ||
@@ -46,2 +46,6 @@ "license": "MIT", | ||
"url": "https://github.com/tkrotoff" | ||
}, | ||
{ | ||
"name": "Huy Nguyen", | ||
"url": "https://github.com/huy-nguyen" | ||
} | ||
@@ -60,4 +64,4 @@ ], | ||
"peerDependencies": {}, | ||
"typesPublisherContentHash": "7d031b25cdefd971070231448546af069783b5942bdbe265e926f1a75900da1a", | ||
"typesPublisherContentHash": "92d9ccf0f6470270df8085c9ecf4329dced5f7fde7a1bd736ca3c7bc1e51671e", | ||
"typeScriptVersion": "2.2" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Mon, 27 Mar 2017 16:19:52 GMT | ||
* Last updated: Tue, 28 Mar 2017 22:11:14 GMT | ||
* Dependencies: react, history | ||
@@ -17,2 +17,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by Sergey Buturlakin <https://github.com/sergey-buturlakin>, Yuichi Murata <https://github.com/mrk21>, Václav Ostrožlík <https://github.com/vasek17>, Nathan Brown <https://github.com/ngbrown>, Alex Wendland <https://github.com/awendland>, Kostya Esmukov <https://github.com/KostyaEsmukov>, John Reilly <https://github.com/johnnyreilly>, Karol Janyst <https://github.com/LKay>, Dovydas Navickas <https://github.com/DovydasNavickas>, Tanguy Krotoff <https://github.com/tkrotoff>. | ||
These definitions were written by Sergey Buturlakin <https://github.com/sergey-buturlakin>, Yuichi Murata <https://github.com/mrk21>, Václav Ostrožlík <https://github.com/vasek17>, Nathan Brown <https://github.com/ngbrown>, Alex Wendland <https://github.com/awendland>, Kostya Esmukov <https://github.com/KostyaEsmukov>, John Reilly <https://github.com/johnnyreilly>, Karol Janyst <https://github.com/LKay>, Dovydas Navickas <https://github.com/DovydasNavickas>, Tanguy Krotoff <https://github.com/tkrotoff>, Huy Nguyen <https://github.com/huy-nguyen>. |
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
6420
99