@types/react-router
Advanced tools
Comparing version 2.0.33 to 2.0.34
@@ -10,3 +10,2 @@ // Type definitions for react-router v2.0.0 | ||
export const routerShape: React.Requireable<any> | ||
@@ -50,2 +49,3 @@ | ||
export type RedirectFunction = Router.RedirectFunction; | ||
export type RouteComponent = Router.RouteComponent; | ||
export type RouteComponentProps<P, R> = Router.RouteComponentProps<P, R>; | ||
@@ -52,0 +52,0 @@ export type RouteHook = Router.RouteHook; |
import { History } from './History'; | ||
declare const browserHistory: History; | ||
export default browserHistory; |
import * as H from 'history'; | ||
export default function createMemoryHistory(options?: H.HistoryOptions): H.History; |
import { History } from './History'; | ||
declare const hashHistory: History; | ||
export default hashHistory; |
@@ -0,0 +0,0 @@ import Router from './Router'; |
@@ -0,0 +0,0 @@ import Link from './Link'; |
@@ -0,0 +0,0 @@ import Router from './Router'; |
@@ -0,0 +0,0 @@ import * as React from 'react'; |
@@ -0,0 +0,0 @@ import * as React from 'react'; |
@@ -0,0 +0,0 @@ import * as React from 'react'; |
@@ -12,5 +12,7 @@ import * as H from 'history'; | ||
interface MatchState extends Router.RouterState { | ||
history: History; | ||
history: H.History; | ||
router: Router; | ||
createElement: (component: Router.RouteComponent, props: Object) => any; | ||
} | ||
export default function match(args: MatchArgs, cb: (error: any, nextLocation: H.Location, nextState: MatchState) => void): void; | ||
export function formatPattern(pattern: string, params: {}): string; |
@@ -0,0 +0,0 @@ import * as React from 'react'; |
@@ -0,0 +0,0 @@ import * as React from 'react'; |
@@ -0,0 +0,0 @@ import * as React from 'react'; |
@@ -0,0 +0,0 @@ import * as React from 'react'; |
@@ -96,3 +96,3 @@ import * as React from 'react'; | ||
// https://github.com/reactjs/react-router/blob/v2.4.0/upgrade-guides/v2.4.0.md | ||
interface InjectedRouter { | ||
@@ -99,0 +99,0 @@ push: (pathOrLoc: History.LocationDescriptor) => void |
@@ -0,0 +0,0 @@ import * as React from 'react'; |
@@ -0,0 +0,0 @@ import * as React from 'react'; |
@@ -0,0 +0,0 @@ import { History, HistoryOptions, HistoryQueries, CreateHistory } from 'history'; |
@@ -0,0 +0,0 @@ import * as H from 'history'; |
import * as React from 'react'; | ||
declare function withRouter<C extends React.ComponentClass<any>>(component: C): C | ||
declare function withRouter<C extends React.ComponentClass<any> | React.StatelessComponent<any> | React.PureComponent<any, any>>(component: C): C | ||
export default withRouter; |
{ | ||
"name": "@types/react-router", | ||
"version": "2.0.33", | ||
"version": "2.0.34", | ||
"description": "TypeScript definitions for react-router v2.0.0", | ||
@@ -14,6 +14,7 @@ "license": "MIT", | ||
"dependencies": { | ||
"@types/history": "2.0.*", | ||
"@types/react": "0.14.*" | ||
"@types/history": "*", | ||
"@types/react": "*" | ||
}, | ||
"typings": "index.d.ts" | ||
"typings": "index.d.ts", | ||
"typesPublisherContentHash": "a66ad61d9528cebfc98e368d5ae452254982865a754575c3d5061685605a979f" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Wed, 24 Aug 2016 20:12:20 GMT | ||
* Last updated: Mon, 19 Sep 2016 17:28:59 GMT | ||
* File structure: UMD | ||
@@ -14,0 +14,0 @@ * Library Dependencies: none |
@@ -33,26 +33,26 @@ { | ||
"index.d.ts", | ||
"lib\\History.d.ts", | ||
"lib\\IndexLink.d.ts", | ||
"lib\\IndexRedirect.d.ts", | ||
"lib\\IndexRoute.d.ts", | ||
"lib\\Lifecycle.d.ts", | ||
"lib\\Link.d.ts", | ||
"lib\\PatternUtils.d.ts", | ||
"lib\\PropTypes.d.ts", | ||
"lib\\Redirect.d.ts", | ||
"lib\\Route.d.ts", | ||
"lib\\RouteContext.d.ts", | ||
"lib\\RouteUtils.d.ts", | ||
"lib\\Router.d.ts", | ||
"lib\\RouterContext.d.ts", | ||
"lib\\browserHistory.d.ts", | ||
"lib\\createMemoryHistory.d.ts", | ||
"lib\\hashHistory.d.ts", | ||
"lib\\match.d.ts", | ||
"lib\\useRouterHistory.d.ts", | ||
"lib\\useRoutes.d.ts", | ||
"lib\\withRouter.d.ts" | ||
"lib/History.d.ts", | ||
"lib/IndexLink.d.ts", | ||
"lib/IndexRedirect.d.ts", | ||
"lib/IndexRoute.d.ts", | ||
"lib/Lifecycle.d.ts", | ||
"lib/Link.d.ts", | ||
"lib/PatternUtils.d.ts", | ||
"lib/PropTypes.d.ts", | ||
"lib/Redirect.d.ts", | ||
"lib/Route.d.ts", | ||
"lib/RouteContext.d.ts", | ||
"lib/RouteUtils.d.ts", | ||
"lib/Router.d.ts", | ||
"lib/RouterContext.d.ts", | ||
"lib/browserHistory.d.ts", | ||
"lib/createMemoryHistory.d.ts", | ||
"lib/hashHistory.d.ts", | ||
"lib/match.d.ts", | ||
"lib/useRouterHistory.d.ts", | ||
"lib/useRoutes.d.ts", | ||
"lib/withRouter.d.ts" | ||
], | ||
"hasPackageJson": false, | ||
"contentHash": "c2ee072ec446f8c25633d71fbe06d015d64404de73af9d1129f0b0c22d8c730e" | ||
"contentHash": "a66ad61d9528cebfc98e368d5ae452254982865a754575c3d5061685605a979f" | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
415
0
18887
+ Added@babel/runtime@7.25.9(transitive)
+ Added@types/history@5.0.0(transitive)
+ Added@types/prop-types@15.7.13(transitive)
+ Added@types/react@18.3.11(transitive)
+ Addedcsstype@3.1.3(transitive)
+ Addedhistory@5.3.0(transitive)
+ Addedregenerator-runtime@0.14.1(transitive)
- Removed@types/history@2.0.51(transitive)
- Removed@types/react@0.14.57(transitive)
Updated@types/history@*
Updated@types/react@*