Skip to content

Commit 2cb07aa

Browse files
committed
Remove duplicate export of HrefsFormatter.
1 parent 1bd4047 commit 2cb07aa

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

packages/wouter-preact/types/router.d.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,14 @@ import {
33
SearchString,
44
BaseLocationHook,
55
BaseSearchHook,
6+
HrefsFormatter,
67
} from "./location-hook.js";
78

89
export type Parser = (
910
route: Path,
1011
loose?: boolean
1112
) => { pattern: RegExp; keys: string[] };
1213

13-
export type HrefsFormatter = (href: string, router: RouterObject) => string;
14-
1514
// the object returned from `useRouter`
1615
export interface RouterObject {
1716
readonly hook: BaseLocationHook;

packages/wouter/types/router.d.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,14 @@ import {
33
SearchString,
44
BaseLocationHook,
55
BaseSearchHook,
6+
HrefsFormatter,
67
} from "./location-hook.js";
78

89
export type Parser = (
910
route: Path,
1011
loose?: boolean
1112
) => { pattern: RegExp; keys: string[] };
1213

13-
export type HrefsFormatter = (href: string, router: RouterObject) => string;
14-
1514
// the object returned from `useRouter`
1615
export interface RouterObject {
1716
readonly hook: BaseLocationHook;

0 commit comments

Comments
 (0)