@types/react-router
Advanced tools
Comparing version 4.0.19 to 4.0.20
@@ -107,5 +107,3 @@ // Type definitions for React Router 4.0 | ||
export function matchPath<P>(pathname: string, props: RouteProps): match<P> | null; | ||
export function withRouter<P extends RouteComponentProps<any>>(component: React.ComponentType<P>): React.ComponentClass<Omit<P, keyof RouteComponentProps<any>>>; | ||
// decorator signature | ||
// There is a known issue in TypeScript, which doesn't allow decorators to change the signature of the classes | ||
@@ -115,2 +113,2 @@ // they are decorating. Due to this, if you are using @withRouter decorator in your code, | ||
// on a separate line instead of as a decorator. | ||
export function withRouter<P, TFunction extends React.ComponentClass<P>>(target: TFunction): TFunction; | ||
export function withRouter<P extends RouteComponentProps<any>>(component: React.ComponentType<P>): React.ComponentClass<Omit<P, keyof RouteComponentProps<any>>>; |
{ | ||
"name": "@types/react-router", | ||
"version": "4.0.19", | ||
"version": "4.0.20", | ||
"description": "TypeScript definitions for React Router", | ||
@@ -88,4 +88,4 @@ "license": "MIT", | ||
}, | ||
"typesPublisherContentHash": "a6913504d4ecb2bbed7efb5f18bb1a8e926d2ddb49b55fa1c218f8cc0e021ff3", | ||
"typesPublisherContentHash": "da88b63266a309d1e719f76e57aee615dc7e10cdfd71ac067ebf9e41e371fcac", | ||
"typeScriptVersion": "2.4" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Mon, 27 Nov 2017 17:48:00 GMT | ||
* Last updated: Wed, 20 Dec 2017 14:50:50 GMT | ||
* Dependencies: react, history | ||
@@ -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
9283
98