Thomas RubattelHow 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 27Oct 27
Thomas RubattelWhat 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 8Jun 8
Thomas RubattelMutually exclusive props in TypeScriptElectrons of a atom can’t be in the same quantum state — Credits: Webstacks on UnsplashSep 28, 2023Sep 28, 2023
Thomas RubattelGeneric 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
Thomas RubattelConditionally 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
Thomas RubattelThings 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