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 TypeScriptThe goal of the present article is to show how to write a React component with mutually exclusive props in a type-safe fashion in TS.Sep 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–01–01 to include changes up to TS 5.3.2Jul 14, 2022Jul 14, 2022
Thomas RubattelFunction composition vs function decoratorFunction composition and function decorator are two different techniques for combining functions.Feb 11, 2021Feb 11, 2021