@mbao01/next 0.0.30 → 0.0.32
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,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type LinkProps } from "./types";
|
|
3
|
-
export declare const Link: <T>({ href, hover, target, variant, children, className, underline, ...props }: LinkProps<T>) => import("react").JSX.Element;
|
|
3
|
+
export declare const Link: <T>({ href, hover, target, variant, children, className, underline, isExternal, isInternal, ...props }: LinkProps<T>) => import("react").JSX.Element;
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
/// <reference path="../../../../.next/types/link.d.ts" />
|
|
2
2
|
/// <reference types="node" />
|
|
3
3
|
import { type UrlObject } from "url";
|
|
4
|
-
import type
|
|
4
|
+
import { type LinkRestProps } from "next/link";
|
|
5
5
|
import { type VariantProps } from "@mbao01/common/libs";
|
|
6
6
|
import { getLinkClasses } from "./constant";
|
|
7
7
|
export type LinkProps<T> = LinkRestProps & {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
* @see https://nextjs.org/docs/api-reference/next/link
|
|
11
|
-
*/
|
|
8
|
+
isExternal?: boolean;
|
|
9
|
+
} & ({
|
|
12
10
|
href: __next_route_internal_types__.RouteImpl<T> | UrlObject;
|
|
13
|
-
|
|
11
|
+
isInternal?: true;
|
|
12
|
+
} | {
|
|
13
|
+
href: string;
|
|
14
|
+
isInternal?: false;
|
|
15
|
+
}) & VariantProps<typeof getLinkClasses>;
|