-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
80de2ae
commit d5c0396
Showing
7 changed files
with
165 additions
and
243 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.' | ||
// Run `yarn nextjs-routes` to regenerate this file. | ||
|
||
//import type { NextUrl } from "nextjs-routes"; | ||
// , Router, LinkProps, NextLink | ||
type Routes = NextUrl<"/api/hello"> | NextUrl<"/index">; | ||
|
||
declare module "next/link" { | ||
function Link(props: string): number; | ||
export default Link; | ||
} | ||
|
||
declare module "next/router" { | ||
export function useRouter(): Router<Routes>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "nextjs-routes", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Type safe routing for Next.js", | ||
"license": "MIT", | ||
"author": "Tate <[email protected]>", | ||
|
@@ -22,9 +22,7 @@ | |
"lint:fix": "prettier --write . && prettier-package-json --write '{,example/}package.json' && eslint --fix .", | ||
"package:prune": "find dist -name test.* | xargs rm", | ||
"test": "yarn jest", | ||
"typecheck": "yarn tsc --noEmit", | ||
"version": "yarn run build && git add -A package.json", | ||
"postversion": "git push && git push --tags" | ||
"typecheck": "yarn tsc --noEmit" | ||
}, | ||
"sideEffects": false, | ||
"types": "dist/index.d.ts", | ||
|
@@ -50,6 +48,7 @@ | |
"next": "^12.1.0", | ||
"prettier": "^2.1.1", | ||
"prettier-package-json": "^2.1.3", | ||
"react": "^17.0.2", | ||
"typescript": "^4.1.3", | ||
"webpack": "^5.37.0", | ||
"webpack-cli": "^4.7.0" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.