Loading video...

Video Failed to Load

Go Home

Library types can run, but they can't hide

25,993 views • 1 year ago •via X (Twitter)

10 Comments

Zack Jackson's profile picture
Zack Jackson1 year ago

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

the enigma's profile picture
the enigma1 year ago

you don't learn this by vibe coding

📦🛠👷🏻‍♂️Sean Larkin's profile picture
📦🛠👷🏻‍♂️Sean Larkin1 year ago

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

aditya's profile picture
aditya1 year ago

my typescript don’t typescript like that sadly

Brandon McConnell's profile picture
Brandon McConnell1 year ago

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's profile picture
Matt Pocock1 year ago

Yep

Garrett's profile picture
Garrett1 year ago

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's profile picture
Matt Pocock1 year ago

Ahhhh good one

Ian Summerlin's profile picture
Ian Summerlin1 year ago

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

Dominic Idagu's profile picture
Dominic Idagu1 year ago

Ohlalala.. never saw that coming

Related Videos