Visual Types, a humble collection of semi-interactive TypeScript lessons, is ready to be clicked…
@kitlangton26.176 Follower
155.978 Aufrufe
55 Kommentare
Kommentare aus dem Originalbeitrag auf X (Twitter)

@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

@kitlangton
Let me know if anyone manages to unlock all the ACHIEVEMENTS. 😜
15 Likes

@mattpocockuk
Beautiful! FYI this resolves to { x: never }
27 Likes

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

@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

@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

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

@kitlangton
@schickling Nooooooooooooo
7 Likes

@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

@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

@kitlangton
Maybe wrapping it in new Set([ 😜
1 Like

@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

@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

@branmcconnell
ofc!

@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

@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

@mat4nier
Long time no see, this was great thanks.
2 Likes

@kitlangton
Hey Mat! Thank ye :)
1 Like

@kitlangton
You got a rust job! Nice :)
1 Like

@mat4nier
Hah. Oh how I wish. 95% python, 5% rust.
1 Like


























