Skip to content

Non-required fields as null

Allow user to select how to model non-required fields:

  • (current) undefined via t.exact(t.intersection([t.partial(...), t.interface(...)]))
  • (new) null via t.union([..., t.null]) as a field value, so probably t.exact(t.interface(...)) at higher level