title: How to assign either a string or null to a variable TypeScript
body: <p>I have a variable which either can take string or null, currently i am defining all the type values hardcoded as below</p>
  <pre><code>  let name : 'Ram' | 'Shyam' | 'Paul' | null = null;
    name = customer.name as 'Ram' | 'Shyam' | 'Paul' | null;
  </code></pre>
  <p>Here, the values are hardcoded, how can i make it generic so that it can intake anything old and new both.</p>