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
getcursor/cursorTypeScriptJavaScriptCSS10k+7.9k643+530
Chanzhaoyu/chatgpt-webVueTypeScriptLess11.9k+2.3k3.6k+885
lencx/ChatGPTRustTypeScriptRuby27.5k+2.3k2.8k+272
dair-ai/Prompt-Engineering-GuideJupyter NotebookTypeScriptOther19.1k+2k1.5k+222
openai/openai-cookbookJupyter NotebookPythonTypeScript23.8k+1.9k3.3k+315
kamranahmedse/developer-roadmapAstroJavaScriptTypeScript234.9k+58833.5k+50
codebdy/rxdragTypeScriptOther2.6k+554325+40
CorentinTh/it-toolsVueTypeScriptJavaScript1.2k+528108+21
thinkingjimmy/Learning-PromptCSSTypeScriptJavaScript745+23047+21
AppFlowy-IO/AppFlowyDartRustTypeScript33.1k+1692k+15