Aidan647
Aidan647
ZZod
Created by Aidan647 on 3/11/2024 in #questions
Aidan647 - how can I validate other1 and other2...
I have it in pretty odd place where I don't save the result of parse, I just need it to crash if it does not have them
14 replies
ZZod
Created by Aidan647 on 3/11/2024 in #questions
Aidan647 - how can I validate other1 and other2...
you gave me an idea and it works so basically I validate other1 and other2 separately
testOther1.parse(func.other1)
testOther2.parse(func.other2)
testOther1.parse(func.other1)
testOther2.parse(func.other2)
14 replies
ZZod
Created by Aidan647 on 3/11/2024 in #questions
Aidan647 - how can I validate other1 and other2...
just object part in function
14 replies
ZZod
Created by Aidan647 on 3/11/2024 in #questions
Aidan647 - how can I validate other1 and other2...
I don't need to parse function
14 replies
ZZod
Created by Aidan647 on 3/11/2024 in #questions
Aidan647 - how can I validate other1 and other2...
tried z.function and z.object and z.object and z.function
14 replies
ZZod
Created by Aidan647 on 3/11/2024 in #questions
Aidan647 - how can I validate other1 and other2...
"message": "Expected object, received function"
14 replies