busypeoples
busypeoples
I will check. Also check this part, I think you need to wrap the object in () in your example. ```js baz: (values) => ({ x: [[val => false, "error"]],...
@benneq Thank you very much for the very valuable feedback. You shouldn't have to understand ramda to use the library. This is excellent feedback and shows some potential on how...
Regarding the ramda example from the beginning of this: Not sure if `a` is valid, but `b` and `c` are the same, they expect an array of items and return...
This is what calling `b` or `c` in your example would return: ```js [ { "firstName": [ [ ..., "Minimum firstName length of 6 is required." ] ], "lastName": [...
I would neglect the last option, I don't think this could even work. Not sure what the result would be, but you need a very specific structure to make it...
This is the only other use case where this approach makes sense: ```js const data = { foo: {bar: 1} }; const rules = { foo: (value) => { return...
```js const data = { foo: ["a", "b", "c"] } ``` This is like the users example, sure.
If the input is an object, we also have to return an object, if the input is an array, we have to return an array. The input/output have to match....
@benneq But no stress. It doesn't have to be explicit for now.
Sure, but you can define the type recursively for now, this will work. ```js ((value: INPUT) => SpecValue ``` Not tested, but this could be valid.