Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

@types/react-router

Package Overview
Dependencies
Maintainers
1
Versions
140
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/react-router - npm Package Compare versions

Comparing version 4.0.19 to 4.0.20

4

react-router/index.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc