import { z } from "zod"; export let noJS = z // convert "true" to boolean, treat any other value as false .preprocess((v) => v === "true", z.boolean()) .nullable() // allow it to be null .default(true); // default to true (support the worst scenario)