Gabriel FreitasBranded and computed types with metadata in TypeScriptIn some contexts, when using TypeScript, we want to create subtypes of primitive type that carry some characteristics. For example, we want…Mar 4, 20231Mar 4, 20231
Gabriel FreitasHow to validate computed hash keys in TypeScriptA common problem in typescript is that we can’t detect when a computed key is duplicated, in this post I am going to show you some…Mar 4, 2023Mar 4, 2023
Gabriel FreitasRewriting the best TypeScript utility generic typesUnion to IntersectionFeb 8, 2023Feb 8, 2023
Gabriel FreitasTypeScript: How to avoid repetition when using genericsWhen we use generics in TypesScript it’s not possible to pass it to posterior calls, limiting its usability.Mar 15, 2022Mar 15, 2022