What is the use of decorators in typescript?



What is the use of decorators in typescript?..

Answer / Sonika

Decorators are a powerful feature in TypeScript that allows you to perform various tasks, such as property manipulation, adding custom attributes, and more, at runtime. They are denoted by the '@' symbol.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More TypeScript Interview Questions

What are the modules in typescript?

1 Answers  


What are the disadvantages of typescript?

1 Answers  


What's an export in typescript?

1 Answers  


What is inheritance in typescript?

1 Answers  


How to generate typescript definition file from any .ts file?

1 Answers  


What do you mean by interfaces? Explain them with reference to typescript.

1 Answers  


Does typescript support all object oriented principles?

1 Answers  


What is the advantage of arrow function in typescript?

1 Answers  


What are the data types in typescript?

1 Answers  


How to implement inheritance in typescript?

1 Answers  


What is tsconfig.json file?

1 Answers  


What are arrow functions in typescript?

1 Answers  


Categories