TypeScript decorators

Topic | v1 | created by jjones |

With the introduction of Classes in TypeScript and ES6, there now exist certain scenarios that require additional features to support annotating or modifying classes and class members. Decorators provide a way to add both annotations and a meta-programming syntax for class declarations and members. Decorators are a stage 2 proposal for JavaScript and are available as an experimental feature of TypeScript.


subtopic of TypeScript

TypeScript is a programming language developed and maintained by Microsoft. It is a strict syntactica...

Edit details Edit relations Attach new author Attach new topic Attach new resource

treated in Understanding TypeScript Decorators

Decorators are used to modify a class and its members (methods, properties). The question may be, wh...