Representing Function Properties with TypeScript’s Type System

TypeScript’s type system is very powerful—it can represent a lot of JavaScript constructs as a result. Here’s how to type a function with an extra property. Read more

Similar

Hybrid Types in TypeScript

Yesterday I’ve been refactoring one of our internal library in GWI from JavaScript to TypeScript. As a JavaScript veteran I like to use some edgy non-conventional & pre-ES 2015 coding styles. I’m not using prototype, class or this much often. I’...

Read more »