Trey is a well-rounded engineer with experience ranging from architecting microservices and continuous delivery pipelines to developing design style guides and React libraries, with his core specialties being TypeScript and React. Before joining Nearform in 2019 Trey worked for CuriosityStream as their Lead Frontend Engineer, a Tech Lead at Visionist, and a freelance web developer at a variety of startups. Passionate about teaching and mentorship, Trey’s also worked with organizations such as General Assembly and Codementor to lead workshops and help fellow developers. Outside of work Trey enjoys traveling, learning new languages, and all the board games.
Narrowing Types in TypeScript
April 13, 2022
Type narrowing is just what it sounds like—narrowing down a general type into something more precise. Here's how to do it.