---
title: "Discussion on \"TypeScript Utility Types: The 6 Most Useful\" | Hashnode"
description: "Discussion on \"TypeScript Utility Types: The 6 Most Useful\". Write better typescript code by using typescript utility types."
url: "https://hashnode.com/posts/typescript-utility-types-the-6-most-useful/62bc4142e189ddfaeac6d53f"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [TypeScript Utility Types: The 6 Most Useful](https://blog.reactplay.io/typescript-utility-types-the-6-most-useful?utm_source=hashnode&utm_medium=feed)

Write better typescript code by using typescript utility types.

Jun 29, 2022 · 4 min read · blog.reactplay.io  
Read the article

-   [#typescript](https://hashnode.com/tag/typescript)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#programming-tips](https://hashnode.com/tag/programming-tips)

## Written by

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

@Sachinchaurasiya · India

  
[View profile](https://hashnode.com/@Sachinchaurasiya)

Product Engineer • Open Source • Technical Writer

Product Engineer with 5+ years of experience building scalable, performant, and user-focused products. I enjoy solving complex problems, bringing clarity to ambiguity, and turning ideas into high-quality execution. My strength lies in simplifying complexity, designing thoughtful systems, and building products that create real value.

## Responses 2

Markdown supported · ⌘↵ to post

[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)

[Deepak Pundir](https://hashnode.com/@Deepak8717)

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

Good [Sachin Chaurasiya](https://hashnode.com/@Sachinchaurasiya). looking forward for more.

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

[Jun 30, 2022](https://hashnode.com/posts/typescript-utility-types-the-6-most-useful/62bc4142e189ddfaeac6d53f/comment/62bdbbdde4246414d3d2d5cf#reply-62bdc06c79c4ef14aeaad1f2)

Thanks [Deepak Pundir](https://hashnode.com/@Deepak8717)
