Typescript: Interfaces vs Types

Interfaces and type aliases both offer contracts to fulfil in TypeScript code. At first they may look the same however there are some key differences between the two.

Cannot redeclare block-scoped variable 'name'.

In this article we take a look at how to resolve the "[ts] Cannot redeclare block-scoped variable 'name'." error raised by TypeScript.

Angular - Promise vs Observable

Featured

An article explaining the differences between Promises and Observables in Angular.

Factory Pattern in TypeScript

Design patterns play an important part in software development and they do help us to design better software and write better code. GoF Back in 1994, a book was authored by Erich Gamma,

Façade Pattern in TypeScript

Design patterns play an important part in software development and they do help us to design better software and write better code. GoF Back in 1994, a book was authored by Erich Gamma,

Abstraction in TypeScript

Abstraction is an Object Oriented programming concept to hide complexity and in TypeScript we can make use of this via the abstract keyword.

Adapter pattern in TypeScript

Design patterns help us to design better software and write better code. Learn how to use the Adapter pattern with TypeScript in this article.

Singleton Pattern in TypeScript

Design patterns help us to design better software and write better code. Learn how to use the Singleton pattern with TypeScript in this article.