TypeScript is a statically-typed superset of JavaScript introduced by Microsoft in 2012. It's a language that some developers love to hate, …
TypeScript
Creating a Secure Password Generator Using TypeScript
Password generation is something you're hopefully using a password manager for these days. However, you might not be aware that modern …
Sentiment Analysis Using TypeScript Without Dependencies
Sentiment analysis is usually a task that requires a specialised dataset and machine-learning techniques to implement properly. However, I …
How to Extend the Window Object in TypeScript
In many cases when you're working with TypeScript, there are type definitions available for almost every package out there. However, in …
How to Add Typings to the Global TypeScript Window Object
Does this error look familiar? Property 'AddressFinder' does not exist on type 'Window & typeof globalThis'.ts(2339) There will come …
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 …