A decorator allows you to annotate or modify your class declarations and memberswith metadata.

Introduction

If you’re new to Decorators in TypeScript, seehere for moreinfo.

Decorators give LoopBack the flexibility to modify your plain TypeScript classesand properties in a way that allows the framework to better understand how tomake use of them, without the need to inherit base classes or add functions thattie into an API.

As a default, LoopBack comes with some pre-defined decorators: