Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

Library types can run, but they can't hide

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

10 Yorum

Zack Jackson profil fotoğrafı
Zack Jackson1 yıl önce

This is really cool and also will give me more TS nightmares

the enigma profil fotoğrafı
the enigma1 yıl önce

you don't learn this by vibe coding

📦🛠👷🏻‍♂️Sean Larkin profil fotoğrafı
📦🛠👷🏻‍♂️Sean Larkin1 yıl önce

LIBRARY 👏 AUTHORS 👏 PLEASE 👏 USE 👏 API-EXTRACTOR 👏

aditya profil fotoğrafı
aditya1 yıl önce

my typescript don’t typescript like that sadly

Brandon McConnell profil fotoğrafı
Brandon McConnell1 yıl önce

I’ve ran into the same problem so many times, I couldn’t possibly count them. I’ve even patched packages locally simply to export something that wasn’t exported, which was harder to infer. For the `{ type: "source" }` you’re using here, is that just any bit of part of the desired type, and then it filters by types that match that? Mastering this technique would be a massive time saver.

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

Yep

Garrett profil fotoğrafı
Garrett1 yıl önce

Now try to extract the available model name literals from the providers (OpenAI, google, etc) One of the most frustrating things about using that sdk

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

Ahhhh good one

Ian Summerlin profil fotoğrafı
Ian Summerlin1 yıl önce

I’ve been using Exclude<type, undefined> Didn’t know about NonNullable 💀💀

Dominic Idagu profil fotoğrafı
Dominic Idagu1 yıl önce

Ohlalala.. never saw that coming

Benzer Videolar