3min chapter

Syntax - Tasty Web Development Treats cover image

Converting JS to TypeScript

Syntax - Tasty Web Development Treats

CHAPTER

How to Rename a File Extension

In TypeScript 5, there's a beta out now. They added a feature to fix exactly that issue. In the esm show, remember I was saying how I needed to add .js to the end of every single one of my imports? Yes. So I'm not sure if I want to just turn that on or the deed is done already. It will do module resolution bundler instead of node next or node.Next up, you'll want to start your refactor, which is the big thing. Now luckily for me, I was kind of writing a lot of these files from scratch. What I was doing is I was creating a new file and then copying and pasting

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