Auto import route types #13935
ramizbrain
started this conversation in
Proposals
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a small DX improvement suggestion:
It would be great if the Vite plugin could auto-import route types, like:
import type { Route } from './+types/about'
This is inspired by TanStack Router’s Vite plugin, which automatically imports route configs.
Auto-importing types would reduce boilerplate and make working with typed routes (loaders, actions, etc.) more seamless.
Would love to hear if this is possible or planned. Thankyouu!
Beta Was this translation helpful? Give feedback.
All reactions