TypeScript

How to Create Accessor Decorators in TypeScript

How to Create Accessor Decorators in TypeScript

In this post on How to Create Accessor Decorators in TypeScript, I will explain the accessor decorators with few examples. Analogous to other decorators in TypeScript, the accessor decorators also represent the metadata. However, they are used with the get and set accessors of the properties of a class. Certainly, the accessor decorators are placed …

How to Create Accessor Decorators in TypeScript Read More »

Creating Parameter Decorators in TypeScript

Creating Parameter Decorators in TypeScript

In this post on Creating Parameter Decorators in TypeScript, I will explain another type of important decorator in TypeScript, which is the Parameter Decorator. However, we usually don’t use parameter decorators alone. Most of the time, they are used along with some other decorators like the method decorators. Basically, the significance of parameter decorators lies …

Creating Parameter Decorators in TypeScript Read More »

Learning Property Decorator in TypeScript with Examples

Learning Property Decorator in TypeScript with Examples

In this post on Learning Property Decorator in TypeScript with Examples, I will explain property decorators with a few examples. Earlier, I have explained the concept of decorators in TypeScript and also described the Class and Method decorators. In the same way, we can use decorators with the properties of the class. Now, first, let …

Learning Property Decorator in TypeScript with Examples Read More »

Introductory Examples of Decorators in TypeScript

Introductory Examples of Decorators in TypeScript

In this post on Introductory Examples of Decorators in TypeScript, I will explain the different types of decorators with example code. Meanwhile, if you want to learn the basics of Decorators in TypeScript, then you can refer to my earlier post here. To begin with examples, first, we will consider the Class Decorators. Furthermore, we …

Introductory Examples of Decorators in TypeScript Read More »

Introducing Decorators in TypeScript

Introducing Decorators in TypeScript

In this post on Introducing Decorators in TypeScript, I will give an introduction to the concept of decorators in TypeScript. In fact, this introductory article contains information about decorator concept, their various types, and the benefits of using decorators. If you are using TypeScript version 1.5 or later, then you can use this feature. Furthermore, …

Introducing Decorators in TypeScript Read More »

Using TypeScript Modules

Using TypeScript Modules

In this post on Using TypeScript Modules, I will explain the modules in TypeScript with example code. For the purpose of developing a large application, we must keep in mind several aspects of software engineering and code reusability is one of them. Particularly, when some functionality is already developed and available. Basically, modules represent functionality. …

Using TypeScript Modules Read More »

How to Create and Use Arrow Functions in TypeScript

How to Create and Use Arrow Functions in TypeScript

In this post on How to Create and Use Arrow Functions in TypeScript, I will explain the concept of arrow functions in TypeScript. Basically, arrow functions represent the functions which don’t have a name. In other words, arrow functions are anonymous functions. Why Do We Need Arrow Functions? Although we create functions for the purpose …

How to Create and Use Arrow Functions in TypeScript Read More »

Explaining Interfaces in TypeScript with Examples

Explaining Interfaces in TypeScript with Examples

In this post on Explaining Interfaces in TypeScript with Examples, I will demonstrate how to create and use an interface in TypeScript. Interfaces in TypeScript Similar to the interfaces in other programming languages, TypeScript also has interfaces and they also serve the same purpose of providing a specification before the implementation. Essentially, interfaces allow us …

Explaining Interfaces in TypeScript with Examples Read More »