MapleLeaf 🍁M

Feature request: v.nullish(someValidator)

Equivalent to this:
export const nullish = <T>(validator: Validator<T>) =>
    v.optional(v.union(validator, v.null()))


Because I often CBA whether an input is null or undefined :lul: so many data sources will just decide whether to do one or the other
Was this page helpful?