Commit 3977796c authored by tom's avatar tom

deprecate link

parent fe12a4d5
...@@ -5,6 +5,9 @@ import type { RouteName } from './routes'; ...@@ -5,6 +5,9 @@ import type { RouteName } from './routes';
const PATH_PARAM_REGEXP = /\/:(\w+)/g; const PATH_PARAM_REGEXP = /\/:(\w+)/g;
/**
* @deprecated Please consider to use "import { route } from 'nextjs-routes';" instead
*/
export default function link( export default function link(
routeName: RouteName, routeName: RouteName,
urlParams?: Record<string, Array<string> | string | undefined>, urlParams?: Record<string, Array<string> | string | undefined>,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment