Skip to content

Commit 4f2b7d4

Browse files
committed
v6.0.0
1 parent 749ebe9 commit 4f2b7d4

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

dist/index.d.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
import { match } from "react-router";
2-
import { RouteConfig } from "react-router-config";
3-
import { Location } from "history";
1+
import { PathMatch, RouteObject } from 'react-router';
2+
import { Location } from 'history';
43
export interface TitleObject {
54
title: string;
65
titles: string[];
7-
params: match["params"];
6+
params: PathMatch['params'];
87
}
98
declare type Routes = RouteConfigExtended[] | {
109
[name: string]: RouteConfigExtended;
1110
};
12-
export interface RouteConfigExtended extends Omit<RouteConfig, "routes"> {
11+
export interface RouteConfigExtended extends Omit<RouteObject, 'children'> {
1312
title: string;
1413
titleConcat?: boolean;
15-
routes?: Routes;
14+
children?: Routes;
15+
path: string;
1616
}
1717
export interface RouterTitleProps {
1818
routesConfig: Routes;

dist/index.js

+7-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-router-title",
3-
"version": "1.3.4",
3+
"version": "6.0.0",
44
"main": "dist/index.js",
55
"types": "dist/index.d.ts",
66
"author": "@lynoapp",

0 commit comments

Comments
 (0)