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.33 to 2.0.34

2

react-router/index.d.ts

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