Travel, Code, and Engineering

Tag: typescript


What you should use instead of TypeScript Enums

The TypeScript homepage proudly proclaims "TypeScript is JavaScript with syntax for types." It's a superset of JavaScript. Any code that's valid JavaScript is also valid TypeScript. The only thing...


How to use TypeScript with Gatsby

I was planning to write a blog post showing you how to setup Gatsby to work with TypeScript, but then I realized it was easier to just make a Gatsby starter. So since I've already done all the hard...


Formatting Inputs with Cleave.js in a Vue/Typescript/Rails Project

Cleave.js is a super cool JavaScript library that lets you force the formatting of an input. It works for credit card numbers, dates, and several other kinds of formatted text. If you haven't heard...