Skip to content

Commit

Permalink
v6.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sapkra committed Nov 17, 2021
1 parent 749ebe9 commit 4f2b7d4
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
12 changes: 6 additions & 6 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import { match } from "react-router";
import { RouteConfig } from "react-router-config";
import { Location } from "history";
import { PathMatch, RouteObject } from 'react-router';
import { Location } from 'history';
export interface TitleObject {
title: string;
titles: string[];
params: match["params"];
params: PathMatch['params'];
}
declare type Routes = RouteConfigExtended[] | {
[name: string]: RouteConfigExtended;
};
export interface RouteConfigExtended extends Omit<RouteConfig, "routes"> {
export interface RouteConfigExtended extends Omit<RouteObject, 'children'> {
title: string;
titleConcat?: boolean;
routes?: Routes;
children?: Routes;
path: string;
}
export interface RouterTitleProps {
routesConfig: Routes;
Expand Down
14 changes: 7 additions & 7 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-router-title",
"version": "1.3.4",
"version": "6.0.0",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"author": "@lynoapp",
Expand Down

0 comments on commit 4f2b7d4

Please sign in to comment.