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 3.0.24 to 3.0.25

4

react-router v3.0/lib/IndexLink.d.ts

@@ -8,4 +8,4 @@ import { ComponentClass, CSSProperties, HTMLProps } from "react";

to: LocationDescriptor | ToLocationFunction;
activeClassName?: string;
activeStyle?: CSSProperties;
activeClassName?: string | undefined;
activeStyle?: CSSProperties | undefined;
}

@@ -12,0 +12,0 @@

@@ -7,3 +7,3 @@ import { ComponentClass, ClassAttributes } from "react";

to: RoutePattern;
query?: Query;
query?: Query | undefined;
}

@@ -10,0 +10,0 @@

@@ -16,10 +16,10 @@ import { ComponentClass, ClassAttributes } from "react";

export interface IndexRouteProps<Props = any> {
component?: RouteComponent;
components?: RouteComponents;
props?: Props;
component?: RouteComponent | undefined;
components?: RouteComponents | undefined;
props?: Props | undefined;
getComponent?(nextState: RouterState, callback: ComponentCallback): void;
getComponents?(nextState: RouterState, callback: ComponentsCallback): void;
onEnter?: EnterHook;
onChange?: ChangeHook;
onLeave?: LeaveHook;
onEnter?: EnterHook | undefined;
onChange?: ChangeHook | undefined;
onLeave?: LeaveHook | undefined;
}

@@ -26,0 +26,0 @@

@@ -5,3 +5,3 @@ import { ComponentClass, CSSProperties, HTMLProps } from "react";

export interface LinkProps extends IndexLinkProps {
onlyActiveOnIndex?: boolean;
onlyActiveOnIndex?: boolean | undefined;
}

@@ -8,0 +8,0 @@

@@ -6,5 +6,5 @@ import { Basename, History, Location, LocationDescriptor } from "history";

routes: RouteConfig;
basename?: Basename;
parseQueryString?: ParseQueryString;
stringifyQuery?: StringifyQuery;
basename?: Basename | undefined;
parseQueryString?: ParseQueryString | undefined;
stringifyQuery?: StringifyQuery | undefined;
}

@@ -14,7 +14,7 @@

location: LocationDescriptor;
history?: History;
history?: History | undefined;
}
export interface MatchHistoryArgs extends MatchArgs {
location?: LocationDescriptor;
location?: LocationDescriptor | undefined;
history: History;

@@ -21,0 +21,0 @@ }

@@ -15,3 +15,3 @@ import { ComponentClass, ClassAttributes } from "react";

export interface RouteProps<Props = any> extends IndexRouteProps<Props> {
path?: RoutePattern;
path?: RoutePattern | undefined;
}

@@ -28,6 +28,6 @@

export interface PlainRoute<Props = any> extends RouteProps<Props> {
childRoutes?: PlainRoute[];
childRoutes?: PlainRoute[] | undefined;
getChildRoutes?(partialNextState: LocationState, callback: RoutesCallback): void;
indexRoute?: PlainRoute;
indexRoute?: PlainRoute | undefined;
getIndexRoute?(partialNextState: LocationState, callback: RouteCallback): void;
}

@@ -79,4 +79,4 @@ import { Component, ComponentClass, ClassAttributes, ReactNode, StatelessComponent } from "react";

export interface RouterProps extends ClassAttributes<any> {
routes?: RouteConfig;
history?: History;
routes?: RouteConfig | undefined;
history?: History | undefined;
createElement?(component: RouteComponent, props: any): any;

@@ -83,0 +83,0 @@ onError?(error: any): any;

@@ -7,3 +7,3 @@ import { ComponentClass, StatelessComponent } from "react";

interface Options {
withRef?: boolean;
withRef?: boolean | undefined;
}

@@ -10,0 +10,0 @@

{
"name": "@types/react-router",
"version": "3.0.24",
"version": "3.0.25",
"description": "TypeScript definitions for react-router",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-router",
"license": "MIT",

@@ -80,4 +81,4 @@ "contributors": [

},
"typesPublisherContentHash": "a1e4091a9d49ac8f4835d362bd6703ce47f58bd3a95045dcc14b226e38e8e77f",
"typeScriptVersion": "3.5"
"typesPublisherContentHash": "bdcca9e22643c1a6c0b9a9d4b10c52ec9ace324389d7383d2e90d6332fc348fb",
"typeScriptVersion": "3.6"
}

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

### Additional Details
* Last updated: Wed, 12 Aug 2020 02:39:27 GMT
* Last updated: Wed, 07 Jul 2021 17:33:58 GMT
* Dependencies: [@types/history](https://npmjs.com/package/@types/history), [@types/react](https://npmjs.com/package/@types/react)

@@ -14,0 +14,0 @@ * Global values: none

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