Skip to content

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

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 modern general decorators.
IContextThe context object for the general decorators.
IGeneralDecoratorOptionsThe interface of options to specify the usage cases of a general decorator.