Skip to main content
← All posts

Posts tagged "TypeScript"

15 posts

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.

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.

Functions in TypeScript

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

Classes in TypeScript really extend JavaScript's (ES2015) class functionality and add their support for types and member access.

Classes in ECMAScript 2015

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 in TypeScript

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.

Types in TypeScript

TypeScript uses data typing which is one of it's most important features for allowing developers to write better code.

Introduction to TypeScript

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.