ow icon indicating copy to clipboard operation
ow copied to clipboard

how to add a predicate to ofType

Open dbclkclk opened this issue 3 years ago • 1 comments

I've try doing

  1. ow.array.ofType((val) => { .... });
  2. ow.array.validate({validator: (val) => {} }

It always throws an error related to the parameter being sent to my callbacks. Thoughts?

dbclkclk avatar Aug 04 '20 08:08 dbclkclk

You need to pass in a valid validator, e.g. ow.array.ofType(ow.string). It would be helpful to see your implementation of the callback if that isn't to your needs.

cpiber avatar Sep 24 '21 11:09 cpiber