Navigation überspringen
Library types can run, but they can't hide
0:00 / 1:36

Library types can run, but they can't hide

Matt Pocock

@mattpocockuk334.750 Follower

Auf X besuchen

26.011 Aufrufe

Library types can run, but they can't hide

10 Kommentare

Kommentare aus dem Originalbeitrag auf X (Twitter)

  • Profilbild von Zack Jackson

    @ScriptedAlchemy

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

    7 Likes

  • Profilbild von the enigma

    @DisturbedCoin

    you don't learn this by vibe coding

    5 Likes

  • Profilbild von 📦🛠👷🏻‍♂️Sean Larkin

    @TheLarkInn

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

    5 Likes

  • Profilbild von aditya

    @adiaddxyz

    my typescript don’t typescript like that sadly

    3 Likes

  • Profilbild von Brandon McConnell

    @branmcconnell

    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.

    3 Likes

  • Profilbild von Matt Pocock

    @mattpocockuk

    Yep

    5 Likes

  • Profilbild von Garrett

    @PolymathicEng

    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

    3 Likes

  • Profilbild von Matt Pocock

    @mattpocockuk

    Ahhhh good one

    2 Likes

  • Profilbild von Ian Summerlin

    @iansummerlinio

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

    2 Likes

  • Profilbild von Dominic Idagu

    @domthegeek

    Ohlalala.. never saw that coming

    1 Like