Skip to content

Module Compatible.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/compatible';

Functions

FunctionDescription
composeCombine multiple general decorators into one.
createCreate a general decorator callback supporting both legacy and modern transforms.

Typings

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

TypeDescription
ICreateOptionsThe options used to create a compatible general decorator.
ICallbackFnThe compatible general decorator callback signature.