Visual Types, a humble collection of semi-interactive TypeScript lessons, is ready to be clicked…
@kitlangton26 тыс. подписчиков
155 978 просмотров
55 комментариев
Комментарии из оригинального поста в 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 отметки «Нравится»

@kitlangton
Let me know if anyone manages to unlock all the ACHIEVEMENTS. 😜
15 отметок «Нравится»

@mattpocockuk
Beautiful! FYI this resolves to { x: never }
27 отметок «Нравится»

@kitlangton
I had no idea! Fixed! 🫶 (Plus added one more example for the intersection of objects inside of an object)
8 отметок «Нравится»

@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 отметок «Нравится»

@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 отметок «Нравится»

@techsavvytravvy
@schickling super cool i love this ps on ios safari 18
8 отметок «Нравится»

@kitlangton
@schickling Nooooooooooooo
7 отметок «Нравится»

@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 отметок «Нравится»

@kitlangton
Doh. You're right. Darn mathematical set notation! I'll try to find another less ambiguous method for representing sets of values.
4 отметки «Нравится»

@kitlangton
Maybe wrapping it in new Set([ 😜
1 отметка «Нравится»

@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 отметка «Нравится»

@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 отметка «Нравится»

@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 отметки «Нравится»

@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 отметки «Нравится»

@mat4nier
Long time no see, this was great thanks.
2 отметки «Нравится»

@kitlangton
Hey Mat! Thank ye :)
1 отметка «Нравится»

@kitlangton
You got a rust job! Nice :)
1 отметка «Нравится»

@mat4nier
Hah. Oh how I wish. 95% python, 5% rust.
1 отметка «Нравится»


























