Detect common JavaScript errors with TypeScript

TypeScript can help you writing less bugs! Each version improve the detection of common errors. However, all the checks are not enabled by default. In this blog post, we'll see the differents compiler options and the kind of errors they help to catch. There are no specific order beacuse all of them are important. If you're still not using TypeScript, you can read my previous post: Still not using… [read more]

TypeScript - nameof operator equivalent

A lot of JavaScript frameworks involve computation based on the property name of an object. So, you end with magic strings in your code. Magic strings are bad because it makes your code hard to refactor, you cannot find all references, etc. In C# 6, you can use the nameof operator. This is very useful. However, this is not possible in TypeScript yet. There are many issues asking to support this operator.… [read more]