Keep optional strings from getting converted to empty strings
I have a script which has a whole bunch of fields marked as
string | undefined. For some reason though, fields with no value are coming though as empty strings instead of undefined. Is there any way to avoid this?