The tip that saved me HOURS of refactoring time - Advanced TypeScript

folks this one simple trick will improve your refactoring whenever you need to use like an undefined value in typescript here i've got a create user function where i'm creating a bunch of different users but i've now got a new requirement here which is i also need to add a role to some users and some not so here what i could do is i could say for some users i'm going to pass them a role which is going to be admin like this except i reall...
repotechsstarsweeklyforksweekly
arc53/DocsGPTPythonTypeScriptCSS11.7k+4.8k1.1k+364
usebruno/brunoJavaScriptTypeScriptOther5.1k+2.2k155+61
ToolJet/ToolJetJavaScriptTypeScriptSCSS24k+1.9k2.3k+117
appwrite/appwriteTypeScriptPHPOther36.8k+1.5k3.3k+105
novuhq/novuTypeScriptPythonJavaScript29.3k+1.5k2.5k+179
wasp-lang/waspTypeScriptJavaScriptCSS6.6k+1.2k276+26
teamhanko/hankoTypeScriptGoCSS4k+998140+19
jmorganca/ollamaGoTypeScriptShell9.3k+957499+49
CrowdDotDev/crowd.devTypeScriptVueJavaScript2.4k+753131+11
ArchGPT/insomniumJavaScriptTypeScriptCSS1.3k+60535+26