SchemaValueWithOptional
Given a type (FieldValue) and a required + default function, this generates the correct type or union with undefined.
Definition
Type: SchemaValueWithOptional = R extends true ? T : D extends true ? T : undefined | T
Given a type (FieldValue) and a required + default function, this generates the correct type or union with undefined.
Type: SchemaValueWithOptional = R extends true ? T : D extends true ? T : undefined | T