Skip to main content

Decorators

const Decorators: object

Decorator factory. Call register to add a new decorator type.

Type Declaration​

register()​

register: (name, dec) => void

Register a decorator type, which you can then reference by name.

Parameters​

name​

string

dec​

Constructable<Decorator>

Returns​

void