Skip to content

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

FunctionDescription
composeCreate a general decorator that applies multiple general decorators in order.
createCreate a general decorator function with the specified usage cases.

Typings

See Typings for the public callback, context, and option contracts exported by this namespace.

TypeDescription
ICallbackFnThe callback function signature of legacy general decorators.
IGeneralDecoratorOptionsOptions used to create a general decorator with Legacy.GeneralDecorators.