Page Contents

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

Introduction

If you’re new to Decorators in TypeScript, see here for more info.

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

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