@types/react-router
Advanced tools
Comparing version 2.0.35 to 2.0.36
@@ -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" | ||
} |
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
19892
26
425