generated from chiffre-io/template-library
-
-
Notifications
You must be signed in to change notification settings - Fork 227
Labels
featureNew feature or requestNew feature or requestparsers/built-inRelated to built-in parsersRelated to built-in parsers
Description
Discussed in #1019
Please see the discussion there for guidance if you want to pick this issue for a PR. 🙏
Originally posted by tacomanator June 20, 2025
There have been a few situations where this would be useful, so I wanted to suggest it.
For example, a date range parser could be implemented as:
parseAsTuple([parseAsIsoDate, parseAsIsoDate])Advantages over parseAsArrayOf(parseAsDate):
- Ensures both dates are present.
- Resulting type of
[string, string]instead ofstring[]prevents certain type errors. - Elements could have different types (not relevant in this example).
Just an example there are obviously many others.
Metadata
Metadata
Assignees
Labels
featureNew feature or requestNew feature or requestparsers/built-inRelated to built-in parsersRelated to built-in parsers