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