Resources 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...
slamcode.hashnode.dev10 min read