Загрузка видео...

Не удалось загрузить видео

На главную

Library types can run, but they can't hide

25,993 просмотров • 1 год назад •via X (Twitter)

Комментарии: 10

Фото профиля Zack Jackson
Zack Jackson1 год назад

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

Фото профиля the enigma
the enigma1 год назад

you don't learn this by vibe coding

Фото профиля 📦🛠👷🏻‍♂️Sean Larkin
📦🛠👷🏻‍♂️Sean Larkin1 год назад

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

Фото профиля aditya
aditya1 год назад

my typescript don’t typescript like that sadly

Фото профиля Brandon McConnell
Brandon McConnell1 год назад

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
Matt Pocock1 год назад

Yep

Фото профиля Garrett
Garrett1 год назад

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
Matt Pocock1 год назад

Ahhhh good one

Фото профиля Ian Summerlin
Ian Summerlin1 год назад

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

Фото профиля Dominic Idagu
Dominic Idagu1 год назад

Ohlalala.. never saw that coming

Похожие видео