Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

Every time I post this, I get so many WTF's in the comments. It's the 'string & {}' trick. Still absolutely essential for getting 'loose autocomplete' in library code.

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

11 Yorum

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

My course is the bomb, if bombs were 30% off

SecBriefs | Making Cybersecurity Simple profil fotoğrafı
SecBriefs | Making Cybersecurity Simple1 yıl önce

🧠Studying for #CompTIA #Security+ but struggling with #Cybersecurity terms?🔍 Cybersecurity Dictionary for Everyone covers everything you need to know and is available on Amazon!🔐 🚀Boost your Security+ prep with it today!💡

Panta profil fotoğrafı
Panta1 yıl önce

Super cool! I was curious so I gave it a try - it seems to also work with a String constructor!

Renato Carneiro profil fotoğrafı
Renato Carneiro1 yıl önce

type DontFuckMyAutoComplete<T extends string> = T | (string & {}); type Model = DontFuckMyAutoComplete <“gpt-4o” | “gemini”>;

Michael Feldstein profil fotoğrafı
Michael Feldstein1 yıl önce

great explanation of why this works

Cory Simmons profil fotoğrafı
Cory Simmons1 yıl önce

I'm not going to learn anything else about Typescript. I'm just going to have AI do it and hope it works. Tired of all this goofy stuff

Tom Duncalf profil fotoğrafı
Tom Duncalf1 yıl önce

Haha that's wild. Had no idea this was possible. Nice explanation :)

Akaam Shamerany profil fotoğrafı
Akaam Shamerany1 yıl önce

TIL

Ryan Rampersad profil fotoğrafı
Ryan Rampersad1 yıl önce

For a second there, I thought that was a Rust syntax trick you were sharing

Light profil fotoğrafı
Light1 yıl önce

Ok nice

shaqcn profil fotoğrafı
shaqcn1 yıl önce

WTF

Benzer Videolar