Helper type for defining FieldTree. Given a type TValue that may include undefined, it extracts
the undefined outside the FieldTree type.
API
type MaybeFieldTree<TValue, TKey extends string | number = string | number> = | (TValue & undefined) | FieldTree<Exclude<TValue, undefined>, TKey>
Jump to details