VS Code Tips and Tricks for TypeScript Wizards

VS Code Tips and Tricks for TypeScript Wizards

Visual Studio Code

1 год назад

11,260 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

coderNerd
coderNerd - 17.05.2023 08:56

Seems my VSCode type checking is slow, but think my pc is dying so it's likely just me😢

Ответить
Shawn Xiong
Shawn Xiong - 11.05.2023 14:50

Helpful stuff, "Prettify" should really build into vscode or typescript extesion, it's much easier with multiple pick and omit on typings

Ответить
Matt Pocock
Matt Pocock - 30.04.2023 10:41

Thanks for having me VSCode day! Always love appearing on your streams.

Ответить
Daniel Gilleland
Daniel Gilleland - 30.04.2023 05:48

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...

Ответить
Javien Lee
Javien Lee - 29.04.2023 06:51

i'm so glad to meet Matt here! Thanks for sharing another useful stuff 🔥

Ответить
Ipal Desse 🇺🇦
Ipal Desse 🇺🇦 - 29.04.2023 02:27

wait... isn't VSCode is Source Code Editor ? not an IDE

Ответить
Anthony Powell
Anthony Powell - 29.04.2023 02:24

So happy we got this guy, I have learned so much from him about more advanced TS concepts.

Ответить