Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: Typed Query Params #103

Open
malkhuzayyim opened this issue Jul 4, 2023 · 1 comment
Open

Suggestion: Typed Query Params #103

malkhuzayyim opened this issue Jul 4, 2023 · 1 comment

Comments

@malkhuzayyim
Copy link

Is it at all possible to support types for query params, assuming we do define them on the pages that accept query params?

Something like: https://tanstack.com/router/v1/docs/guide/search-params#validating-and-typing-search-params

Or would this be overreaching a bit here?

@victorgarciaesgi
Copy link
Owner

It not at all overreaching I though about it too, but as I'm based only on Nuxt file system, which is based on file name this is not possible at the moment :(
If Nuxt add a way of declaring query params and can provide it to the modules it can be possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants