Video wird geladen...
Video konnte nicht geladen werden
Library types can run, but they can't hide
25,971 Aufrufe • vor 1 Jahr •via X (Twitter)
10 Kommentare

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

you don't learn this by vibe coding

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

my typescript don’t typescript like that sadly

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.

Yep

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

Ahhhh good one

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

Ohlalala.. never saw that coming






