Appearance
literal 不能使用 coerce
const tuna = z.literal("tuna");
tuna 只能匹配 "tuna"
"tuna"
const colors = z.literal(["red", "green", "blue"]); colors.parse("green"); // ✅