Skip to content

Commit 2d9bb9d

Browse files
committed
Avoid exporting intermediary type HTMLAnchorProps
1 parent 35b04df commit 2d9bb9d

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

src/lib/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { cx } from "./cx";
1010
export type { FrCxArg } from "./cx";
1111
export { DsfrLangProvider } from "./i18n";
1212
export { createDsfrLinkProvider } from "./routing";
13-
export type { RegisterLink, RegisteredLinkProps, HTMLAnchorProps } from "./routing";
13+
export type { RegisterLink, RegisteredLinkProps } from "./routing";
1414

1515
export const fr = {
1616
breakpoints,

src/lib/routing.tsx

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,9 @@
11
import React, { createContext, useContext } from "react";
22
import type { ReactNode } from "react";
33
import { assert } from "tsafe/assert";
4-
54
import type { DetailedHTMLProps, AnchorHTMLAttributes } from "react";
65

7-
// eslint-disable-next-line @typescript-eslint/no-empty-interface
8-
9-
/*
10-
export interface LinkProps extends React.AriaAttributes {
11-
className?: string;
12-
children?: ReactNode;
13-
}
14-
*/
15-
16-
export type HTMLAnchorProps = DetailedHTMLProps<
6+
type HTMLAnchorProps = DetailedHTMLProps<
177
AnchorHTMLAttributes<HTMLAnchorElement>,
188
HTMLAnchorElement
199
>;

0 commit comments

Comments
 (0)