Hello everyone, Today, In this article, we will go through some beneficial and essential utility types in Typescript that can make your life easier...
For further actions, you may consider blocking this person and/or reporting abuse
You are a great developer surly
Thanks for your nice comment😊.
Concise and to the point. I foresee a terrific developer in you...
Great post!
May I translate this article into Japanese and post it to community? (I'll definitely link this)
Sure, Go ahead!!!
Take your TypeScript skills to new heights with "Mastering TypeScript Core Utility Types":
📖 Buy on Leanpub
📖 Buy on Amazon
If you’re looking to deepen your understanding of TypeScript utility types like Partial or Readonly, I recently wrote a book, Mastering TypeScript Core Utility Types, that covers these and more with practical examples and exercises. Feel free to check it out! 😊 👉 Here
Hot take: don't use any TS utility types :v
Why? What would be the reason to avoid them?
Over using utility types may lead to code that is difficult to understand and maintain. Especially nesting many types together. I know this is a soft opinion, the point is I saw many projects with very complex type definitions. Here's an example:
I think the main problem here is the overuse of intersections, something that can also be a performance issue.
And when the built in utility types are not enough, then there’s the
type-fest
module with a ton more ones: github.com/sindresorhus/type-festAwesome post! Very helpful and those utility types are just awesome! 🔥
Really good and helpful..!!
Thanks for this article, very easy to understand 😊
Really good and explanatory