How I Cut the Development Time of a TypeScript Project in Half with WhateverScript

My Success Story with a Loosely-Typed TypeScript

TypeScript is a godsend. It’s no wonder why it’s ranked as one of the world’s top programming languages. However, it can sometimes be cumbersome to work with especially when trying to mimic types from 3rd party packages.

For example, take this function from one of my recent projects:

Yikes!

After hours of trying to get the return type just right, I settled with this:

I felt accomplished for the day, and was ready to head out for Happy Hour. But wait! My linter yelled at me before I could say, “One pint of Guinness, please.”

Oh, well. Back to the drawing board… or so I thought!

WhateverScript is a loosely-typed companion for TypeScript. It has Superpowers. No, seriously, it does.

Fortunately, I found WhateverScript. And since I found it, I use it for all of my TypeScript projects. WhateverScript is a loosely-typed companion for TypeScript. It has Superpowers. No, seriously, it does.

Before, a custom type in my file might look something like this:

But with WhateverScript, I can now save time by writing my code to look like this:

I have easily cut the development time of my TypeScript projects in half with WhateverScript.

If you’re not using it already, try WhateverScript in your next TypeScript project. You won’t be disappointed!

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store