Schema.transform has always been a bit of a tough task—first, because you have to figure out whether you've correctly placed the source schemas into the function. But then TypeScript highlights the entire options block in red and throws massive errors about incompatibility—so I used to return 123 as any from encode-decode just to see what arguments the functions were expecting.return hole()! Now, when I hover over the hole, I can see exactly what type I need to remap the incoming data to!