-
Hi, I would like to validate that something is an array without validating the items inside the array. Simple knowing that it is an array is enough for me. The return type could be: I see that valibot/library/src/schemas/array/array.ts Lines 91 to 98 in d7ef5fb |
Beta Was this translation helpful? Give feedback.
Answered by
itsramiel
Sep 13, 2024
Replies: 1 comment 3 replies
-
Like this maybe: v.custom<Array<unknown>>((x) => Array.isArray(x)) or is there a better way? |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
itsramiel
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Like this maybe:
or is there a better way?