Slawomir Moriakslamcode.hashnode.devยทJan 2, 2024Resources to types with 'infer'Learn how you can make any string-based resource into a TypeScript type, and make the compiler do the hard work of checking the data for you. The magic of pattern matching in conditional types with the help of infer keyword is the topic for today. Ca...35 readsTypescript magicTypeScriptAdd a thoughtful commentNo comments yetBe the first to start the conversation.