I want "value" and "defaultValue" not to appear at the same time, but my code didn't reach the effect.
type T = { 
    value: string;
    // other props
 } | { 
    defaultValue: string;
    // other props
 };
 let t: T = {value: '', defaultValue: ''}; // why can it appear at the same time
Expected behavior:
"value" and "defaultValue" not to appear at the same time.
Actual behavior:
"value" and "defaultValue" appear at the same time.