Commit d1b61ed3 authored by tom's avatar tom

deprecate link

parent c61b982d
......@@ -5,6 +5,9 @@ import type { RouteName } from './routes';
const PATH_PARAM_REGEXP = /\/:(\w+)/g;
/**
* @deprecated Please consider to use "import { route } from 'nextjs-routes';" instead
*/
export default function link(
routeName: RouteName,
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