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.59 to 2.0.60

6

react-router v2.0/lib/applyRouterMiddleware.d.ts

@@ -6,5 +6,5 @@ import * as React from 'react';

export interface Middleware {
renderRouterContext?: ((previous: RouterContext, props: React.Props<{}>) => RouterContext) | undefined;
renderRouteComponent?: ((previous: Router.RouteComponent, props: React.Props<{}>) => Router.RouteComponent) | undefined;
renderRouterContext?: ((previous: RouterContext, props: { children?: React.ReactNode; ref?: React.LegacyRef<{}> | undefined; }) => RouterContext) | undefined;
renderRouteComponent?: ((previous: Router.RouteComponent, props: { children?: React.ReactNode; ref?: React.LegacyRef<{}> | undefined; }) => Router.RouteComponent) | undefined;
}
export default function applyRouterMiddleware(...middlewares: Middleware[]): (renderProps: React.Props<{}>) => RouterContext;
export default function applyRouterMiddleware(...middlewares: Middleware[]): (renderProps: { children?: React.ReactNode; ref?: React.LegacyRef<{}> | undefined; }) => RouterContext;

@@ -10,3 +10,5 @@ import Router from './Router';

declare namespace self {
interface IndexRedirectProps extends React.Props<self> {
interface IndexRedirectProps {
children?: React.ReactNode;
ref?: React.LegacyRef<self> | undefined;
to: Router.RoutePattern;

@@ -13,0 +15,0 @@ query?: H.Query | undefined;

@@ -10,3 +10,5 @@ import * as React from 'react';

declare namespace self {
interface IndexRouteProps extends React.Props<IndexRoute> {
interface IndexRouteProps {
children?: React.ReactNode;
ref?: React.LegacyRef<IndexRoute> | undefined;
component?: Router.RouteComponent | undefined;

@@ -13,0 +15,0 @@ components?: Router.RouteComponents | undefined;

@@ -10,3 +10,5 @@ import * as React from 'react';

declare namespace self {
interface RedirectProps extends React.Props<Redirect> {
interface RedirectProps {
children?: React.ReactNode;
ref?: React.LegacyRef<Redirect> | undefined;
path?: Router.RoutePattern | undefined;

@@ -13,0 +15,0 @@ from?: Router.RoutePattern | undefined; // alias for path

@@ -11,3 +11,5 @@ import * as React from 'react';

interface RouteProps extends React.Props<Route> {
interface RouteProps {
children?: React.ReactNode;
ref?: React.LegacyRef<Route> | undefined;
path?: Router.RoutePattern | undefined;

@@ -14,0 +16,0 @@ component?: Router.RouteComponent | undefined;

@@ -24,3 +24,3 @@ import * as React from 'react';

type Component = React.ReactType;
type Component = React.ElementType;
type RouteComponent = Component;

@@ -59,3 +59,5 @@

interface RouterProps extends React.Props<Router> {
interface RouterProps {
children?: React.ReactNode;
ref?: React.LegacyRef<Router> | undefined;
history?: History | undefined;

@@ -69,3 +71,3 @@ routes?: RouteConfig | undefined; // alias for children

basename?: string | undefined;
render?: ((renderProps: React.Props<{}>) => RouterContext) | undefined;
render?: ((renderProps: { children?: React.ReactNode; ref?: React.LegacyRef<{}> | undefined; }) => RouterContext) | undefined;
}

@@ -72,0 +74,0 @@

@@ -10,3 +10,5 @@ import * as React from 'react';

declare namespace self {
interface RouterContextProps extends React.Props<RouterContext> {
interface RouterContextProps {
children?: React.ReactNode;
ref?: React.LegacyRef<RouterContext> | undefined;
history?: H.History | undefined;

@@ -13,0 +15,0 @@ router: Router;

{
"name": "@types/react-router",
"version": "2.0.59",
"version": "2.0.60",
"description": "TypeScript definitions for react-router",

@@ -51,4 +51,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-router",

},
"typesPublisherContentHash": "b401d5ac7126257560e32a496d57856403f0e13ee063ac15ab25bdb983688cf2",
"typesPublisherContentHash": "7d71c44e76e741c293a0c24fca7b4385b09eaa5b195e9c6ce39ae4141336f0e0",
"typeScriptVersion": "3.7"
}

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

### Additional Details
* Last updated: Wed, 20 Oct 2021 21:01:43 GMT
* Last updated: Thu, 21 Oct 2021 23:01:42 GMT
* Dependencies: [@types/history](https://npmjs.com/package/@types/history), [@types/react](https://npmjs.com/package/@types/react)

@@ -14,0 +14,0 @@ * Global values: `ReactRouter`

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