Skip to content

Commit

Permalink
href: string
Browse files Browse the repository at this point in the history
  • Loading branch information
ddecrulle committed Mar 4, 2024
1 parent 0ab7dc2 commit 89c3f5c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,7 @@ export type RegisteredLinkProps = RegisterLink extends { Link: infer Link }
?
| Omit<UnpackProps<Link>, "children">
| (Omit<HTMLAnchorProps, "children" | "href"> & {
href:
| `//${string}`
| `https://${string}`
| `http://${string}`
| `#${string}`
| string; // to handle mailto:mail@domain.fr or tel:0123456789 ...
href: string;
})
: Omit<HTMLAnchorProps, "children">;

Expand Down

0 comments on commit 89c3f5c

Please sign in to comment.