Does this error look familiar? Property 'AddressFinder' does not exist on type 'Window & typeof globalThis'.ts(2339) There will come …
TypeScript
Getting Typescript 3.7 To Work With Webpack and ts-loader
At the time of writing this post, TypeScript 3.7 is in beta. Eventually, this post will become irrelevant. But, for the moment if you are …
Mocking Default Imports In Jest With TypeScript
If you are writing tests using Jest and you use TypeScript, there is a good chance you have encountered an error along the lines of …
Module ES2015 and TypeScript 2.4 Dynamic Imports
Introduced in TypeScript 2.4 is support for the ECMAScript dynamic imports feature. If you didn't see the announcement or read it properly, …
Configuring Git Pre Commit Hook And TSLint (automatically)
If you're a TypeScript user and you're reading this, then you're using TSLint (most likely). Recently, a situation at work arose where even …
Dealing With Tslint Errors/Warnings In Third Party Files
This might be a bit of an edge case for some, but recently I needed to use a third-party script in my Aurelia TypeScript application that …
Getting Visual Studio Code To Work With Next Versions of TypeScript
Recently whilst helping out a client with an Aurelia TypeScript project, I encountered a situation where the latest development version of …
String Enums In TypeScript
Sometimes you want to specify in your application multiple allowed values. For example, you might have a method which allows you to perform …