Navigation überspringen
Visual Types, a humble collection of semi-interactive TypeScript lessons, is ready to be clicked…
0:00 / 0:33

Visual Types, a humble collection of semi-interactive TypeScript lessons, is ready to be clicked…

Kit Langton

@kitlangton26.176 Follower

Auf X besuchen
1.131 LikesHerunterladenOriginalbeitrag

155.978 Aufrufe

Visual Types, a humble collection of semi-interactive TypeScript lessons, is ready to be clicked upon. ← 👀

55 Kommentare

Kommentare aus dem Originalbeitrag auf X (Twitter)

  • Profilbild von Kit Langton

    @kitlangton

    I'll add to this over time, so please let me know if there's anything you'd like to see covered or improved! 🫡

    42 Likes

  • Profilbild von Kit Langton

    @kitlangton

    Let me know if anyone manages to unlock all the ACHIEVEMENTS. 😜

    15 Likes

  • Profilbild von Matt Pocock

    @mattpocockuk

    Beautiful! FYI this resolves to { x: never }

    27 Likes

  • Profilbild von Kit Langton

    @kitlangton

    I had no idea! Fixed! 🫶 (Plus added one more example for the intersection of objects inside of an object)

    8 Likes

  • Profilbild von Matt Pocock

    @mattpocockuk

    Neat! I would also order the utility types much higher, and show the difference between Pick/Exclude/Omit/Extract, since that's a very common source of confusion

    7 Likes

  • Profilbild von Kit Langton

    @kitlangton

    I'll do just that! I still need to work on the ordering and improve some of those last few examples (and add more). It gets a bit rougher as it goes on due to my self-administered first-draft deadline! 😜

    5 Likes

  • Profilbild von trav

    @techsavvytravvy

    @schickling super cool i love this ps on ios safari 18

    8 Likes

  • Profilbild von Kit Langton

    @kitlangton

    @schickling Nooooooooooooo

    7 Likes

  • Profilbild von Brandon McConnell

    @branmcconnell

    looks sweet! already sharing in my network I think it could be kinda confusing to show the results in curly braces { … } as some new TS users may mistake that literally with objects (e.g. { key: value })

    5 Likes

  • Profilbild von Kit Langton

    @kitlangton

    Doh. You're right. Darn mathematical set notation! I'll try to find another less ambiguous method for representing sets of values.

    4 Likes

  • Profilbild von Kit Langton

    @kitlangton

    Maybe wrapping it in new Set([ 😜

    1 Like

  • Profilbild von Brandon McConnell

    @branmcconnell

    Haha true – btw not the most intuitive to have to hold shift to go backward when clicking through an example either (though I do like it)

    1 Like

  • Profilbild von Kit Langton

    @kitlangton

    I’m more comfortable with that one because you could always use the arrow keys or click all the way around. I think the only other solution would be to have two explicit buttons, but that would be a bit of clutter. Thanks for the great feedback by the way! I really appreciate it :)

    1 Like

  • Profilbild von Brandon McConnell

    @branmcconnell

    ofc!

  • Profilbild von Jeff Scott

    @JeffScottDev

    The animations are elite, but they could use some mobile consideration. I wish all docs were this well done and interactive. Fantastic work!

    4 Likes

  • Profilbild von Kit Langton

    @kitlangton

    @CanadianDevDad Yeah. It's definitely desktop first at the moment 😅 I've got to figure out how to rework some of them for phone sized screens.

    3 Likes

  • Profilbild von Mat Fournier

    @mat4nier

    Long time no see, this was great thanks.

    2 Likes

  • Profilbild von Kit Langton

    @kitlangton

    Hey Mat! Thank ye :)

    1 Like

  • Profilbild von Kit Langton

    @kitlangton

    You got a rust job! Nice :)

    1 Like

  • Profilbild von Mat Fournier

    @mat4nier

    Hah. Oh how I wish. 95% python, 5% rust.

    1 Like