DEV Community

Cover image for TypeScript Tip: When, Why and How to Use Partial<T>
Mayowa Obisesan
Mayowa Obisesan

Posted on

TypeScript Tip: When, Why and How to Use Partial<T>

If you’re working with TypeScript and find yourself updating forms or doing partial API requests, you need to understand Partial.

I wrote a deep but beginner-friendly article explaining:
• What Partial really does under the hood
• When it shines (and when it doesn’t)
• How to use DeepPartial for nested objects
• Code samples, visuals, and a cheat sheet

👉 [Read the full article on Medium] https://mayowaobisesan.medium.com/understanding-partials-in-typescript-what-why-and-how-4ec697d09693

Top comments (2)

Collapse
 
sloan profile image
Sloan the DEV Moderator

Hi there, we encourage authors to share their entire posts here on DEV, rather than mostly pointing to an external link.

Sharing your full posts helps ensure that readers don’t have to jump around to too many different pages, and it helps focus the conversation right here in the comments section on DEV.

To be clear, the DEV Terms state:

Posts must contain substantial content — they may not merely reference an external link that contains the full post.

Also, if you share your full post, you have the option to add a canonical URL directly to your post. This helps with SEO if you are reposting articles!

Collapse
 
amtheblessed profile image
Mayowa Obisesan

Thanks. I've noted this. I'll make the necessary adjustments.