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.
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.
In this article we take a look at how to resolve the "[ts] Cannot redeclare block-scoped variable 'name'." error raised by TypeScript.
This article discusses how to apply the Factory Pattern in a TypeScript environment
Abstraction is an Object Oriented programming concept to hide complexity and in TypeScript we can make use of this via the abstract keyword.
Design patterns help us to design better software and write better code. Learn how to use the Adapter pattern with TypeScript in this article.
Design patterns help us to design better software and write better code. Learn how to use the Singleton patternwith TypeScript in this article.
Using source maps it's possible to debug TypeScript code directly in the browser even after transpilation.
TypeScript introduces Generics which allow us to use reusable components within our applications with ease.
Functions in TypeScript work in exactly the same way as functions in ES2015, allowing us to use rest and default params and fat arrow functions in combination with data types.
Classes in TypeScript really extend JavaScript's (ES2015) class functionality and add their support for types and member access.
If you have worked with JavaScript before you may have heard the expression 'prototypal inheritance' or that JavaScript is a 'prototype' based language. As of ES2015 we can use the class keyword which adds syntactic sugar over the prototypes.
Interfaces provide a very powerful way of to define entities that most conform a definition – in other words it allows us to specify properties for entities.
TypeScript uses data typing which is one of it's most important features for allowing developers to write better code.
TypeScript is a language developed by Microsoft that, among other things, has type support. In this article we'll discover its basics including how to setup your environment to work with this language.