All Things Typescript Newsletter - Issue #2

#2・
140

subscribers

10

issues

Subscribe to our newsletter

By subscribing, you agree with Revue’s Terms of Service and Privacy Policy and understand that All Things Typescript Newsletter will receive your email address.

Maina Wycliffe
Maina Wycliffe
Hi and thank you for subscribing to my new All Things Typescript newsletter, this weeks’ issue is dropping on a Monday as will all subsequent issues.
We had an eventful week last week with the highlight being the Type as comment syntax proposal from the Typescript Team being the highlight.
In this issue, I have curated a few interesting articles to help you in your journey of learning Typescript and added a few tweets that were notable and very educational. I hope you will enjoy this weeks’ issue and if you have any feedback, please get in touch with me on Twitter - @mwycliffe_dev or via email: [email protected]
Thank you.

Announcements
Top Articles
TypeScript Readonly Utility type
The higher order of types
Moving from JavaScript to TypeScript
Translating API responses into type-safe interfaces with TypeScript | by Marcin Baraniecki | Mar, 2022 | SoftwareMill Tech Blog
Using automated runtime data validation decorators in TypeScript | by David Herron | Mar, 2022 | ITNEXT
The TypeScript team is going to kill JavaScript | by Crizant Lai | CodeX | Mar, 2022 | Medium
Using the React children prop with TypeScript - LogRocket Blog
Top Tweets
Matt Pocock
🔥 TypeScript Tip #7 🔥

🧑‍💻 Beginner/intermediate
💡 Generics

The looseness of Object.keys can be a real pain point when using TypeScript. Luckily, it's pretty simple to create a tighter version using generics and the keyof operator. https://t.co/pF26NHcBU4
Simon Høiberg
TypeScript Tip 💡

TypeScript comes with a utility type, 'ReadonlyArray<T>'.

It's equivalent to 'Array<T>', but with all mutating methods removed.

In this way, you can make sure you don’t change your arrays after creation. https://t.co/TuavrtE1dz
Matt Pocock
🔥 TypeScript Tip #6 🔥

Type helpers change the game when it comes to types in your codebase. They help TypeScript infer more from your code - and make your types a lot more readable.

Here, I write my own PropsFrom helper to extract props from any React component. https://t.co/9VUwqDxgtJ
Simon Høiberg
TypeScript Tip 💡

Use the utility type 'Record' to make an object indexable, instead of typing it out manually.

It's cleaner and becomes handy if you want to map the properties of one type to another. https://t.co/qrDrXeAmF2
Titian Cernicova Dragomir 💙💛
As a follow on to yesterday’s post (inspired by @dagda1's question), what is the difference between using any[], unknown[] or never[] as constraints to the function rest parameter in #TypeScript ?

1/6🧵

https://t.co/kBAT4It2VX
Did you enjoy this issue? Yes No
Maina Wycliffe
Maina Wycliffe @mwycliffe_dev

Hand-picked typescript and related content on a weekly basis to help you improve your skills and knowledge.

In order to unsubscribe, click here.
If you were forwarded this newsletter and you like it, you can subscribe here.
Created with Revue by Twitter.