Skip to content

Module Compatible.StaticGetters

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

Import

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

Functions

FunctionDescription
composeCombine multiple static getter decorators into one compatible decorator.
createCreate a static getter 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 getter decorator context.
IGetterFnThe static getter function value handled by a modern decorator.
IModernContextThe locally declared modern static getter decorator context shape.
ILegacyFnThe legacy implementation callback used by Compatible.StaticGetters.
IModernFnThe compatible modern implementation for a static getter decorator.
ICreateOptionsThe options used to create a compatible static getter decorator.
ICallbackFnThe compatible static getter decorator callback signature.