In TypeScript, you can define multiple signatures to your function. It could be a little bit mysterious, especially when you get into like multiple callback layers deep. I personally am always using the aliases because it's almost always cleaner to me in the ability to see what's an or exactly where something's living. Next up here is going to be file paths aliases: whether or not you have an alias for a directory where you can then access that file via the alias and then the file path.

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