Skip to content

Create validations by iterating over an array #851

Answered by fabian-hiller
ruiaraujo012 asked this question in Q&A
Discussion options

You must be logged in to vote

Unfortunately, since we are not exposing a rest parameter argument via the overload signatures of pipe, TS will complain. Feel free to create a separate issue for this use case. I will see if we can make this possible. In the meantime, you can use check or rawCheck as a workaround. You could also tell/force TS that [].map(...) returns [v.RegexAction<string, string>].

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ruiaraujo012
Comment options

Answer selected by ruiaraujo012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants