Mihai Olteanblog.mihaioltean.com·Nov 8, 2024Typescript stories - Generics vs Union typesThis will be a quick and more “back-to-basics” kind of article. While doing some small refactoring, I stumbled across a situation where I had to pass an object, but the shape of the object is completely different depending on the component using that...1 like·40 readsTypeScriptAdd a thoughtful commentNo comments yetBe the first to start the conversation.