Комментарии:
Seems my VSCode type checking is slow, but think my pc is dying so it's likely just me😢
ОтветитьHelpful stuff, "Prettify" should really build into vscode or typescript extesion, it's much easier with multiple pick and omit on typings
ОтветитьThanks for having me VSCode day! Always love appearing on your streams.
ОтветитьYour first example made use of the concept of literal types in TypeScript, which kinda blew me away. Coming from a C# background (and not very versed in TypeScript), I was confused at first that you made the parameter `name` to be the type 'John' (as opposed to thinking of it as the value 'John').
So, I did what any seasoned developer should do: I cracked open ChatGPT-4 to get a better understanding of what was going on! (We are living in amazing times!)
Oh, and BTW, I think it might be a stretch to call "string literal types" a "beginner" concept in TypeScript. It seems too "edge-case" to apply to beginners. But hey, I could be wrong - I'm a C# kinda guy...
i'm so glad to meet Matt here! Thanks for sharing another useful stuff 🔥
Ответитьwait... isn't VSCode is Source Code Editor ? not an IDE
ОтветитьSo happy we got this guy, I have learned so much from him about more advanced TS concepts.
Ответить