Module Modern.GeneralDecorators
Decorator helpers that can apply to multiple element kinds (methods, properties, getters, setters, or accessors) depending on the options you supply.
Import
ts
import { GeneralDecorators } from '@litert/decorator';
import { GeneralDecorators as GeneralDecoratorsFromModern } from '@litert/decorator/modern';Functions
| Function | Description |
|---|---|
compose | Create a general decorator that applies multiple general decorators in order. |
create | Create a general decorator function with the specified usage cases. |
Typings
See Typings for the public callback, context, and option contracts exported by this namespace.
| Type | Description |
|---|---|
ICallbackFn | The callback function signature of modern general decorators. |
IContext | The context object for the general decorators. |
IGeneralDecoratorOptions | The interface of options to specify the usage cases of a general decorator. |