@mbao01/next 0.0.24 → 0.0.25

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,5 +1,13 @@
1
1
  /// <reference path="../../../../.next/types/link.d.ts" />
2
- import type { LinkProps as NextLinkProps } from "next/link";
2
+ /// <reference types="node" />
3
+ import { type UrlObject } from "url";
4
+ import type { LinkRestProps } from "next/link";
3
5
  import { type VariantProps } from "@mbao01/common/libs";
4
6
  import { getLinkClasses } from "./constant";
5
- export type LinkProps<T> = NextLinkProps<T> & VariantProps<typeof getLinkClasses>;
7
+ export type LinkProps<T> = LinkRestProps & {
8
+ /**
9
+ * The path or URL to navigate to. This is the only required prop. It can also be an object.
10
+ * @see https://nextjs.org/docs/api-reference/next/link
11
+ */
12
+ href: __next_route_internal_types__.RouteImpl<T> | UrlObject;
13
+ } & VariantProps<typeof getLinkClasses>;