The typedRoutes types suggestions from external libs folder #19719
MuttakinHasib
started this conversation in
General
Replies: 1 comment 1 reply
-
You can, but you have to include the types in the library's tsconfig file. e.g. {
//...
"include": [
"src/**/*.js",
"src/**/*.jsx",
"src/**/*.ts",
"src/**/*.tsx",
"../../apps/demo/.next/types/**/*.ts",
"../../dist/apps/demo/.next/types/**/*.ts"
]
} The path is relative to the library's tsconfig file, so in this case I have to use |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there any way to make it work on NX monorepo that will gives the Next.js 13 typedRoutes types suggestions to the external libs folders?
Beta Was this translation helpful? Give feedback.
All reactions