Route Props Helpers with params using string literal types or custom types #83450
Unanswered
joshunger
asked this question in
App Router
Replies: 1 comment 1 reply
-
Mmm I am a bit mixed with contexts right now, but I think this PR #82955 is what's missing? |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Now that Next.js 15.5 automatically generates globally available PageProps, LayoutProps, and RouteContext types with full parameter typing and no imports required what is the best way to generate params with a string literal type or custom type?
We would want to do something like -
Given something like
props: LayoutProps<"/[locale]">
EDIT: from what I can see ...
validator.ts
has:from
validator.ts
:from
routes.d.ts
:from
routes.d.ts
:Beta Was this translation helpful? Give feedback.
All reactions