@types/react-router-config
Advanced tools
Comparing version 5.0.7 to 5.0.8
@@ -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 |
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
6727
41
68