3min chapter

Syntax - Tasty Web Development Treats cover image

Converting JS to TypeScript

Syntax - Tasty Web Development Treats

CHAPTER

JavaScript

I tend to put every type like right next to where it's used. If I'm typing functions that are, you know, very specific type signatures, I'll often even make an interface for that function instead of typing it directly in line with the function just to make it easier. GitHub co-pilot was amazing for this type of thing. So easy to refactor something out of one file into another and update wherever that file is referenced in the future.

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode