Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/react-router-config

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/react-router-config - npm Package Compare versions

Comparing version 5.0.7 to 5.0.8

13

react-router-config/index.d.ts

@@ -8,8 +8,9 @@ // Type definitions for react-router-config 5.0

import * as React from 'react';
import { RouteComponentProps, SwitchProps, match } from 'react-router';
import { Location } from 'history';
import { Location } from "history";
import * as React from "react";
import { match, RouteComponentProps, SwitchProps } from "react-router";
export interface RouteConfigComponentProps<Params extends { [K in keyof Params]?: string } = {}>
extends RouteComponentProps<Params> {
extends RouteComponentProps<Params>
{
route?: RouteConfig | undefined;

@@ -32,3 +33,3 @@ }

Params extends { [K in keyof Params]?: string },
TRouteConfig extends RouteConfig = RouteConfig
TRouteConfig extends RouteConfig = RouteConfig,
> {

@@ -41,3 +42,3 @@ route: TRouteConfig;

Params extends { [K in keyof Params]?: string },
TRouteConfig extends RouteConfig = RouteConfig
TRouteConfig extends RouteConfig = RouteConfig,
>(routes: TRouteConfig[], pathname: string): Array<MatchedRoute<Params, TRouteConfig>>;

@@ -44,0 +45,0 @@

{
"name": "@types/react-router-config",
"version": "5.0.7",
"version": "5.0.8",
"description": "TypeScript definitions for react-router-config",

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

},
"typesPublisherContentHash": "58a65429a9f6d2d3bc706ae43e374263b53ba030699f80e2f87061f5266020d6",
"typeScriptVersion": "4.3"
"typesPublisherContentHash": "1a761c1259f24fa4059c5acd26c99695c2e73994a0830b62887b497fe70c4479",
"typeScriptVersion": "4.5"
}

@@ -18,8 +18,9 @@ # Installation

import * as React from 'react';
import { RouteComponentProps, SwitchProps, match } from 'react-router';
import { Location } from 'history';
import { Location } from "history";
import * as React from "react";
import { match, RouteComponentProps, SwitchProps } from "react-router";
export interface RouteConfigComponentProps<Params extends { [K in keyof Params]?: string } = {}>
extends RouteComponentProps<Params> {
extends RouteComponentProps<Params>
{
route?: RouteConfig | undefined;

@@ -42,3 +43,3 @@ }

Params extends { [K in keyof Params]?: string },
TRouteConfig extends RouteConfig = RouteConfig
TRouteConfig extends RouteConfig = RouteConfig,
> {

@@ -51,3 +52,3 @@ route: TRouteConfig;

Params extends { [K in keyof Params]?: string },
TRouteConfig extends RouteConfig = RouteConfig
TRouteConfig extends RouteConfig = RouteConfig,
>(routes: TRouteConfig[], pathname: string): Array<MatchedRoute<Params, TRouteConfig>>;

@@ -64,3 +65,3 @@

### Additional Details
* Last updated: Wed, 05 Apr 2023 19:33:19 GMT
* Last updated: Wed, 27 Sep 2023 07:12:04 GMT
* Dependencies: [@types/history](https://npmjs.com/package/@types/history), [@types/react](https://npmjs.com/package/@types/react), [@types/react-router](https://npmjs.com/package/@types/react-router)

@@ -67,0 +68,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