Using Property Decorators in Typescript with a real example

I was talking about class decorators in typescript in my previous post, today is time for properties decorators, how to define and use it for writing clean and elegant code. What is Property Decorator The property decorator is a function, applied to the property declaration in our classes. It gets the constructor function of the … Continue reading Using Property Decorators in Typescript with a real example

Using Property Decorators in Typescript with a real example

I was talking about class decorators in typescript in my previous post, today is time for properties decorators, how to define and use it for writing clean and elegant code. What is Property Decorator The property decorator is a function, applied to the property declaration in our classes. It gets the constructor function of the … Continue reading Using Property Decorators in Typescript with a real example

Type Annotations in Typescript Functions.

I am starting to move to Typescript. I discover how works type annotations in typescript functions. Let start to show a few things learned today about typescript. Typescript allows type annotation in function parameters and returns types. Types in Function parameters. The default type for the parameters in functions is any. Use : type after … Continue reading Type Annotations in Typescript Functions.