Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

Library types can run, but they can't hide

25,971 Aufrufe • vor 1 Jahr •via X (Twitter)

10 Kommentare

Profilbild von Zack Jackson
Zack Jacksonvor 1 Jahr

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

Profilbild von the enigma
the enigmavor 1 Jahr

you don't learn this by vibe coding

Profilbild von 📦🛠👷🏻‍♂️Sean Larkin
📦🛠👷🏻‍♂️Sean Larkinvor 1 Jahr

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

Profilbild von aditya
adityavor 1 Jahr

my typescript don’t typescript like that sadly

Profilbild von Brandon McConnell
Brandon McConnellvor 1 Jahr

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.

Profilbild von Matt Pocock
Matt Pocockvor 1 Jahr

Yep

Profilbild von Garrett
Garrettvor 1 Jahr

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

Profilbild von Matt Pocock
Matt Pocockvor 1 Jahr

Ahhhh good one

Profilbild von Ian Summerlin
Ian Summerlinvor 1 Jahr

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

Profilbild von Dominic Idagu
Dominic Idaguvor 1 Jahr

Ohlalala.. never saw that coming

Ähnliche Videos