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 2.0.35 to 2.0.36

react-router/lib/applyRouterMiddleware.d.ts

4

react-router/index.d.ts

@@ -35,2 +35,3 @@ // Type definitions for react-router v2.0.0

import withRouter from "./lib/withRouter";
import applyRouterMiddleware from "./lib/applyRouterMiddleware";

@@ -83,5 +84,6 @@ // PlainRoute is defined in the API documented at:

createMemoryHistory,
withRouter
withRouter,
applyRouterMiddleware
};
export default Router;

@@ -98,12 +98,12 @@ import * as React from 'react';

interface InjectedRouter {
push: (pathOrLoc: History.LocationDescriptor) => void
replace: (pathOrLoc: History.LocationDescriptor) => void
go: (n: number) => void
goBack: () => void
goForward: () => void
setRouteLeaveHook(route: PlainRoute, callback: RouteHook): void
createPath(path: History.Path, query?: History.Query): History.Path
createHref(path: History.Path, query?: History.Query): History.Href
isActive: (pathOrLoc: History.LocationDescriptor, indexOnly?: boolean) => boolean
push: (pathOrLoc: History.LocationDescriptor) => void
replace: (pathOrLoc: History.LocationDescriptor) => void
go: (n: number) => void
goBack: () => void
goForward: () => void
setRouteLeaveHook(route: PlainRoute, callback: RouteHook): void
createPath(path: History.Path, query?: History.Query): History.Path
createHref(path: History.Path, query?: History.Query): History.Href
isActive: (pathOrLoc: History.LocationDescriptor, indexOnly?: boolean) => boolean
}
}
import * as React from 'react';
declare function withRouter<C extends React.ComponentClass<any> | React.StatelessComponent<any> | React.PureComponent<any, any>>(component: C): C
export default withRouter;
export default withRouter;
{
"name": "@types/react-router",
"version": "2.0.35",
"version": "2.0.36",
"description": "TypeScript definitions for react-router v2.0.0",

@@ -18,3 +18,3 @@ "license": "MIT",

"typings": "index.d.ts",
"typesPublisherContentHash": "0550ff753b029af606599d4788bc857390b28cb35fa152657e314f06f5a5a944"
"typesPublisherContentHash": "7b9597493e4e472cb4440a97638a5a287e190faa6ab1752708a6356259cb0911"
}

@@ -11,3 +11,3 @@ # Installation

Additional Details
* Last updated: Mon, 19 Sep 2016 19:54:59 GMT
* Last updated: Wed, 21 Sep 2016 20:25:56 GMT
* File structure: UMD

@@ -14,0 +14,0 @@ * Library Dependencies: none

@@ -47,2 +47,3 @@ {

"lib\\RouterContext.d.ts",
"lib\\applyRouterMiddleware.d.ts",
"lib\\browserHistory.d.ts",

@@ -57,3 +58,3 @@ "lib\\createMemoryHistory.d.ts",

"hasPackageJson": false,
"contentHash": "0550ff753b029af606599d4788bc857390b28cb35fa152657e314f06f5a5a944"
"contentHash": "7b9597493e4e472cb4440a97638a5a287e190faa6ab1752708a6356259cb0911"
}
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