We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e03f230 commit f61e054Copy full SHA for f61e054
src/link.tsx
@@ -14,7 +14,16 @@ type HTMLAnchorProps = DetailedHTMLProps<
14
export interface RegisterLink {}
15
16
export type RegisteredLinkProps = RegisterLink extends { Link: infer Link }
17
- ? Omit<UnpackProps<Link>, "children">
+ ?
18
+ | Omit<UnpackProps<Link>, "children">
19
+ | (Omit<HTMLAnchorProps, "children" | "href"> & {
20
+ href:
21
+ | `mailto:${string}`
22
+ | `//${string}`
23
+ | `https://${string}`
24
+ | `http://${string}`
25
+ | `#${string}`;
26
+ })
27
: Omit<HTMLAnchorProps, "children">;
28
29
let Link: React.ComponentType<RegisteredLinkProps & { children: ReactNode }> = props => {
0 commit comments