Module Legacy.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/legacy';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 legacy general decorators. |
IGeneralDecoratorOptions | Options used to create a general decorator with Legacy.GeneralDecorators. |