Skip to content

Module Compatible.StaticSetters

Helpers for creating and composing static setter decorators that work across both legacy and modern TypeScript decorator transforms.

Import

ts
import { StaticSetters } from '@litert/decorator/compatible';

Functions

FunctionDescription
composeCombine multiple static setter decorators into one compatible decorator.
createCreate a static setter decorator supporting both legacy and modern decorator transforms.

Typings

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

TypeDescription
ILegacyContextThe normalized legacy static setter decorator context.
ISetterFnThe static setter function value handled by a modern decorator.
IModernContextThe locally declared modern static setter decorator context shape.
ILegacyFnThe compatible legacy implementation for a static setter decorator.
IModernFnThe compatible modern implementation for a static setter decorator.
ICreateOptionsThe options used to create a compatible static setter decorator.
ICallbackFnThe compatible static setter decorator callback signature.