Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 1000 Bytes

Decorators.md

File metadata and controls

28 lines (22 loc) · 1000 Bytes
lang title keywords sidebar permalink
en
Decorators
LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI, Decorator
lb4_sidebar
/doc/en/lb4/Decorators.html

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: