@mbao01/next 0.5.0 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { LinkProps as OriginalLinkProps } from "next/dist/client/link.js";
|
|
2
|
+
import { AnchorHTMLAttributes, DetailedHTMLProps } from "react";
|
|
2
3
|
import { type UrlObject } from "url";
|
|
3
4
|
import { type VariantProps } from "@mbao01/common/libs";
|
|
4
5
|
import { getLinkClasses } from "./constant";
|
|
5
|
-
export type LinkProps<T> =
|
|
6
|
+
export type LinkProps<T> = Omit<Omit<DetailedHTMLProps<AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, keyof OriginalLinkProps> & OriginalLinkProps, "href"> & {
|
|
6
7
|
isExternal?: boolean;
|
|
7
8
|
hardNavigate?: boolean;
|
|
8
9
|
} & ({
|