The examples here cover scenarios where I add 1 of 3 different attributes to my optional field to make it generate ? or | undefined.
However, I'm not adding any attributes. Serde's normal behavior with an Option is to allow it to be null. However, if a field isn't supplied (set to undefined in JS) then serde will fail when it doesn't have the field it expects.
To summarize, if my field is just a normal Option<String> with no fallback for the missing value, so tsify should generate string | null to be accurate to serde's behavior.