---
title: "Comment by Eirik Mo on \"Stop catching errors in TypeScript; Use the Either type to make your code predictable\" | Hashnode"
description: "This is great! I just tried it out for my signup flow and it makes my code so neat. Would you know a good way to integrate this with Zod or the like?"
url: "https://hashnode.com/posts/stop-catching-errors-in-typescript-use-the-either-type-to-make-your-code-predictable/61740f980f452c1cd94fa17c/comment/64e3bacda9a8b9bbc8cf95f6"
---

[Discussion](https://hashnode.com/posts/stop-catching-errors-in-typescript-use-the-either-type-to-make-your-code-predictable/61740f980f452c1cd94fa17c)

Comment [Stop catching errors in TypeScript; Use the Either type to make your code predictable](https://hashnode.com/posts/stop-catching-errors-in-typescript-use-the-either-type-to-make-your-code-predictable/61740f980f452c1cd94fa17c)

[Eirik Mo](https://hashnode.com/@EirikMo)

[Aug 21, 2023](https://hashnode.com/posts/stop-catching-errors-in-typescript-use-the-either-type-to-make-your-code-predictable/61740f980f452c1cd94fa17c/comment/64e3bacda9a8b9bbc8cf95f6)

This is great! I just tried it out for my signup flow and it makes my code so neat.

Would you know a good way to integrate this with Zod or the like?
