How to enforce both args of a function to be same member of a union type ?In the article we will discuss different approaches to make sure that a function taking two arguments are of the same type.Oct 27, 2024Oct 27, 2024
What does the keyword extends mean in TypeScript ?extends is likely the most important keyword in TypeScript. The thing is that extends means different things depending on the context.Jun 8, 2024Jun 8, 2024
Mutually exclusive props in TypeScriptElectrons of a atom can’t be in the same quantum state — Credits: Webstacks on UnsplashSep 28, 2023Sep 28, 2023
Generic type React component in TypeScriptIn the present article, we’ll discuss on how to write a Generic type React component. Generics are the hardest TypeScript features to get…Mar 12, 2023Mar 12, 2023
Conditionally prepend a string to another string in TypeScriptThis short article will discuss on how to prepend a string conditionally in the most composable way.Dec 16, 2022Dec 16, 2022
Things I wish I knew before jumping into TypeScriptLast updated on 2024–10–19 to include changes up to TS 5.6.3Jul 14, 2022Jul 14, 2022