[compiler] Update for Zod v3/v4 compatibility
Partial redo of #34710. The changes there tried to use `z.function(args, return)` to be compatible across Zod v3 and v4, but Zod 4's function API has completely changed. Instead, I've updated to just use `z.any()` where we expect a function, and manually validate that it's a function before we call the value. We already have validation of the return type (also using Zod).
K
kolvian committed
8335312a16caabd3ebe93760cce6169d783a6918
Parent: 71753ac
Committed by Joe Savona <joesavona@fb.com>
on 10/3/2025, 4:59:52 PM