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!!!
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-festThanks for this article, very easy to understand 😊
Awesome post! Very helpful and those utility types are just awesome! 🔥
Really good and helpful..!!
Really good and explanatory