Factory.ts: A Factory Generator for Test Data Using TypeScript

Using mapped types, making factories for test data is a cinch. And I can use mapped types to provide guarantees you simply can’t get in a dynamic language. Read more

Similar

Keyof and Mapped Types in TypeScript 2.1

In the last few months, I’ve been playing with both Flow and TypeScript as tools for increasing the quality and reliability of the JavaScript I write at Olo. Both of these are syntax that sits on top of normal JavaScript to add type analysis—basically...

Read more »