Linting Your TypeScript Project Using TSLint

Linting Your TypeScript Project Using TSLint December 07, 2017

Usage of TypeScript's powerful type system decreases specific type of bugs. Linting tools provide additional static code analysis to spot common mistakes and ensure consistency across

Type System Differences in TypeScript (Structural Type System) VS C# & Java (Nominal Type System)

Type System Differences in TypeScript (Structural Type System) VS C# & Java (Nominal Type System) October 15, 2017

When a developer with C# or Java background learns TypeScript, there is a temptation to write TypeScript with the same style as C# or Java. It

Two Easy Ways to Get Started With TypeScript and React

Two Easy Ways to Get Started With TypeScript and React September 22, 2017

Setting up a build process for a modern web application can be a tedious process. Knowing your tools is important when you're going to maintain the

What Is the Use of Exclamation Mark Operator in TypeScript?

What Is the Use of Exclamation Mark Operator in TypeScript? September 08, 2017

You might have seen an exclamation mark after a variable name, for example person!.name. The language feature is called Non-null assertion operator. What is the

React Higher-Order Components (HOC) using TypeScript

React Higher-Order Components (HOC) using TypeScript August 25, 2017

Higher-order components and monad have something in common, both sound esoteric, but at least higher-order component (HOC) is easy to explain. It is a component that

TypeScript - Getting Rid of Error: X is Declared, But Never Used

TypeScript - Getting Rid of Error: X is Declared, But Never Used July 28, 2017

The problem If you have set tsconfig setting noUnusedParameters to true, the compiler will give an error when you have defined a function, but you're not

Three Ways to Provide (TypeScript) Type Definitions to Open-Source Libraries

Three Ways to Provide (TypeScript) Type Definitions to Open-Source Libraries July 22, 2017

Even though the library of type definitions is vast, the amount of JavaScript libraries is even greater. Every TypeScript developer will encounter a situation where the

What's New and Shiny In The TypeScript Community (June 2017)

What's New and Shiny In The TypeScript Community (June 2017) June 15, 2017

The TypeScript team and community have done amazing work lately. In this blog post, I'll show some of the new language features, tools, and libraries that

Different Approaches To Modeling Data With TypeScript

Different Approaches To Modeling Data With TypeScript June 02, 2017

TypeScript is a very well-planned type system that has type inference, structural subtyping, generic types, contextual typing, intersection types, literal types, union types, etc. In this

Type-safe Asynchronous Actions (Redux Thunk) Using TypeScript FSA

Type-safe Asynchronous Actions (Redux Thunk) Using TypeScript FSA May 18, 2017

If you haven't read the previous blog post (which describes FSA and the TypeScript FSA library), please read it before continuing. In this article, I cover

Refactor Redux Reducers Like a Pro With TypeScript

Refactor Redux Reducers Like a Pro With TypeScript May 04, 2017

TypeScript is a perfect match for React reducers because it has an intelligent type system, making refactoring much easier than it is with plain JavaScript. The

Type-safe Flux Standard Actions (FSA) in React Using TypeScript FSA

Type-safe Flux Standard Actions (FSA) in React Using TypeScript FSA March 19, 2017

TypeScript FSA (previously known as Redux TypeScript Actions) is a library that helps you define actions with types and use those actions while enjoying the compiler's

I Was Wrong About TypeScript, Here is Why

I Was Wrong About TypeScript, Here is Why June 05, 2016

When something new is announced, people have a tendency to choose sides. When TypeScript was announced, I wrongfully picked a few key concepts that didn't resonate