/
opt
/
canhelp
/
node_modules
/
next
/
dist
/
client
/
compat
/
/opt/canhelp/node_modules/next/dist/client/compat
mkdir
upload
Name
Size
Mode
Actions
router.d.ts
615
0644
edit
dl
rm
router.js
797
0644
edit
dl
rm
router.js.map
1030
0644
edit
dl
rm
Edit:
/opt/canhelp/node_modules/next/dist/client/compat/router.d.ts
(615B)
import type { NextRouter } from '../router'; /** * useRouter from `next/compat/router` is designed to assist developers * migrating from `pages/` to `app/`. Unlike `next/router`, this hook does not * throw when the `NextRouter` is not mounted, and instead returns `null`. The * more concrete return type here lets developers use this hook within * components that could be shared between both `app/` and `pages/` and handle * to the case where the router is not mounted. * * @returns The `NextRouter` instance if it's available, otherwise `null`. */ export declare function useRouter(): NextRouter | null;
Save
cmd:
run