Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

Here's two TypeScript tips rolled into one: 1. TypeScript magic is everywhere, even in Node's built-in types 2. I bet you didn't know this was legal TS: error: [message: string]

80,986 görüntüleme • 1 yıl önce •via X (Twitter)

10 Yorum

Matt Pocock profil fotoğrafı
Matt Pocock1 yıl önce

My course is 30% off right now!

vaibhav - oss/acc profil fotoğrafı
vaibhav - oss/acc1 yıl önce

wait this was so easy!!. 2yrs ago i use to copy over this to every project

Corey Ward profil fotoğrafı
Corey Ward1 yıl önce

I did not know that you could name the items in a tuple type. Gonna go fix some that I have that are less than clear right now!

Matt Pocock profil fotoğrafı
Matt Pocock1 yıl önce

Great for things like: type Position = [x: number, y: number, z?: number]

Nathan🔶Tarbert profil fotoğrafı
Nathan🔶Tarbert1 yıl önce

That error type trick is defs something I would've never guessed, Matt's got all the good stuff lol

Artem Zakharchenko profil fotoğrafı
Artem Zakharchenko1 yıl önce

This has to be new! Nice to see this. Alas, no strongly-typed events for EventTarget in lib.dom. That's why I built Rettime ( That and also a bunch of other reasons.

Twilight profil fotoğrafı
Twilight1 yıl önce

How strange, I just discovered this yesterday accidentally 😂😂

Raman Paulau profil fotoğrafı
Raman Paulau1 yıl önce

Vue uses this exact pattern for component defineEmits.

millcake profil fotoğrafı
millcake1 yıl önce

Bruh... U trying to sell ur course talking about basic things Rly?

DJ Molehill profil fotoğrafı
DJ Molehill1 yıl önce

TypeScript out here making tuples feel like dark arts. 🧙‍♂️🌀

Benzer Videolar