-
-
Notifications
You must be signed in to change notification settings - Fork 455
Add parseNumbers
option to .parse()
#171
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
Conversation
I may be worth it to update typescript types |
I don't think |
How about |
Would it make sense to make this option a little more generic so it can handle other primitives? Or do you think there is a possibility that someone might want number conversions and not boolean conversions for example? If you want to have a generic name I think something like parseTypes or parsePrimitiveTypes. If you want to handle each primitive separately, I think prepending E.g.:
|
I don't see us adding more than |
I prefer the |
I prefer plural since this option parses all numbers, not just one. But that's being really nitpicky :p |
Alright, |
Thanks for this option, it's awesome ! |
parseNumbers
option to .parse()
Pretty close to being done. The merge conflict needs to be resolved. |
Looks good. Thanks :) |
Current
parse
would return all value as string but I would like an option to return number as number.