TypeScript is a powerhouse for modern JavaScript development, bringing type safety and advanced features to the table.
While many developers know ...
For further actions, you may consider blocking this person and/or reporting abuse
I just discovered the
Partial<T>
utility, and I think itβs an impressive implementation. Instead of relying on aany
keyword, it provides a clean and flexible way to create objects with optional properties.Thanks for sharing.
Thanks @hraifi
Great collection, thx!
One more trick :: in my opinion jsDoc is better than Typescript
Thanks! I appreciate your perspective @pengeszikra
Thanks for sharing !!
11. Extract and Exclude to Refine Types
is very new to me and become my personal favorite.Thanks @john12
Great post! There are definitely some useful tips and tricks included!
Thanks @itsmeseb
Thanks for these! Extract has been useful at my job for dealing with unions that are referenced in other semi related types.
Your welcome !!
nice posts about typescript !!
Thanks !!
Thanks @zizaco
π―
Thanks @boby900
I'm glad you found the TS shortcuts helpful! If you need more specific shortcuts or tricks, especially for any particular task in TS or a particular framework, feel free to ask. Itβs a pleasure to share helpful insights!
??