How I Ship Faster with TypeScript, Schemata, and Inference

Greg Pabian
Level Up Coding
Published in
14 min readJun 18, 2024

--

I started my career as a Java Developer almost a decade ago, and I still remember typing the variables constantly! After switching to TypeScript, I began relying on type inference instead. I have understood this language feature above and beyond, and it has been saving me quite some keystrokes daily.

It did not take long before I realized I could use explicit inference. With a single line, I could extract the array and return types!

The breakthrough came when I learned my first schema library.

After I mastered writing schemata, I proverbially killed two birds with one stone. I could parse incoming data in runtime and use the inferred types compile-type!

This discovery improved my productivity. In turn, my productivity increases enabled me to ship my projects faster.

Why is fast shipping critical?

Some say it is paramount to be faster than the competition…

If I don’t ship fast and consistently, it means something is wrong with the engineering process.

Photo by Ivan Ragozin on Unsplash

Does the person behind the steering wheel in the picture above doubt the boat’s engineering?

The productivity gains came from the following notions.

--

--