---
title: "Comment by Karolina Hudziec on \"TypeScript Utility Types: The 6 Most Useful\" | Hashnode"
description: "Great article! I have one questions though. In different examples you&#39;ve used interfaces and types. Does it matters and some utilities work just with types"
url: "https://hashnode.com/posts/typescript-utility-types-the-6-most-useful/62bc4142e189ddfaeac6d53f/comment/62c689bb60d6757393f841a7"
---

[Discussion](https://hashnode.com/posts/typescript-utility-types-the-6-most-useful/62bc4142e189ddfaeac6d53f)

Comment [TypeScript Utility Types: The 6 Most Useful](https://hashnode.com/posts/typescript-utility-types-the-6-most-useful/62bc4142e189ddfaeac6d53f)

[Karolina Hudziec](https://hashnode.com/@FutureInventor)

[Jul 7, 2022](https://hashnode.com/posts/typescript-utility-types-the-6-most-useful/62bc4142e189ddfaeac6d53f/comment/62c689bb60d6757393f841a7)

Great article! I have one questions though. In different examples you've used interfaces and types. Does it matters and some utilities work just with types and others just with interfaces or it does not matter and every utility mentioned above works with both interfaces and types?

[Sachin Chaurasiya](https://hashnode.com/@Sachinchaurasiya)

[Jul 7, 2022](https://hashnode.com/posts/typescript-utility-types-the-6-most-useful/62bc4142e189ddfaeac6d53f/comment/62c689bb60d6757393f841a7#reply-62c694bc60d6757393f84456)

Thanks [Karolina Hudziec](https://hashnode.com/@FutureInventor), In most of them you can use both types and interfaces, but in some utility types you have to either use interfaces or types. you can read more on this [here](https://www.typescriptlang.org/docs/handbook/utility-types.html)
