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

Use of booleans #39

Closed
ferferga opened this issue Jan 11, 2022 · 1 comment
Closed

Use of booleans #39

ferferga opened this issue Jan 11, 2022 · 1 comment

Comments

@ferferga
Copy link

Hello!

I want to replace qs with ufo as the latter is much more lighter and it's already included in nuxt, so I think it's a good and powerful replacement :).

I'm struggling to use withQuery as it expects a QueryType object, which only accepts strings or array of strings. I want to pass a boolean variable.

How I can accomplish it without using 'true'? Is the parsing of booleans out of the scope of ufo?

Thank you very much in advance!

@airmoi
Copy link
Contributor

airmoi commented Mar 30, 2022

+1, Not being able to handle booleans in query params is disappointing.

A fix was commited to handle numbers in QueryValue recently (a9626ff).
Could we also add support for booleans ?

Edit: I made a small pull request to fix it #51

@pi0 pi0 closed this as completed Mar 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants