TypeScript - Programmingempire https://www.programmingempire.com Learn Programming Easily Wed, 06 Apr 2022 06:53:14 +0000 en hourly 1 https://wordpress.org/?v=5.8.12 https://www.programmingempire.com/wp-content/uploads/2021/10/pefavicon-150x126.png TypeScript - Programmingempire https://www.programmingempire.com 32 32 How to Create Accessor Decorators in TypeScript https://www.programmingempire.com/how-to-create-accessor-decorators-in-typescript/?utm_source=rss&utm_medium=rss&utm_campaign=how-to-create-accessor-decorators-in-typescript Sat, 26 Dec 2020 17:05:00 +0000 http://www.programmingempire.com/?p=235 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 …

The post How to Create Accessor Decorators in TypeScript first appeared on Programmingempire .

The post How to Create Accessor Decorators in TypeScript appeared first on Programmingempire .

]]>
Creating Parameter Decorators in TypeScript https://www.programmingempire.com/creating-parameter-decorators-in-typescript/?utm_source=rss&utm_medium=rss&utm_campaign=creating-parameter-decorators-in-typescript Fri, 25 Dec 2020 17:02:00 +0000 http://www.programmingempire.com/?p=232 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 …

The post Creating Parameter Decorators in TypeScript first appeared on Programmingempire .

The post Creating Parameter Decorators in TypeScript appeared first on Programmingempire .

]]>
Learning Property Decorator in TypeScript with Examples https://www.programmingempire.com/learning-property-decorator-in-typescript-with-examples-2/?utm_source=rss&utm_medium=rss&utm_campaign=learning-property-decorator-in-typescript-with-examples-2 Fri, 25 Dec 2020 17:00:00 +0000 http://www.programmingempire.com/?p=229 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 …

The post Learning Property Decorator in TypeScript with Examples first appeared on Programmingempire .

The post Learning Property Decorator in TypeScript with Examples appeared first on Programmingempire .

]]>
Learning Property Decorator in TypeScript with Examples https://www.programmingempire.com/learning-property-decorator-in-typescript-with-examples/?utm_source=rss&utm_medium=rss&utm_campaign=learning-property-decorator-in-typescript-with-examples Fri, 25 Dec 2020 16:57:00 +0000 http://www.programmingempire.com/?p=226 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 …

The post Learning Property Decorator in TypeScript with Examples first appeared on Programmingempire .

The post Learning Property Decorator in TypeScript with Examples appeared first on Programmingempire .

]]>
Introductory Examples of Decorators in TypeScript https://www.programmingempire.com/introductory-examples-of-decorators-in-typescript/?utm_source=rss&utm_medium=rss&utm_campaign=introductory-examples-of-decorators-in-typescript Thu, 24 Dec 2020 16:54:00 +0000 http://www.programmingempire.com/?p=223 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 can …

The post Introductory Examples of Decorators in TypeScript first appeared on Programmingempire .

The post Introductory Examples of Decorators in TypeScript appeared first on Programmingempire .

]]>
Introducing Decorators in TypeScript https://www.programmingempire.com/introducing-decorators-in-typescript/?utm_source=rss&utm_medium=rss&utm_campaign=introducing-decorators-in-typescript Tue, 22 Dec 2020 16:50:00 +0000 http://www.programmingempire.com/?p=218 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 the decorator concept, its various types, and the benefits of using decorators. If you are using TypeScript version 1.5 or later, then you can use this feature. …

The post Introducing Decorators in TypeScript first appeared on Programmingempire .

The post Introducing Decorators in TypeScript appeared first on Programmingempire .

]]>
Working with Generics in TypeScript https://www.programmingempire.com/working-with-generics-in-typescript/?utm_source=rss&utm_medium=rss&utm_campaign=working-with-generics-in-typescript Sun, 20 Dec 2020 16:43:00 +0000 http://www.programmingempire.com/?p=209 In this post on Working with Generics in TypeScript, I will explain the concept of Generics and how to create them in TypeScript. Basically, generics allow us to create constructs that can work with any data type. In fact, we can create classes and functions without choosing a specific data type. Later when we run …

The post Working with Generics in TypeScript first appeared on Programmingempire .

The post Working with Generics in TypeScript appeared first on Programmingempire .

]]>
Using TypeScript Modules https://www.programmingempire.com/using-typescript-modules/?utm_source=rss&utm_medium=rss&utm_campaign=using-typescript-modules Sat, 19 Dec 2020 16:40:00 +0000 http://www.programmingempire.com/?p=206 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. …

The post Using TypeScript Modules first appeared on Programmingempire .

The post Using TypeScript Modules appeared first on Programmingempire .

]]>
How to Create and Use Arrow Functions in TypeScript https://www.programmingempire.com/how-to-create-and-use-arrow-functions-in-typescript/?utm_source=rss&utm_medium=rss&utm_campaign=how-to-create-and-use-arrow-functions-in-typescript Sat, 19 Dec 2020 16:37:00 +0000 http://www.programmingempire.com/?p=203 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 …

The post How to Create and Use Arrow Functions in TypeScript first appeared on Programmingempire .

The post How to Create and Use Arrow Functions in TypeScript appeared first on Programmingempire .

]]>
Explaining Interfaces in TypeScript with Examples https://www.programmingempire.com/explaining-interfaces-in-typescript-with-examples/?utm_source=rss&utm_medium=rss&utm_campaign=explaining-interfaces-in-typescript-with-examples Thu, 17 Dec 2020 16:35:00 +0000 http://www.programmingempire.com/?p=200 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 …

The post Explaining Interfaces in TypeScript with Examples first appeared on Programmingempire .

The post Explaining Interfaces in TypeScript with Examples appeared first on Programmingempire .

]]>