<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/typescript-utility-types-partial-and-required-ai1ux61vf" -->

---
title: TypeScript utility types: Partial and Required | daily.dev
description: TypeScript comes with several utility types. These are utilities we can use to do type transformations. In this article, we'll look at the Partial and Required...
canonical: https://daily.dev/posts/typescript-utility-types-partial-and-required-ai1ux61vf
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: TypeScript utility types: Partial and Required | daily.dev
og:description: TypeScript comes with several utility types. These are utilities we can use to do type transformations. In this article, we'll look at the Partial and Required...
og:url: https://daily.dev/posts/typescript-utility-types-partial-and-required-ai1ux61vf
og:image: https://api.daily.dev/og/posts/Ai1ux61vF.png
og:image:alt: TypeScript utility types: Partial and Required
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# TypeScript utility types: Partial and Required

**[Hashnode](https://daily.dev/sources/hashnode)** · [@dailydevtips](https://daily.dev/dailydevtips) · 2 min read · 18 upvotes · 1 comments

## Summary

TypeScript comes with several utility types. These are utilities we can use to do type transformations. In this article, we'll look at the Partial and Required types. We'll also look at how we can only make specific fields required or optional by leveraging some other utility types in the future.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://h.daily-dev-tips.com/typescript-utility-types-partial-and-required>

## Community discussion

Top comments from developers on daily.dev.

**@dailydevtips** · 1 upvotes

> Diving deep into TypeScript has really thought me a lot.
> I find it super cool you can mix and match these utility types to make about anything possible.

---

Tags: [#typescript](https://daily.dev/tags/typescript)

[View this post on daily.dev](https://daily.dev/posts/typescript-utility-types-partial-and-required-ai1ux61vf)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"TypeScript utility types: Partial and Required","url":"https://daily.dev/posts/typescript-utility-types-partial-and-required-ai1ux61vf","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/typescript-utility-types-partial-and-required-ai1ux61vf"},"datePublished":"2022-02-20T22:59:57.863Z","dateModified":"2022-02-20T22:59:57.872Z","description":"TypeScript comes with several utility types. These are utilities we can use to do type transformations. In this article, we'll look at the Partial and Required...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/77933c68711462437a8e303f9ecbe415","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/77933c68711462437a8e303f9ecbe415","isAccessibleForFree":true,"articleSection":"Hashnode","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Person","name":"Chris Bongers","url":"https://daily.dev/dailydevtips","image":"https://media.daily.dev/image/upload/s--9gxFz1e7--/f_auto/v1705902590/avatars/avatar_JUNiIGCV-?_a=BAMAMiZW0","description":"Daily blogger and web team lead at daily.dev 💖","worksFor":{"@type":"Organization","name":"daily.dev","logo":"https://daily-now-res.cloudinary.com/image/upload/s--MASZOhnv--/f_auto/v1614088267/landing/Daily.dev_logo"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":52825}},"commentCount":1,"discussionUrl":"https://daily.dev/posts/typescript-utility-types-partial-and-required-ai1ux61vf","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":18},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"keywords":"typescript","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Hashnode","item":"https://daily.dev/sources/hashnode"},{"@type":"ListItem","position":3,"name":"TypeScript utility types: Partial and Required"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/typescript-utility-types-partial-and-required-ai1ux61vf","comment":[{"@type":"Comment","text":"Diving deep into TypeScript has really thought me a lot.\nI find it super cool you can mix and match these utility types to make about anything possible.","datePublished":"2022-02-21T06:03:14.789Z","url":"https://daily.dev/posts/Ai1ux61vF#c-gFuHD0uRS","author":{"@type":"Person","name":"Chris Bongers","url":"https://daily.dev/dailydevtips","image":"https://media.daily.dev/image/upload/s--9gxFz1e7--/f_auto/v1705902590/avatars/avatar_JUNiIGCV-?_a=BAMAMiZW0"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}}]}
```

