Ben WainwrightHomeBlogThis Site


Testing impure modules

In a node application, a single JavaScript file forms a self-contained unit known as a 'module'. When executing your program, each one of…

October 24, 2021

Type Erasure: A Practical Example

A colleague asked for some help today with a piece of code they were working on. This is a minimal version of the test that was failing: His…

October 14, 2021

A Closer Look at Index Access Types

I recently gave a talk at work about some advanced TypeScript techniques (which I imagine I'll blog about at some point). During that talk…

August 06, 2021


I've been meaning to set up a blog which I can use to write about technical things for a while now, and so here it is; welcome to my blog…

June 27, 2021