You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
airtonix
changed the title
writeTypesToDisc should allow custom destination.
configuration should allow custom destination for generated types.
Jan 25, 2022
I have another reason this is a good idea - I would love to be able to reference valid paths from another project that has redirects/API access to my NextJS project, and I use a monorepo structure - so it would be super cool if the definitions could even be sent outside the project to such a subpackage, so that I can use the getRoute() helper fully outside of NextJS (rather than needing to have all of the NextJS project as a dependency).
next-type-safe-routes/src/plugin/index.ts
Line 37 in e181640
in our nextjs projects we write out other generated typescript
.d.ts
files for our gql schema underapps/ appname/ __generated__/ ts-gql/ .* src/ pages/ components/ services/ etc/ etc/ etc/
we'd like to put our route types:
The text was updated successfully, but these errors were encountered: