Skip to content

Commit 9a7b4df

Browse files
authored
fix anchor tags types to also allow undefined (#260)
1 parent 6efd26b commit 9a7b4df

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/components.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -198,12 +198,12 @@ export const Outlet = () => {
198198

199199
export interface AnchorProps extends Omit<JSX.AnchorHTMLAttributes<HTMLAnchorElement>, "state"> {
200200
href: string;
201-
replace?: boolean;
202-
noScroll?: boolean;
203-
state?: unknown;
204-
inactiveClass?: string;
205-
activeClass?: string;
206-
end?: boolean;
201+
replace?: boolean | undefined;
202+
noScroll?: boolean | undefined;
203+
state?: unknown | undefined;
204+
inactiveClass?: string | undefined;
205+
activeClass?: string | undefined;
206+
end?: boolean | undefined;
207207
}
208208
export function A(props: AnchorProps) {
209209
props = mergeProps({ inactiveClass: "inactive", activeClass: "active" }, props);

0 commit comments

Comments
 (0)